/* ==========================================================================
   ATELIER LATRESNE — style.css
   --------------------------------------------------------------------------
   ECHELLE FLUIDE / HOMOTHETIQUE
   Le design Figma de reference fait 1481px de large (= 16px de base = 1rem).
   Toutes les tailles du site (police, marges, images) sont exprimees en rem,
   donc TOUT grandit/retrecit ensemble, dans les memes proportions, au lieu
   d'avoir des breakpoints qui cassent la mise en page.

   La formule ci-dessous (root font-size) est une droite qui passe par (0,0):
     taille-racine = 16px * (largeur-ecran / 1481)
   -> en vw : (1600/1481) vw = 1.0803vw

   - En dessous de 768px (format iPad) : la taille racine est figee a la
     valeur qu'elle a a 768px (8.3px). Le site ne retrecit plus en dessous.
     (Un breakpoint mobile dedie sera ajoute plus tard avec la maquette Figma
     mobile.)
   - Au dessus de 1920px : la taille racine est figee a la valeur qu'elle a
     a 1920px (20.74px). Le site ne grandit plus au-dela.
   ========================================================================== */

:root {
  --color-black: #000000;
  --color-white: #ffffff;

  --font-sans: "Helvetica Now Display", Helvetica, Arial, sans-serif;
  --font-serif-display: "Helvetica Now Display", Helvetica, Arial, sans-serif;

  /* espacements de mise en page (issus du design Figma, en rem) */
  --top-padding: 1.25rem;        /* 20px — marge resserree du bloc nav + image principale */
  --nav-to-tagline-gap: 1.125rem; /* 18px — espace entre logo/liens et la baseline */
  --tagline-to-hero-gap: 6.25rem; /* 100px — espace entre la baseline et l'image principale */
  --main-padding: 4.375rem;      /* 70px — marge generale du reste du site */
  --gap-between-sections: 5rem;  /* 80px */
  --gap-in-section: 3.75rem;     /* 60px */
}

html {
  /* --- coeur du systeme de redimensionnement homothetique --- */
  font-size: clamp(8.3px, 1.0803vw, 20.74px);
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.3;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400; /* les navigateurs mettent les titres en gras par defaut : on annule ca ici */
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   TOP — bloc nav + image principale (marge resserree : 20px)
   ========================================================================== */

.top-block {
  padding: 0 var(--top-padding) var(--top-padding) var(--top-padding);
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   NAVIGATION — sticky sur TOUTE la hauteur de la page (hors de .top-block
   expres, pour que son "conteneur de positionnement" soit la page entiere
   et pas juste le bloc du haut : sinon elle se decollerait des qu'on
   scrolle plus bas que l'image principale).
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: var(--top-padding) var(--top-padding) 0 var(--top-padding);
  margin-bottom: var(--nav-to-tagline-gap);
}

.site-nav__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.site-nav__logo img {
  width: 23rem;   /* logo reduit */
  height: auto;
  transition: width 0.25s ease;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.8125rem;   /* 29px */
}

.site-nav__links a {
  font-weight: 700;
  font-size: 1rem;  /* 16px */
  white-space: nowrap;
}

.site-nav__cta {
  text-decoration: underline;
}

/* Etat "scrolled" ajoute en JS : le logo retrecit (barre toujours transparente, sans separation) */
.site-nav.is-scrolled .site-nav__logo img {
  width: 11rem;
}

/* ==========================================================================
   TAGLINE (defile normalement, pas sticky)
   ========================================================================== */

.tagline {
  font-size: 1.5rem; /* 24px */
  text-transform: uppercase;
  max-width: 19.125rem; /* 306px */
  margin-bottom: var(--tagline-to-hero-gap);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero img {
  width: 100%;
  aspect-ratio: 1378 / 641;
  object-fit: cover;
}

/* ==========================================================================
   MAIN — reste du site (marge generale, plus large : 70px)
   ========================================================================== */

.main-block {
  padding: var(--main-padding);
}

/* ==========================================================================
   INTRO
   ========================================================================== */

.intro {
  display: flex;
  align-items: flex-start; /* les deux colonnes ferrees en haut */
  gap: 9.0625rem; /* 145px */
  margin-bottom: var(--gap-between-sections);
}

.intro__left,
.intro__right {
  flex: 1 1 0;
  min-width: 0;
}

.intro__title {
  font-size: 3.25rem;    /* 52px */
  line-height: 3.5rem;   /* 56px */
}

.intro__right p {
  font-size: 1.2rem; /* 24px */
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.intro__right p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SECTIONS GENERIQUES (Espace / Cuisine / Plan / Services)
   ========================================================================== */

.section {
  margin-bottom: var(--gap-between-sections);
}

.section__title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* espace titre / texte, resserre */
  max-width: 30.1875rem; /* 483px */
  margin-bottom: var(--gap-in-section);
}

.section__title h2,
.section__title-solo {
  font-family: "Helvetica Now Display Medium", "Helvetica Now Display", Helvetica, Arial, sans-serif;
  font-weight: 500; /* medium, pas gras */
  font-size: 3.25rem;   /* 52px */
  line-height: 3.5rem;  /* 56px */
  text-transform: uppercase;
}

.section__title-solo {
  margin-bottom: var(--gap-in-section);
}

.section__title p {
  font-size: 1rem;      /* 16px */
  line-height: 1.25rem; /* 20px */
}

/* --- Espace --- */

.espace-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--gap-in-section);
}

.espace-img-a {
  width: 33.0625rem;  /* 529px */
}

.espace-img-b {
  width: 18.5625rem;  /* 297px */
}

.espace-row-2 {
  display: flex;
  justify-content: flex-end;
  padding-right: 7.5rem; /* 120px */
}

.espace-img-c {
  width: 24.6875rem; /* 395px */
}

/* --- Cuisine --- */

.cuisine-row-1 {
  margin-bottom: var(--gap-in-section);
}

.cuisine-row-1 img {
  width: 29.9375rem; /* 479px */
}

.cuisine-row-2 {
  display: flex;
  gap: 13.9375rem; /* 223px */
  align-items: flex-end;
}

.cuisine-row-2__left {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.cuisine-row-2__left img {
  width: 17.75rem; /* 284px */
}

.cuisine-row-2__right {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
}

.cuisine-row-2__right img {
  width: 23.8125rem; /* 381px */
}

/* --- Plan --- */

.plan-image {
  display: flex;
  justify-content: center;
}

.plan-image img {
  width: 66.6875rem; /* 1067px */
}

/* --- Services --- */

.services-list li {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-black);
  font-size: 1.375rem; /* 22px, resserre */
}

.services-list li:last-child {
  border-bottom: 1px solid var(--color-black);
}

/* --- Book link --- */

.book-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0;
}

.book-link a {
  font-size: 3.5rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline;
  line-height: 1;
}

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

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 3.75rem; /* 60px, tous cotes */
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3.75rem; /* 60px */
}

.site-footer__talk {
  font-size: 3.25rem; /* 52px */
  text-transform: uppercase;
  text-align: left;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__col p {
  font-size: 2.125rem; /* 34px */
  margin-bottom: 0.25rem;
}

.site-footer__col--small p {
  font-size: 1rem;      /* 16px */
  line-height: 1.25rem; /* 20px */
  margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE (< 768px) — mise en pile simple en attendant la maquette mobile
   ========================================================================== */

@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    gap: 2rem;
  }

  .espace-row-1,
  .cuisine-row-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .espace-row-2 {
    padding-right: 0;
    justify-content: center;
  }

  .cuisine-row-2__right {
    justify-content: flex-start;
  }

  .site-footer__row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .book-link a {
    font-size: 3rem;
  }
}
