/* ==========================================================================
   Styles communs aux trois pages : police, couleurs, en-tête, boutons, contact
   ========================================================================== */

/* Police Archivo (variable). Le sous-ensemble latin est hébergé dans le projet,
   les autres sous-ensembles sont chargés depuis Google Fonts si besoin. */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdboLnnA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdfoLnnA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #1FB61F;
  --encre: #191613;
  --creme: #F3EEE5;
  --texte-doux: #3A352F;
  --gris: #5F574D;
  --gris-clair: #A8A198;
  --filet: rgba(25, 22, 19, 0.16);
  --police: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --marge: clamp(20px, 4.5vw, 64px);
  --hauteur-entete: 88px; /* 20 px de marge + 48 px de contenu + 20 px */
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  /* Les ancres (#contact…) s'arrêtent sous l'en-tête collant */
  scroll-padding-top: var(--hauteur-entete);
}

body {
  margin: 0;
  background: var(--encre);
}

a {
  color: inherit;
}

.page {
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

/* Première section de chaque page : elle remplit l'écran sous l'en-tête,
   la section suivante n'apparaît qu'en commençant à défiler */
.premier-ecran {
  min-height: calc(100vh - var(--hauteur-entete));
  min-height: calc(100svh - var(--hauteur-entete));
  box-sizing: border-box;
}

/* Bloc centré de 1440 px maximum avec les marges latérales du site */
.conteneur {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--marge);
  padding-right: var(--marge);
  box-sizing: border-box;
}

/* Petit libellé en capitales au-dessus d'un titre */
.surtitre {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris);
}

/* Grand titre de page (h1) */
.titre-page {
  margin: 0;
  font-size: clamp(56px, 15vw, 216px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

/* Titre de section (h2) */
.titre-section {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 112px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

/* Paragraphe d'introduction */
.chapo {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
}

/* ---------- Liens et boutons ---------- */

/* Lien texte souligné au survol */
.lnk {
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.lnk:hover {
  text-decoration-line: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--plein {
  background: var(--accent);
  color: var(--encre);
}

.btn--contour {
  border: 1.5px solid var(--encre);
  color: var(--encre);
}

.btn--contour-clair {
  border: 1.5px solid rgba(243, 238, 229, 0.5);
  color: var(--creme);
}

.btn--sombre {
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  background: var(--encre);
  color: var(--creme);
  font-size: 16px;
}

.btn--petit {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

/* Flèche qui glisse au survol du bouton */
.fleche {
  transition: transform .3s ease;
}

.btn:hover .fleche {
  transform: translateX(4px);
}

/* ---------- En-tête ---------- */

/* En-tête collant en haut de l'écran, sur toute la largeur. Trois colonnes :
   logo | menu centré sur la page | bouton « Disponible ». Les marges latérales
   alignent le contenu sur la grille de 1440 px des sections. */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px max(var(--marge), calc((100% - 1312px) / 2));
  background: var(--creme);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 40px;
}

/* Sur grand écran, le contenu du menu se place directement dans la grille de l'en-tête */
.menu {
  display: contents;
}

.entete__dispo {
  justify-self: end;
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--encre);
  text-decoration: none;
}

.nav-principale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-principale a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--encre);
}

.nav-principale a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

/* Pastille verte du bouton « Disponible » */
.pastille {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* Bouton du menu burger (petits écrans, voir menu.js) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0 -10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--encre);
  cursor: pointer;
}

.burger__barre {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

/* Les trois barres forment une croix quand le menu est ouvert */
.menu-ouvert .burger__barre:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-ouvert .burger__barre:nth-child(2) {
  opacity: 0;
}

.menu-ouvert .burger__barre:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .entete {
    display: flex;
    justify-content: space-between;
  }

  .burger {
    display: flex;
  }

  /* Le menu devient un panneau qui se déplie sous l'en-tête */
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 8px var(--marge) 36px;
    background: var(--creme);
    border-bottom: 1px solid var(--filet);
    box-shadow: 0 24px 40px rgba(25, 22, 19, 0.08);
  }

  .menu-ouvert .menu {
    display: flex;
  }

  .nav-principale {
    flex-direction: column;
    align-items: flex-start;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .nav-principale a {
    min-height: 52px;
  }
}

/* ---------- Contact et pied de page ---------- */

.contact {
  background: var(--encre);
  color: var(--creme);
  overflow: hidden;
}

.contact__interieur {
  padding-top: clamp(88px, 8vw, 116px);
}

.contact__titre {
  margin: 0;
  font-size: clamp(46px, 11.2vw, 164px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.contact__titre > span {
  display: block;
}

.contact__titre .a-droite {
  text-align: right;
}

.contact__point {
  color: var(--accent);
}

.contact__corps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px 80px;
  margin-top: clamp(44px, 4.5vw, 64px);
}

.contact__texte {
  flex: 1 1 360px;
  max-width: 560px;
}

.contact__intro {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: #D9D3C9;
}

.contact__email {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  color: var(--creme);
}

.contact__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__liens .btn {
  padding: 0 24px;
}

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: clamp(56px, 6vw, 88px);
  padding: 8px 0;
  border-top: 1px solid rgba(243, 238, 229, 0.18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-clair);
}

.pied a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--gris-clair);
}

/* ---------- Accessibilité : mouvements réduits ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .fleche,
  .burger__barre {
    transition: none;
  }
}
