/* Auteur: Théo Vorlet
Date 28.05.2026
Description : Styles communs à toutes les pages. */

/* VARIABLES  */
:root {
  --g: #52ae32;
  --g-mid: #3d8a22;
  --g-pale: #f0f8ea;
  --ink: #1c1c1a;
  --muted: #7a7975;
  --rule: #e4e4e0;
  --bg: #fafaf7;
  --white: #ffffff;
  --red: #c0392b;
  --red-pale: #fdf1f0;
}

/* RESET / BASE  */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 6vw;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

nav img {
  height: 100%;
  width: auto;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--g);
}

#btnLogout {
  margin-left: 32px;
  padding: 8px 20px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

#btnLogout:hover {
  border-color: var(--red);
  color: var(--red);
}

/* EN-TÊTE DE PAGE */
.page-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}

.page-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g);
  font-weight: 400;
}

.page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

/* MAIN */
main {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 56px 6vw 96px;
  box-sizing: border-box;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 5vw;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 16px;
  }

  #btnLogout {
    margin-left: 0;
  }
}
