/* =========================================================================
   Léa Fontaine — photographe culinaire & lifestyle
   Feuille de style unique (mobile-first)
   ========================================================================= */

/* --------- Reset minimal --------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }

ul { padding: 0; list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

/* --------- Tokens --------- */

:root {
  /* Couleurs */
  --bg:          #0A0A0A;
  --bg-alt:      #141210;
  --text:        #F0EDE8;
  --text-mute:   #8A8480;
  --accent:      #B5684A;
  --rule:        #2A2624;

  /* Typo */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tailles de texte fluides */
  --fs-hero:     clamp(3.75rem, 11vw, 9.5rem);
  --fs-h2:       clamp(2.25rem, 5vw, 4.25rem);
  --fs-h3:       clamp(1.5rem, 2vw, 1.75rem);
  --fs-lead:     clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-body:     clamp(0.9375rem, 1vw, 1rem);
  --fs-small:    0.75rem;
  --fs-eyebrow:  0.75rem;

  /* Espacements */
  --sp-xs:  0.5rem;
  --sp-s:   1rem;
  --sp-m:   2rem;
  --sp-l:   4rem;
  --sp-xl:  6rem;
  --sp-2xl: 8rem;
  --sp-3xl: 10rem;

  --section-py: clamp(5rem, 12vw, 10rem);
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --max-w:      1440px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
}

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
a:focus-visible,
button:focus-visible {
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
  z-index: 100;
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow-accent { color: var(--accent); letter-spacing: 0.3em; }

/* Reveals (aucun translate/scale — opacité pure comme le brief l'exige) */
.fade {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.fade.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transition: none; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* =========================================================================
   Header + navigation
   ========================================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.125rem;
  letter-spacing: 0.005em;
  color: var(--text);
  transition: color 0.4s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.375rem 0;
}
.logo:hover { color: var(--accent); }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
}
.nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0;
  transition: color 0.4s ease;
}
.nav a:hover,
.nav a:focus-visible { color: var(--accent); }

/* Hamburger — caché desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.15) 45%, rgba(10,10,10,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 5rem) var(--gutter);
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-eyebrow { margin-bottom: 1.25rem; color: var(--text); }

.hero-title {
  font-size: var(--fs-hero);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: clamp(1.125rem, 1.75vw, 1.75rem);
  letter-spacing: -0.005em;
}

.hero-rail {
  position: absolute;
  right: clamp(0.75rem, 1.5vw, 1.75rem);
  top: 50%;
  z-index: 2;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right center;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

/* =========================================================================
   Portfolio (Sélection)
   ========================================================================= */

.portfolio {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  padding: 0 clamp(0px, 4vw, 4rem);
}
.section-title {
  font-size: var(--fs-h2);
  letter-spacing: -0.015em;
}
.section-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Mosaïque — mobile: une colonne pleine largeur */
.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3.5rem, 8vw, 6rem);
}

.mosaic-item {
  margin: 0;
}
.mosaic-item img {
  width: 100%;
  height: auto;
  transition: filter 0.6s ease;
}
.mosaic-item:hover img { filter: brightness(1.06); }

.mosaic-item figcaption {
  margin-top: 0.875rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}
.mosaic-item .num {
  color: var(--accent);
  margin-right: 0.65rem;
  font-weight: 500;
}

/* =========================================================================
   Approche
   ========================================================================= */

.approche {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.approche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.approche-text .eyebrow { margin-bottom: 1.75rem; }

.approche-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}

.approche-lead,
.approche-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 38ch;
}
.approche-lead {
  color: var(--text);
  margin-bottom: 1.25rem;
}
.approche-body { color: var(--text-mute); }

.approche-photo img {
  width: 100%;
  height: auto;
}
.approche-photo figcaption {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* =========================================================================
   Services
   ========================================================================= */

.services {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: var(--bg-alt);
}

.services-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 20ch;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.service {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 1px;
  background: transparent;
}
.service-accent::before { background: var(--accent); }

.service-num {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  letter-spacing: -0.005em;
  margin-bottom: 1.25rem;
}

.service p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-mute);
  max-width: 28ch;
}

/* =========================================================================
   Contact
   ========================================================================= */

.contact {
  padding-top: clamp(6rem, 14vw, 12rem);
  padding-bottom: clamp(6rem, 14vw, 12rem);
  background: var(--bg);
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact .eyebrow-accent { letter-spacing: 0.35em; }

.contact-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.75vw, 2.75rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 1.25rem 0 clamp(2.5rem, 5vw, 4rem);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 4.25rem);
  color: var(--text);
  letter-spacing: -0.015em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(240, 237, 232, 0.35);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-meta {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-meta a {
  color: var(--text-mute);
  transition: color 0.4s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 0.25rem;
}
.contact-meta a:hover { color: var(--accent); }
.contact-meta > span[aria-hidden] { color: var(--rule); }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-mute);
}

.footer-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-meta span[aria-hidden] { color: var(--rule); }

.footer-link {
  color: var(--text-mute);
  border-bottom: 1px solid transparent;
  transition: color 0.4s ease, border-color 0.4s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 0.25rem;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--rule);
}

/* =========================================================================
   Mobile overlay nav
   ========================================================================= */

@media (max-width: 899px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 40;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
  }
  .nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav a {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
}

/* =========================================================================
   Tablette
   ========================================================================= */

@media (min-width: 700px) {
  .approche-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
  .approche-text {
    padding-left: clamp(2rem, 8vw, 8rem);
    align-self: center;
  }
  .approche-photo {
    justify-self: end;
  }
  .approche-photo img {
    width: 80%;
    height: auto;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* =========================================================================
   Desktop — mosaïque asymétrique 12 colonnes
   ========================================================================= */

@media (min-width: 900px) {
  .header-inner { padding: 1.75rem clamp(2rem, 4vw, 3rem); }

  .hero-content { padding-bottom: clamp(4rem, 7vw, 6rem); }
  .hero-eyebrow { margin-bottom: 1.75rem; }

  .mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 40px;
    gap: 0;
    row-gap: clamp(3rem, 5vw, 5rem);
    column-gap: clamp(1rem, 2vw, 2rem);
  }

  /* Positions calquées sur la maquette (mosaïque asymétrique) */
  .item-01 { grid-column: 3 / span 6;  grid-row: span 12; }
  .item-02 { grid-column: 9 / span 3;  grid-row: 4 / span 12; }

  .item-03 { grid-column: 3 / span 3;  grid-row: span 13; }
  .item-04 { grid-column: 7 / span 5;  grid-row: span 10; margin-top: 2rem; }

  .item-05 { grid-column: 3 / span 8;  grid-row: span 12; }

  .item-06 { grid-column: 3 / span 3;  grid-row: span 13; }
  .item-07 { grid-column: 6 / span 3;  grid-row: span 15; margin-top: 3rem; }
  .item-08 { grid-column: 9 / span 2;  grid-row: span 5; }

  .item-09 { grid-column: 3 / span 3;  grid-row: span 8; }
  .item-10 { grid-column: 7 / span 4;  grid-row: span 7; margin-top: 3rem; }

  .mosaic-item img { display: block; width: 100%; }
  .item-01 img,
  .item-04 img,
  .item-05 img,
  .item-09 img,
  .item-10 img { aspect-ratio: 3 / 2; object-fit: cover; }
  .item-02 img,
  .item-03 img,
  .item-06 img,
  .item-07 img { aspect-ratio: 3 / 4; object-fit: cover; }
  .item-08 img { aspect-ratio: 1 / 1; object-fit: cover; }
}

/* =========================================================================
   Large desktop tweaks
   ========================================================================= */

@media (min-width: 1200px) {
  .section-head { padding: 0 clamp(2rem, 4vw, 4rem); }
}
