/* ============================================================
   ALPHA ARCHITECTURE — feuille de style principale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Newsreader:ital,wght@0,400;1,400;1,500&display=swap');

:root{
  /* Palette */
  --c-bg:            #FAF8F4;   /* blanc cassé chaud */
  --c-bg-raised:     #F3F0EA;
  --c-ink:           #141312;   /* noir presque pur */
  --c-ink-soft:      #4A4844;
  --c-red:           #B11226;   /* rouge profond, identité */
  --c-red-dim:       #8C0E1E;
  --c-line:          #DCD7CD;   /* hairline */
  --c-line-dark:     rgba(255,255,255,.18);
  --c-night:         #111111;
  --c-white:         #FFFFFF;

  /* Typographie */
  --f-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Newsreader', 'Times New Roman', serif;

  /* Rythme */
  --gutter: 1.5rem;
  --container-max: 1320px;
  --section-space: 9rem;
  --section-space-sm: 5rem;

  --ease: cubic-bezier(.4,0,.2,1);
}

@media (max-width: 720px){
  :root{
    --gutter: 1.15rem;
    --section-space: 4.5rem;
    --section-space-sm: 3rem;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select{ font: inherit; color: inherit; }

:focus-visible{
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

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

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type scale ---------- */
.type-display{
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: .98;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
}
.type-h1{
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.type-h2{
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.08;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
}
.type-h3{
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
}
.type-label{
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--c-ink-soft);
}
.type-body{
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
  max-width: 62ch;
}
.type-editorial{
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--c-ink);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  mix-blend-mode: normal;
  color: var(--c-ink);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.on-dark{ color: var(--c-white); }
.site-header.is-solid{
  background: var(--c-bg);
  border-bottom-color: var(--c-line);
  color: var(--c-ink);
}

.brand{
  display: flex;
  align-items: center;
  gap: .7rem;
}
.brand-mark{
  height: 34px;
  width: auto;
}
.brand-mark-white{ display: none; }
.site-header.on-dark .brand-mark-black{ display: none; }
.site-header.on-dark .brand-mark-white{ display: block; }
.site-header.on-dark.is-solid .brand-mark-black{ display: block; }
.site-header.on-dark.is-solid .brand-mark-white{ display: none; }
.footer-brand .brand-mark{ height: 30px; }

.brand-text{
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text span{
  font-weight: 400;
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--c-red);
  margin-top: .15rem;
}
@media (max-width: 400px){
  .brand-text{ display: none; }
}

.nav-primary{
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-primary a{
  font-size: .82rem;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: .2rem;
}
.nav-primary a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after{ right: 0; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  z-index: 210;
}
.nav-toggle span{
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-toggle{ display: flex; }
  .nav-primary{
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 0 8vw;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    z-index: 200;
  }
  .nav-primary.is-open{ transform: translateY(0); }
  .nav-primary a{ font-size: 1.7rem; font-weight: 500; letter-spacing: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--c-white);
  background: var(--c-night);
  overflow: hidden;
}
.hero-media{
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: brightness(.62) contrast(1.03);
}
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.78) 0%, rgba(10,10,10,.15) 45%, rgba(10,10,10,.35) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 4.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
}
.hero-content .type-display{
  grid-column: 1 / 10;
}
.hero-content .type-display em{
  font-style: normal;
  color: var(--c-red);
}
.hero-sub{
  grid-column: 1 / 8;
  margin-top: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  max-width: 46ch;
}
.hero-scroll{
  position: absolute;
  right: var(--gutter);
  bottom: 2.2rem;
  z-index: 2;
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero-scroll::after{
  content: "";
  width: 1px; height: 46px;
  background: rgba(255,255,255,.5);
}
@media (max-width: 720px){
  .hero{ align-items: flex-end; }
  .hero-content{ padding-bottom: 3rem; }
  .hero-content .type-display{ grid-column: 1 / -1; }
  .hero-sub{ grid-column: 1 / -1; }
  .hero-scroll{ display: none; }
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section{ position: relative; }
.section{
  padding: var(--section-space) 0;
}
.section-tight{ padding: var(--section-space-sm) 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.4rem;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 1.6rem;
}
.section-index{
  font-family: var(--f-sans);
  font-size: .78rem;
  color: var(--c-ink-soft);
  letter-spacing: .04em;
}
.section-on-dark{
  background: var(--c-night);
  color: var(--c-white);
}
.section-on-dark .section-head{ border-color: var(--c-line-dark); }
.section-on-dark .type-body{ color: rgba(255,255,255,.68); }

/* ---------- Projects — editorial composition ---------- */
.project-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter) var(--gutter);
}
.project-card{
  position: relative;
  display: block;
  color: inherit;
}
.project-card .frame{
  position: relative;
  overflow: hidden;
  background: var(--c-bg-raised);
  aspect-ratio: 4 / 5;
}
.project-card:nth-child(2) .frame{ aspect-ratio: 16 / 10; }
.project-card:nth-child(3) .frame{ aspect-ratio: 3 / 4; }
.project-card .frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project-card:hover .frame img{ transform: scale(1.045); }
.project-card .frame .ph{
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 1rem;
  color: var(--c-ink-soft);
  font-size: .72rem;
  letter-spacing: .04em;
  background:
    repeating-linear-gradient(135deg, rgba(20,19,18,.05) 0 1px, transparent 1px 14px);
  border: 1px solid var(--c-line);
}
.project-card .meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--c-line);
  gap: 1rem;
}
.project-card .meta h3{ font-size: 1.05rem; font-weight: 600; }
.project-card .meta .place{
  font-size: .8rem;
  color: var(--c-ink-soft);
  text-align: right;
}
.project-card:nth-child(1){ grid-column: 1 / 8; }
.project-card:nth-child(2){ grid-column: 8 / 13; margin-top: 5rem; }
.project-card:nth-child(3){ grid-column: 1 / 6; margin-top: -3rem; }
@media (max-width: 900px){
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3){
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .project-grid{ gap: 2.6rem var(--gutter); }
}

/* ---------- Listing page grid (all projects) ---------- */
.listing-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem var(--gutter);
}
.listing-grid .project-card .frame{ aspect-ratio: 4 / 3; }
@media (max-width: 720px){
  .listing-grid{ grid-template-columns: 1fr; }
}

/* ---------- Manifesto ---------- */
.manifesto{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.manifesto .type-editorial{
  grid-column: 2 / 12;
}
@media (max-width: 720px){
  .manifesto .type-editorial{ grid-column: 1 / -1; }
}

/* ---------- Two-col generic ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px){
  .split{ grid-template-columns: 1fr; gap: 2.4rem; }
}
.split .frame{
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-bg-raised);
}
.split .frame img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- Founders ---------- */
.founders{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-top: 3rem;
}
.founder-photo{
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-bg-raised);
  margin-bottom: 1.1rem;
}
.founder-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.founder{
  border-top: 1px solid var(--c-line);
  padding-top: 1.4rem;
}
.founder h3{ font-size: 1.2rem; font-weight: 600; }
.founder p{ margin-top: .35rem; font-size: .88rem; color: var(--c-ink-soft); }
@media (max-width: 640px){
  .founders{ grid-template-columns: 1fr; }
}

/* ---------- Domaines list ---------- */
.domain-list{
  margin-top: 2.6rem;
  border-top: 1px solid var(--c-line);
}
.domain-list li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 1.15rem;
  font-weight: 500;
}
.domain-list li span{
  font-size: .78rem;
  color: var(--c-ink-soft);
  font-weight: 400;
  font-family: var(--f-serif);
  font-style: italic;
}

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.7rem;
  background: var(--c-red);
  color: var(--c-white);
  font-size: .84rem;
  letter-spacing: .03em;
  font-weight: 500;
  transition: background-color .3s var(--ease);
}
.btn:hover{ background: var(--c-red-dim); }
.btn-outline{
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn-outline:hover{ background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.section-on-dark .btn-outline:hover{ background: var(--c-white); color: var(--c-night); border-color: var(--c-white); }

.text-link{
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: .15rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4.5rem;
}
@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; gap: 3rem; }
}
.contact-list{ margin-top: 2rem; }
.contact-list li{
  padding: 1rem 0;
  border-top: 1px solid var(--c-line-dark);
}
.contact-list li:last-child{ border-bottom: 1px solid var(--c-line-dark); }
.contact-list a{ font-size: 1.05rem; }

form.form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
}
.field{ display: flex; flex-direction: column; gap: .5rem; }
.field.full{ grid-column: 1 / -1; }
.field label{
  font-size: .74rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.6);
}
.field input, .field select, .field textarea{
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line-dark);
  padding: .6rem 0;
  color: var(--c-white);
}
.field textarea{ resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--c-red);
}
.field select{ appearance: none; }
.field select option{ color: #111; }
form.form .btn{ grid-column: 1 / -1; justify-self: start; margin-top: .8rem; }
@media (max-width: 640px){
  form.form{ grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECT PAGE (type)
   ============================================================ */
.project-hero{
  position: relative;
  height: 78svh;
  min-height: 420px;
  background: var(--c-night);
  overflow: hidden;
}
.project-hero img{
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.85);
}
.project-intro{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 3.4rem;
}
@media (max-width: 860px){
  .project-intro{ grid-template-columns: 1fr; gap: 2rem; }
}
.spec-table{
  border-top: 1px solid var(--c-line);
}
.spec-table div{
  display: flex;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: .88rem;
}
.spec-table dt{ color: var(--c-ink-soft); font-weight: 400; }
.spec-table dd{ margin: 0; font-weight: 500; }

.gallery{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: var(--section-space-sm);
}
.gallery .full{ grid-column: 1 / -1; }
.gallery figure{ margin: 0; }
.gallery .frame{ overflow: hidden; background: var(--c-bg-raised); position: relative; }
.gallery .frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption{
  margin-top: .6rem;
  font-size: .76rem;
  color: var(--c-ink-soft);
  font-family: var(--f-serif);
  font-style: italic;
}
.gallery .frame.r-16-9{ aspect-ratio: 16/9; }
.gallery .frame.r-1-1{ aspect-ratio: 1/1; }
.gallery .frame.r-3-4{ aspect-ratio: 3/4; }

.project-next{
  margin-top: var(--section-space);
  border-top: 1px solid var(--c-line);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.project-next .label{ font-size: .76rem; letter-spacing: .06em; color: var(--c-ink-soft); }
.project-next .name{ font-size: 1.6rem; font-weight: 600; margin-top: .3rem; }

/* ============================================================
   PLACEHOLDER IMAGE BLOCK
   ============================================================ */
.frame .ph{
  position: absolute; inset: 0;
  border: 1px dashed var(--c-line);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--c-ink-soft);
  background: var(--c-bg-raised);
}
.frame .ph code{
  display: block;
  margin-top: .4rem;
  font-family: monospace;
  font-size: .7rem;
  opacity: .7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--c-night);
  color: rgba(255,255,255,.75);
  padding: 4.5rem 0 2rem;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-line-dark);
}
.footer-brand{
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.footer-nav{ display: flex; gap: 2.4rem; flex-wrap: wrap; }
.footer-nav a{ font-size: .84rem; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .74rem;
  color: rgba(255,255,255,.45);
}
@media (max-width: 640px){
  .footer-top{ flex-direction: column; gap: 2rem; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- misc page hero (non-home pages) ---------- */
.page-hero{
  padding: 9.5rem 0 3rem;
  border-bottom: 1px solid var(--c-line);
}
@media (max-width: 720px){
  .page-hero{ padding: 7rem 0 2.4rem; }
}
