/* =========================================================
   CHALUMEAU HUGUES ARCHITECTE
   SOCLE GRAPHIQUE COMMUN
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;

  --text: #111111;
  --text-soft: #555555;
  --muted: #888888;

  --line: #dedede;
  --line-dark: #bcbcbc;

  --max-width: 1440px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-xxl: 140px;

  --ease: cubic-bezier(.2,.65,.3,1);


  /* =========================================================
     TYPOGRAPHIE COMMUNE
     ========================================================= */

  /* PROJETS / AGENCE / ACTUALITÉS / CONTACT */
  --title-page-size: clamp(32px, 3vw, 40px);

  /* Titres principaux de sections */
  --title-section-size: clamp(24px, 2.4vw, 32px);

  /* Titres de contenu */
  --title-content-size: clamp(17px, 1.5vw, 21px);

  /* Surtitres */
  --eyebrow-size: 12px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  background: var(--bg);
  color: var(--text);

  font-family: "Manrope", Arial, Helvetica, sans-serif;

  font-size: 15px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;
}

a {
  color: inherit;

  text-decoration: none;
}

a:hover,
a:focus {
  color: inherit;

  text-decoration: none;
}


/* =========================================================
   CONTENEUR
   ========================================================= */

.site-container {
  width: min(calc(100% - 80px), var(--max-width));

  margin: 0 auto;
}


@media (max-width: 768px) {

  .site-container {
    width: min(calc(100% - 36px), var(--max-width));
  }

}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 1000;

  background: rgba(255,255,255,.96);

  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  min-height: 82px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 40px;
}


/* =========================================================
   LOGO / MARQUE
   ========================================================= */

.site-brand {
  display: flex;

  flex-direction: column;

  line-height: 1;
}

.site-brand-name {
  font-size: 18px;

  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.site-brand-role {
  margin-top: 7px;

  color: var(--muted);

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .22em;

  text-transform: uppercase;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-nav {
  display: flex;

  align-items: center;

  gap: 30px;

  margin: 0;

  padding: 0;

  list-style: none;
}

.site-nav a {
  position: relative;

  display: inline-block;

  padding: 30px 0 27px;

  color: #333;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: .12em;

  text-transform: uppercase;

  transition:
    color .2s ease;
}

.site-nav a:hover {
  color: #000;
}

.site-nav li.active a {
  color: #000;
}

.site-nav li.active a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: 21px;

  height: 1px;

  background: #111;
}


/* =========================================================
   MENU MOBILE
   ========================================================= */

.site-menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 0;

  background: transparent;

  border: 1px solid var(--line);

  cursor: pointer;
}

.site-menu-toggle span {
  display: block;

  width: 18px;
  height: 1px;

  margin: 5px auto;

  background: #111;
}


@media (max-width: 900px) {

  .site-header-inner {
    min-height: 70px;
  }


  .site-menu-toggle {
    display: block;
  }


  .site-nav-wrap {
    position: absolute;

    top: 70px;

    left: 0;
    right: 0;

    display: none;

    background: #fff;

    border-bottom: 1px solid var(--line);
  }


  .site-nav-wrap.open {
    display: block;
  }


  .site-nav {
    width: min(calc(100% - 36px), var(--max-width));

    margin: 0 auto;

    display: block;

    padding: 12px 0 24px;
  }


  .site-nav li {
    border-bottom: 1px solid var(--line);
  }


  .site-nav a {
    display: block;

    padding: 16px 0;

    font-size: 12px;
  }


  .site-nav li.active a::after {
    display: none;
  }

}


/* =========================================================
   TITRES — SURTITRES
   ========================================================= */

.page-eyebrow,
.portfolio-eyebrow,
.agency-eyebrow,
.news-eyebrow,
.contact-eyebrow,
.home-eyebrow {
  display: block;

  margin-bottom: 6px;

  color: var(--muted);

  font-size: var(--eyebrow-size);

  font-weight: 500;

  line-height: 1;

  letter-spacing: .15em;

  text-transform: uppercase;
}


/* =========================================================
   TITRES PRINCIPAUX DE PAGE
   ========================================================= */

.page-title,
.portfolio-title,
.agency-title,
.news-title-main,
.contact-title {
  margin: 0;

  max-width: 980px;

  color: var(--text);

  font-size: var(--title-page-size);

  font-weight: 400;

  line-height: 1;

  letter-spacing: -.03em;

  text-transform: uppercase;
}


/* =========================================================
   TITRES DE SECTION
   ========================================================= */

.section-title,
.portfolio-section-title,
.agency-section-title,
.news-section-title,
.contact-section-title,
.contact-secondary-inner h2,
.agency-recruitment-inner h2 {
  margin: 0;

  color: var(--text);

  font-size: var(--title-section-size);

  font-weight: 400;

  line-height: 1.08;

  letter-spacing: -.025em;

  text-transform: uppercase;
}


/* =========================================================
   TITRES DE CONTENU
   ========================================================= */

.project-title,
.agency-info-block h3,
.agency-contact-block h3,
.news-card-content h3,
.news-item-content h3 {
  color: var(--text);

  font-size: var(--title-content-size);

  font-weight: 400;

  line-height: 1.3;

  letter-spacing: -.015em;
}


/* =========================================================
   INTRODUCTION DE PAGE
   ========================================================= */

.page-intro {
  max-width: 700px;

  margin: 18px 0 0;

  color: var(--text-soft);

  font-size: 14px;

  line-height: 1.7;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: var(--space-xl) 0;
}

.section-small {
  padding: var(--space-lg) 0;
}

.section-soft {
  background: var(--bg-soft);
}


/* =========================================================
   META
   ========================================================= */

.meta {
  display: block;

  color: var(--muted);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: .18em;

  text-transform: uppercase;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.btn-outline {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 0 26px;

  border: 1px solid #111;

  background: transparent;

  color: #111;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: .16em;

  text-transform: uppercase;

  transition:
    background .2s ease,
    color .2s ease;
}

.btn-outline:hover {
  background: #111;

  color: #fff;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 70px;

  padding: 38px 0 46px;

  border-top: 1px solid var(--line);

  color: var(--muted);
}

.site-footer-inner {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;
}

.site-footer-brand {
  color: #111;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.site-footer-text {
  margin-top: 10px;

  font-size: 12px;

  line-height: 1.8;
}

.site-footer-links {
  text-align: right;

  font-size: 11px;

  line-height: 2;
}

.site-footer a {
  transition:
    color .2s ease;
}

.site-footer a:hover {
  color: #111;
}


/* =========================================================
   MOBILE — TYPOGRAPHIE
   ========================================================= */

@media (max-width: 700px) {

  :root {
    --title-page-size: 32px;
    --title-section-size: 26px;
    --title-content-size: 18px;
    --eyebrow-size: 11px;
  }


  .site-footer {
    margin-top: 50px;
  }


  .site-footer-inner {
    display: block;
  }


  .site-footer-links {
    margin-top: 30px;

    text-align: left;
  }

}


/* =========================================================
   ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(18px);

  transition:
    opacity .65s var(--ease),
    transform .65s var(--ease);
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}