/* ─────────────────────────────────────────
   JN STUDIO — Commandes page
   Two doors → side drawer adapted to audience
   ───────────────────────────────────────── */

main.commandes-page{ padding-top: 110px; }

/* ─────────────────────────────────────────
   Page title — aligned with the site logo in the header band.
   ───────────────────────────────────────── */
.commandes-title{
  position: relative;
  z-index: 102;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  height: 110px;
  margin-top: -110px; /* pulls into the header band so it aligns with the logo */
  padding: 0 240px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}
.commandes-title > *{ pointer-events: auto; }
.commandes-title h1.display{
  font-family: var(--font-display);
  font-weight: 300; font-style: normal;
  font-size: clamp(52px, 4.8vw, 74px);
  line-height: 1;
  letter-spacing: -.012em;
  margin: 0;
  color: var(--noir);
}
.commandes-title h1.display em{ color: var(--noir); font-style: normal; }
.commandes-title .lede{ display: none; }

/* ─────────────────────────────────────────
   PANEL — two doors, equal halves
   ───────────────────────────────────────── */
.commandes-panel{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100dvh - 110px);
  min-height: 600px;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
}
.commandes-panel::before{
  content: ""; position: absolute;
  top: 14%; bottom: 14%;
  left: 50%; width: 1px;
  background: var(--or); opacity: .55;
  z-index: 3;
}

.door{
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--creme-soft);
  display: flex; flex-direction: column;
  border: 0; padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}
.door::before{
  content: ""; position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(.77,0,.175,1),
              filter .8s cubic-bezier(.77,0,.175,1);
}
.door::after{
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,15,44,.45) 0%, rgba(6,15,44,.35) 40%, rgba(6,15,44,.85) 100%);
  transition: background .6s var(--ease);
}

.door.particuliers::before{
  background-image: url('../assets/atelier/atelier-96.webp');
}
.door.pros::before{
  background-image: url('../assets/oeuvres/carq-3.webp');
}

.door:hover::before{ transform: scale(1.04); }
.door:hover::after{
  background: linear-gradient(180deg, rgba(6,15,44,.25) 0%, rgba(6,15,44,.2) 40%, rgba(6,15,44,.7) 100%);
}

.door .door-inner{
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 48px 48px 28px;
  color: var(--creme);
}
.door.pros .door-inner{
  align-items: flex-end;
  text-align: right;
}
.door.pros .door-inner .door-rule,
.door.pros .door-inner .door-cta{
  align-self: flex-end;
}
.door .num{
  font-family: var(--font-caps); font-weight: 500;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--or);
  margin-bottom: 18px;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.door h2{
  font-family: var(--font-display);
  font-weight: 300; font-style: normal;
  font-size: clamp(43px, 5.1vw, 78px);
  line-height: .96; letter-spacing: -.012em;
  margin: 0 0 16px;
  color: var(--creme);
  text-shadow: 0 2px 30px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.4);
}
.door h2 em{ color: var(--or); }
.door .door-rule{
  display:block; width: 48px; height: 1px;
  background: var(--or); opacity: .85;
  margin: 6px 0 22px;
}
.door .pitch{
  font-family: var(--font-text);
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,.96);
  max-width: 36ch;
  margin: 0 0 24px;
  text-shadow: 0 1px 16px rgba(0,0,0,.55);
}
.door .pitch em{
  font-family: var(--font-display);
  font-style: normal; font-weight: 400;
  color: var(--creme);
}
.door .types{
  padding-top: 18px;
  border-top: 1px solid rgba(184,146,84,.5);
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-family: var(--font-text);
  font-size: 13px; line-height: 1.4;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.door .types .dot{
  display:inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--or); margin-right: 8px;
  vertical-align: middle;
}
.door .door-cta{
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 24px;
  font-family: var(--font-text);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--creme);
  align-self: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--or);
  transition: padding-right .35s var(--ease), border-color .35s var(--ease);
}
.door:hover .door-cta{ padding-right: 12px; border-color: var(--creme); }
.door-cta .arrow{ display: inline-block; width: 18px; height: 1px; background: var(--or); transition: width .35s var(--ease); }
.door:hover .door-cta .arrow{ width: 28px; }

/* ─────────────────────────────────────────
   DRAWER — slides in from right (same idiom as Œuvres)
   ───────────────────────────────────────── */
.audience-scrim{
  position: fixed; inset: 0;
  background: rgba(26, 26, 26, 0);
  backdrop-filter: blur(0px);
  z-index: 200;
  pointer-events: none;
  transition: background .5s cubic-bezier(.77, 0, .175, 1),
              backdrop-filter .5s cubic-bezier(.77, 0, .175, 1);
}
.audience-scrim.open{
  pointer-events: auto;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(4px);
}

.audience-drawer{
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 720px;
  max-width: 100vw;
  height: 100dvh;
  background: var(--creme);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.77, 0, .175, 1);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -20px rgba(0,0,0,.25);
  overflow: hidden;
}
.audience-drawer.open{ transform: translateX(0); }

@media (min-width: 1400px){ .audience-drawer{ width: 880px; } }
@media (min-width: 1700px){ .audience-drawer{ width: 1000px; } }

.audience-drawer .drawer-head{
  flex: 0 0 auto;
  position: relative;
  padding: 14px 32px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(184,146,84,.18);
  background: var(--creme);
  z-index: 2;
}
.audience-drawer .num{
  font-family: var(--font-caps); font-weight: 500;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--or);
}
.audience-drawer .num .cat{ color: var(--gris-l); margin-right: 8px; }

.audience-drawer .close{
  background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-text);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--noir);
  padding: 6px 0;
}
.audience-drawer .close .x{
  position: relative; width: 16px; height: 16px;
}
.audience-drawer .close .x::before, .audience-drawer .close .x::after{
  content: ""; position: absolute; top: 50%; left: 0;
  width: 16px; height: 1px; background: var(--noir);
  transition: background .25s var(--ease);
}
.audience-drawer .close .x::before{ transform: rotate(45deg); }
.audience-drawer .close .x::after{ transform: rotate(-45deg); }
.audience-drawer .close:hover{ color: var(--or); }
.audience-drawer .close:hover .x::before, .audience-drawer .close:hover .x::after{ background: var(--or); }

.audience-drawer .drawer-scroll{
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,146,84,.3) transparent;
}
.audience-drawer .drawer-scroll::-webkit-scrollbar{ width: 4px; }
.audience-drawer .drawer-scroll::-webkit-scrollbar-track{ background: transparent; }
.audience-drawer .drawer-scroll::-webkit-scrollbar-thumb{ background: rgba(184,146,84,.3); border-radius: 4px; }

.audience-drawer .hero-img{
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.audience-drawer .hero-img::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,44,.05) 0%, rgba(6,15,44,0) 35%, rgba(6,15,44,.4) 100%);
}

.audience-drawer .body{
  padding: 32px 36px 32px;
}
.audience-drawer .body h2{
  font-family: var(--font-display);
  font-weight: 300; font-style: normal;
  font-size: clamp(32px, 3.2vw, 41px);
  line-height: 1.0; letter-spacing: -.012em;
  color: var(--noir);
  margin: 0 0 18px;
  max-width: 28ch;
  text-wrap: balance;
}
.audience-drawer .body h2 em{ font-style: normal; color: var(--or); }

.audience-drawer .body .narrative{
  font-family: var(--font-text);
  font-size: 14px; line-height: 1.6;
  color: var(--gris);
  margin: 0 0 12px;
  max-width: 46ch;
}
.audience-drawer .body .narrative em{
  font-family: var(--font-display);
  font-style: normal; font-weight: 400;
  color: var(--noir-soft);
}

.audience-drawer .gold-rule{
  display: block; height: 1px;
  background: var(--or);
  width: 56px;
  margin: 22px 0 28px;
  opacity: .85;
}

.audience-drawer .audience-line{
  display: flex; align-items: center; gap: 14px;
  margin: 32px 0 22px;
  font-family: var(--font-caps); font-weight: 500;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gris-l);
}
.audience-drawer .audience-line .num-tag{ color: var(--or); }
.audience-drawer .audience-line .rule{
  flex: 1 1 auto; height: 1px; background: rgba(184,146,84,.3);
}

/* Steps shrunk inside drawer */
.audience-drawer .steps{
  display: grid; gap: 0;
}
.audience-drawer .step{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(184,146,84,.18);
}
.audience-drawer .step:first-child{ border-top: 0; padding-top: 4px; }
.audience-drawer .step .num-big{
  font-family: var(--font-display);
  font-weight: 300; font-style: normal;
  font-size: 26px; line-height: 1;
  color: var(--or);
  min-width: 42px;
}
.audience-drawer .step .body-step h3{
  font-family: var(--font-display);
  font-weight: 400; font-style: normal;
  font-size: 18px; line-height: 1.1; letter-spacing: -.005em;
  margin: 0 0 4px;
  color: var(--noir);
}
.audience-drawer .step .body-step p{
  font-family: var(--font-text);
  font-size: 13.5px; line-height: 1.5;
  color: var(--gris);
  margin: 0;
  max-width: none;
}

/* Contact block */
.audience-drawer .contact-block{
  display: flex; flex-direction: column;
  background: var(--creme-alt);
  border: 1px solid rgba(184,146,84,.25);
  margin-top: 18px;
}
.audience-drawer .contact-row{
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(184,146,84,.18);
  text-decoration: none;
  color: var(--noir);
  transition: background .3s var(--ease);
}
.audience-drawer .contact-row:last-child{ border-bottom: 0; }
.audience-drawer .contact-row:hover{ background: rgba(184,146,84,.07); }
.audience-drawer .contact-row .lbl{
  font-family: var(--font-caps); font-weight: 500;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gris-l);
  min-width: 84px;
}
.audience-drawer .contact-row .val{
  font-family: var(--font-display);
  font-style: normal; font-weight: 400;
  font-size: 19px; line-height: 1.2;
  color: var(--noir);
  letter-spacing: -.005em;
}
.audience-drawer .contact-row .arrow{
  font-family: var(--font-caps); font-weight: 500;
  font-size: 11px;
  color: var(--or);
}
.audience-drawer .contact-foot{
  margin-top: 18px;
  display: flex; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-caps); font-weight: 500;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gris-l);
}
.audience-drawer .contact-foot b{ color: var(--noir); font-weight: 500; }

/* Hide burger and lang switch in header while drawer is open */
body.commandes-drawer-open .site-header .burger-btn{
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}

/* ─────────────────────────────────────────
   Responsive
   ───────────────────────────────────────── */
@media (max-width: 1100px){
  .commandes-panel{ height: calc(100dvh - 240px); min-height: 480px; }
  .door .door-inner{ padding: 36px; }
}

@media (max-width: 900px){
  /* iPhone : les deux portes tiennent ensemble à l'écran, sans scroll */
  main.commandes-page{ padding-top: 96px; height: 100dvh; display: flex; flex-direction: column; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); }
  .commandes-title{ height: auto; margin-top: 0; padding: 10px 22px 12px; flex: 0 0 auto; }
  .commandes-title h1.display{ font-size: clamp(30px, 8.4vw, 45px); }
  .commandes-title .lede{ display: none; }
  .door h2{ font-size: clamp(28px, 7.4vw, 41px); }
  .commandes-panel{
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
  }
  .commandes-panel::before{ display: none; }
  .door{ min-height: 0; }
  .door .door-inner{ padding: 22px; }
  .door.pros .door-inner{ align-items: flex-start; text-align: left; }
  .door.pros .door-inner .door-rule,
  .door.pros .door-inner .door-cta{ align-self: flex-start; }

  .audience-drawer{ width: 100vw; }
  .audience-drawer .body{ padding: 26px 22px; }
  .audience-drawer .hero-img{ height: 220px; }
}
