/* ==========================================================================
   AZULEJO STUDIO — Homepage · v1 (desktop d'abord)
   Tout le style est piloté par les variables ci-dessous.
   ========================================================================== */

:root {
  /* — Couleurs — */
  --noir:        #1A1816;
  --blanc:       #FAFAF8;
  --taupe:       #857A6F;   /* titres espacés */
  --taupe-fonce: #6E655C;
  --texte:       #4A4540;
  --filet:       #E2DED8;
  --sable:       #EFECE7;
  --accent:      #2F4A63;   /* touche de couleur sobre : bleu ardoise (alternatives : #3E5A55 · #6B4E3D) */

  /* — Polices (à ajuster ; pensez à mettre à jour le lien Google Fonts dans index.html) — */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-text:    'Jost', 'Futura', 'Avenir Next', sans-serif;

  /* — Mise en page — */
  --max:  1440px;
  --pad:  clamp(24px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--font-text);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, figure { margin: 0; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--taupe); }

/* ---------- Typographie récurrente ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  color: var(--taupe);
}
.eyebrow--light { color: rgba(250,250,248,.75); font-size: 11px; font-weight: 300; }
.display { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 4.4vw, 66px); line-height: 1.05; }
.display--md { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.12; }
.body-text { font-size: 16px; line-height: 1.9; color: var(--texte); max-width: 440px; }
.body-text--sm { font-size: 15px; max-width: 320px; }
.rule { display: block; width: 40px; height: 1px; background: var(--accent); }
.arrow { display: inline-block; transition: transform .4s ease; }
a:hover .arrow, button:hover .arrow { transform: translateX(6px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 18px; cursor: pointer;
  padding: 22px 48px; background: transparent; border: 1px solid var(--taupe); color: var(--texte);
  font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.btn:hover { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.link-line {
  display: inline-flex; align-items: center; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--noir);
  font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
}
.link-line--btn { background: none; border: 0; border-bottom: 1px solid var(--noir); cursor: pointer; min-height: 44px; }

/* ---------- Animations d'entrée ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise   { animation: rise 1.6s var(--ease) both; }
.rise--2 { animation-delay: .35s; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .js .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .hero__video { display: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--blanc); background: var(--noir); overflow: hidden;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil  { position: absolute; inset: 0; background: rgba(18,17,16,.42); }

.nav {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 36px var(--pad) 0;
}
.nav__side { display: flex; gap: 40px; font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; }
.nav__side--right { justify-content: flex-end; }
.nav__side a { position: relative; display: inline-block; padding: 14px 0; }
.nav__side a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav__side a:hover::after { transform: scaleX(1); }
.nav__side .is-muted { opacity: .7; }
.nav__logo img { width: 168px; }
.nav__burger { display: none; }

.hero__foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding: 0 var(--pad) 48px;
}
.hero__title {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.01em;
}
.hero__aside { display: flex; align-items: flex-end; gap: 56px; }
.hero__cities { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; line-height: 2; color: rgba(250,250,248,.75); }
.scroll { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; }
.scroll i { position: relative; display: block; width: 1px; height: 56px; background: rgba(250,250,248,.25); overflow: hidden; }
.scroll b { position: absolute; inset: 0; background: var(--blanc); animation: line 2.6s ease-in-out infinite; }
@keyframes line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   STUDIO · manifeste
   ========================================================================== */
.studio {
  padding-top: 200px; padding-bottom: 180px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px 64px;
}
.studio__label { display: flex; flex-direction: column; gap: 20px; }
.studio__body  { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.manifesto {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.18; letter-spacing: -.005em; text-wrap: pretty;
}
.manifesto em { color: var(--taupe); }
.studio__row { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }

/* ==========================================================================
   ŒUVRES
   ========================================================================== */
.works { padding-bottom: 200px; }
.works__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-bottom: 28px; margin-bottom: 72px; border-bottom: 1px solid var(--filet);
}
.works__count { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--taupe); }
.works__grid { display: flex; flex-wrap: wrap; gap: 64px 6%; align-items: flex-start; }
.work--big   { flex: 1 1 520px; max-width: 680px; min-width: 0; }
.work--small { flex: 1 1 340px; max-width: 460px; min-width: 0; margin-top: 240px; }

.work__open {
  display: block; width: 100%; padding: 0; border: 0; background: #E9E6E1; overflow: hidden; cursor: zoom-in;
}
.work--big   .work__open { aspect-ratio: 4 / 5; }
.work--small .work__open { aspect-ratio: 2 / 3; }
.work__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work__open:hover img { transform: scale(1.03); }

figcaption {
  display: flex; justify-content: space-between; gap: 24px; padding-top: 20px;
  font-size: 13px; line-height: 1.7;
}
figcaption b { font-weight: 300; color: var(--taupe); letter-spacing: .2em; margin-right: 10px; }
figcaption i { font-family: var(--font-display); font-size: 20px; }
figcaption .muted { text-align: right; }

.works__closing { display: flex; flex-wrap: wrap; gap: 64px 6%; align-items: flex-end; margin-top: 140px; }
.works__closing-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 36px; padding-bottom: 12px; align-items: flex-start; }
.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.25; }
.work--wide { flex: 1.3 1 480px; min-width: 0; }
.placeholder {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: #ECE9E4; border: 1px solid var(--filet);
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--taupe);
}

/* ==========================================================================
   BANDEAU MONOGRAMME
   ========================================================================== */
.band { background: var(--noir); color: var(--blanc); padding: 140px var(--pad); }
.band__inner { max-width: 1296px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px; }
.band__mark { width: 92px; opacity: .92; }
.band__quote { flex: 1 1 520px; max-width: 820px; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.22; }
.band__quote em { color: #B9AFA4; }

/* ==========================================================================
   COMMISSION
   ========================================================================== */
.commission { padding-top: 200px; padding-bottom: 200px; display: flex; flex-wrap: wrap; gap: 80px 8%; }
.commission__intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.commission__intro .body-text { max-width: 420px; }
.status { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--texte); }
.dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.commission__steps { flex: 1.2 1 480px; min-width: 0; display: flex; flex-direction: column; }
.step { border-top: 1px solid var(--filet); }
.step__btn {
  width: 100%; display: flex; align-items: baseline; gap: 40px; padding: 34px 0;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--taupe-fonce); transition: color .3s ease;
}
.step.is-open .step__btn, .step__btn:hover { color: var(--noir); }
.step__num   { width: 40px; flex: none; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--taupe); }
.step__title { flex: 1; font-family: var(--font-display); font-weight: 300; font-size: 34px; line-height: 1.1; }
.step__sign  { font-size: 18px; color: var(--taupe); }
.step__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.step__panel > p { overflow: hidden; min-height: 0; max-width: 520px; padding-left: 80px; font-size: 16px; line-height: 1.9; color: var(--texte); }
.step.is-open .step__panel { grid-template-rows: 1fr; }
.step.is-open .step__panel > p { padding-bottom: 40px; }
.commission__cta { border-top: 1px solid var(--filet); padding-top: 56px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; font-size: 13px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--sable); }
.contact__top { padding-top: 180px; padding-bottom: 96px; display: grid; grid-template-columns: 2fr 1fr; gap: 64px; }
.contact__lead { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.contact__lead .display { max-width: 760px; }
.mail {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--noir); font-family: var(--font-display); font-size: 26px; font-style: italic;
}
.contact__studios { display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }

.contact__formwrap { padding-bottom: 180px; }
.contact__formwrap { display: flex; flex-wrap: wrap; gap: 56px 8%; border-top: 1px solid #D6D0C8; margin: 0 auto; padding-top: 80px; }
.contact__formintro { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.form { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }
.field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--taupe-fonce);
}
.field--full, .chips, .form__actions { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #B9AFA4; border-radius: 0; outline: none;
  padding: 14px 0; font: inherit; font-size: 17px; font-weight: 300; letter-spacing: normal; text-transform: none; color: var(--noir);
  transition: border-color .3s ease;
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--noir); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #9A3B2E; }
.counter { margin-top: 10px; font-size: 12px; font-weight: 300; letter-spacing: .04em; text-transform: none; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips legend { padding: 0; margin-bottom: 16px; width: 100%; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--taupe-fonce); }
.chip {
  min-height: 44px; padding: 0 22px; cursor: pointer; background: transparent; border: 1px solid #B9AFA4; color: var(--texte);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.chip.is-on { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.form__error { font-size: 13px; color: #9A3B2E; }
.form__done { flex: 2 1 520px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; padding: 24px 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--noir); color: var(--blanc); }
.footer__in { padding-top: 96px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 96px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 48px; }
.footer__logo { width: min(420px, 100%); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 40px; font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; }
.footer__nav a { padding: 14px 0; border-bottom: 1px solid transparent; transition: border-color .4s ease; }
.footer__nav a:hover { border-color: currentColor; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px;
  border-top: 1px solid rgba(250,250,248,.15); font-size: 12px; letter-spacing: .08em; color: #B9AFA4;
}

/* ==========================================================================
   VISIONNEUSE & MENU
   ========================================================================== */
.viewer, .menu { position: fixed; inset: 0; overflow-y: auto; animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.viewer { z-index: 50; background: var(--blanc); display: flex; flex-direction: column; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 28px var(--pad); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--taupe); }
.viewer__close, .menu__close { background: none; border: 0; cursor: pointer; min-height: 44px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--noir); }
.viewer__close span { margin-left: 10px; font-size: 20px; font-weight: 200; }
.viewer__body { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px 7%; padding: 24px var(--pad) 64px; }
.viewer__body img { max-width: min(520px, 100%); max-height: 74vh; width: auto; height: auto; object-fit: contain; }
.viewer__info { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.viewer__title { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 44px; line-height: 1.05; }
.viewer__meta { font-size: 14px; line-height: 2; color: var(--texte); }
.viewer__actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 12px; }
.viewer__actions .btn { padding: 18px 34px; }

.menu { z-index: 60; background: var(--noir); color: var(--blanc); display: flex; flex-direction: column; padding: 32px 24px 40px; }
.menu__bar { display: flex; justify-content: space-between; align-items: center; }
.menu__bar img { width: 34px; }
.menu__close { color: var(--blanc); }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 1.1; }
.menu__foot { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: #B9AFA4; }

/* ==========================================================================
   Filet de sécurité tablette / mobile (la vraie passe responsive viendra ensuite)
   ========================================================================== */
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__side { display: none; }
  .nav__logo img { width: 128px; }
  .nav__burger { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; background: none; border: 0; cursor: pointer; color: var(--blanc); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; }
  .nav__burger span { display: inline-flex; flex-direction: column; gap: 6px; }
  .nav__burger i { display: block; width: 22px; height: 1px; background: var(--blanc); }
  .nav__burger i + i { width: 14px; align-self: flex-end; }
  .studio, .contact__top { grid-template-columns: 1fr; }
  .studio { padding-top: 120px; padding-bottom: 100px; }
  .work--small { margin-top: 0; }
  .form { grid-template-columns: 1fr; }
  .step__panel > p { padding-left: 0; }
  .hero__aside { display: none; }
}
