/* =========================================================
   SALTITUDE — about.css (page À propos)

   SOMMAIRE
     1. Base de la page
     2. Menu de navigation
     3. Titre
     4. Section À propos (photos + textes)
     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 {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  font-family: "Cabinet Grotesk", sans-serif;
  background: url("../images/background.jpg") center / cover fixed no-repeat;
}

/* Les images ne dépassent jamais de leur conteneur */
img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   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;
  width: 100%;
  height: 5rem;
  padding: 0 2rem;
  background-color: #fff;
  border-top: 2px solid #000;
}

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

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

/* --- Liens du menu (Accueil, À propos, Contact) --- */

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

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

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

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

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

.lang-switch button {
  padding: 0 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #290fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  opacity: 0.4;
}

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

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

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

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

/* 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 ("À propos de nous")
   ========================================================= */

h1 {
  flex: 0 0 auto;
  margin-bottom: 4rem;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}


/* =========================================================
   4. SECTION À PROPOS (photos + textes)
   ========================================================= */

/* Conteneur des deux blocs, centré sur la page */
.about {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 90%;
  max-width: 70rem;
  margin: 4rem auto 4rem;
}

/* Chaque bloc : photo et texte côte à côte */
.studio,
.team {
  display: flex;
  align-items: center;
  gap: 4rem;
  color: #fff;
}

/* Bloc équipe : photo à droite au lieu de gauche */
.team {
  flex-direction: row-reverse;
}

/* Taille des photos (entières, pas recadrées) */
.studio .stud,
.team .teamphoto {
  flex: 0 0 25%;
  width: 30%;
  height: auto;
}

/* Textes justifiés */
.about p {
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}


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

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

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

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

/* --- Colonne gauche : adresse + mail --- */

footer > section:first-of-type {
  grid-column: 1;
}

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

footer article p {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  text-align: left;
}

/* --- Colonne centrale : copyright --- */

.right {
  grid-column: 2;
  align-self: center;
  justify-self: center;
}

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

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

/* --- Colonne droite : petites icônes des réseaux sociaux --- */

.pictos {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
}

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

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


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

/* ---------------------------------------------------------
   Grands écrans (1920px et plus)
   --------------------------------------------------------- */
@media (min-width: 120rem) {
  h1 {
    margin-top: 12rem;
    margin-bottom: 5rem;
    font-size: 2.75rem;
  }

  .about {
    gap: 6rem;
    max-width: 85rem;
  }

  .studio,
  .team {
    gap: 5rem;
  }

  .about p {
    font-size: 1.375rem;
  }
}

/* ---------------------------------------------------------
   Très grands écrans (2560px et plus) : tout en plus grand
   --------------------------------------------------------- */
@media (min-width: 160rem) {
  /* Menu */
  nav {
    height: 6rem;
  }

  nav ul {
    gap: 2rem;
    padding-right: 0.5rem;
  }

  nav ul li a,
  .lang-switch button {
    font-size: 1rem;
  }

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

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

  /* Section À propos */
  .about {
    gap: 6.667rem;
    max-width: 110rem;
  }

  .studio,
  .team {
    gap: 6.667rem;
  }

  .about p {
    font-size: 1.6rem;
  }
}

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

  /* Titre */
  h1 {
    margin-top: 8rem;
    margin-bottom: 3rem;
    font-size: 2rem;
  }

  /* Section À propos : photos un peu plus grandes */
  .about {
    gap: 4rem;
    width: 92%;
    margin-bottom: 6rem;
  }

  .studio,
  .team {
    gap: 2.5rem;
  }

  .studio .stud,
  .team .teamphoto {
    flex-basis: 35%;
    width: 35%;
  }

  .about p {
    font-size: 1.0625rem;
  }
}

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

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

  nav {
    padding-inline: 1rem;
  }

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

  /* 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 {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9;
    width: 100%;
    max-height: 0;
    margin-left: 0;
    overflow: hidden;
    background-color: #fff;
    border-bottom: 2px solid #000;
    transition: max-height 0.3s ease;
  }

  /* 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;
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  /* --- Titre --- */

  h1 {
    margin-top: 7rem;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
  }

  /* --- Section À propos : photo au-dessus du texte --- */

  .about {
    gap: 3rem;
    width: 90%;
    margin-bottom: 5rem;
  }

  .studio,
  .team {
    flex-direction: column;
    gap: 1.25rem;
  }

  .studio .stud,
  .team .teamphoto {
    flex: none;
    width: 100%;
    max-width: 22rem;
  }

  .about p {
    font-size: 1rem;
  }

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

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

  footer > section:first-of-type,
  .right,
  .pictos {
    grid-column: 1;
  }

  footer article p {
    text-align: center;
  }

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

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

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

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

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

  .about p {
    font-size: 0.95rem;
  }
}