/* Base commune (équivalent de la page de prévisualisation) */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: en-tête fixe, bandeau chocolat (portrait à gauche, identité à droite), puis bandes ivoire/sable : à propos, expertises en cartes, créations 9:16 filtrables, services, contact avec formulaire. */
:root {
  --sable: #E8D9C8;
  --ivoire: #F7F3ED;
  --chocolat: #49352B;
  --taupe: #9C8878;
  --noir: #25211E;
  --encre: #6B5A4F;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --texte: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivoire); color: var(--noir);
  font-family: var(--texte); font-size: 15px; line-height: 1.7; font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ivoire); z-index: 60; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--encre); }
h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 6.2vw, 3.2rem);
  line-height: 1.08; margin: 10px 0 0; letter-spacing: -.005em; text-wrap: balance; text-transform: uppercase;
}
h2 em { font-weight: 400; text-transform: none; color: var(--chocolat); }
.band { padding-block: clamp(56px, 10vw, 104px); background: var(--ivoire); scroll-margin-top: 64px; }
.band.alt { background: var(--sable); }
.band[hidden] { display: none; }
.intro { max-width: 38em; margin: 18px 0 0; color: var(--encre); }

.reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.pre { opacity: .35; transform: translateY(18px); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* EN-TÊTE ET MENU */
.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247,243,237,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sable);
}
.site .in {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.brand { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--chocolat); white-space: nowrap; }
.menu { display: none; gap: 28px; align-items: center; }
.menu a { text-decoration: none; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--encre); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a.act { color: var(--chocolat); border-color: var(--taupe); }
.menu a.cta-mini { color: var(--ivoire); background: var(--chocolat); padding: 10px 18px; border: 0; }
.menu a.cta-mini:hover { background: var(--noir); }
.burger { width: 44px; height: 44px; border: 1px solid var(--taupe); background: transparent; color: var(--chocolat); cursor: pointer; display: grid; place-content: center; gap: 5px; }
.burger i { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.panel { display: none; border-top: 1px solid var(--sable); background: var(--ivoire); }
.panel.on { display: block; }
.panel a { display: block; padding: 16px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); text-decoration: none; border-bottom: 1px solid var(--sable); font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--chocolat); }
.panel a:last-child { border-bottom: 0; }

/* HERO : bandeau chocolat. Portrait vertical arrondi à gauche, identité à droite. */
.hero { background: radial-gradient(110% 120% at 100% 0%, rgba(156,136,120,.32) 0%, rgba(156,136,120,0) 55%), var(--chocolat); color: var(--ivoire); scroll-margin-top: 0; }
.bandeau {
  display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); grid-template-areas: "portrait id" "more more";
  column-gap: clamp(18px, 5vw, 72px); row-gap: 28px; align-items: center; padding-block: 28px 40px;
}
.portrait-wrap { grid-area: portrait; width: 100%; max-width: 340px; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.portrait { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #5f4a3f, #35271f); }
.portrait img, .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.identite { grid-area: id; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.identite > *, .hero-more > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.identite > :nth-child(2) { animation-delay: .06s; } .identite > :nth-child(3) { animation-delay: .12s; }
.identite > :nth-child(4) { animation-delay: .18s; } .identite > :nth-child(5) { animation-delay: .24s; }
.hero-more { grid-area: more; min-width: 0; }
.hero-more > :nth-child(1) { animation-delay: .3s; } .hero-more > :nth-child(2) { animation-delay: .36s; } .hero-more > :nth-child(3) { animation-delay: .42s; }
.nom { font-family: var(--display); font-weight: 500; text-transform: uppercase; margin: 0; font-size: clamp(1.3rem, 6.1vw, 4.6rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.studio { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 5.4vw, 3.2rem); line-height: 1.1; margin-top: 6px; color: var(--sable); }
.deco { display: block; width: 100%; height: 1px; margin: clamp(12px, 3vw, 24px) 0; border: 0; background: rgba(247,243,237,.4); }
.role { margin: 0; font-size: clamp(9.5px, 2.5vw, 13px); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; line-height: 1.5; }
.signature { margin: 8px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 3.6vw, 1.5rem); color: var(--sable); line-height: 1.2; }
.accroche { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 4.8vw, 2.1rem); line-height: 1.2; max-width: 26em; }
.soustitre { margin: 14px 0 0; max-width: 34em; font-size: clamp(13px, 3.3vw, 15px); color: rgba(247,243,237,.85); }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; text-align: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  background: var(--sable); color: var(--noir); border: 1px solid var(--sable); padding: 15px 24px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ivoire); border-color: var(--ivoire); }
.btn.line { background: transparent; color: var(--ivoire); border-color: rgba(232,217,200,.7); }
.btn.line:hover { background: var(--sable); color: var(--noir); }
.btn.dark { background: var(--chocolat); color: var(--ivoire); border-color: var(--chocolat); }
.btn.dark:hover { background: var(--noir); border-color: var(--noir); }
.hero-actions .btn { flex: 1 1 200px; }
.socials { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.socials a.ic { width: 42px; height: 42px; border-radius: 50%; background: var(--ivoire); color: var(--chocolat); display: grid; place-items: center; text-decoration: none; transition: background .2s, transform .2s; }
.socials a.ic:hover { background: var(--sable); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.handle { font-size: 13px; letter-spacing: .06em; opacity: .85; margin-left: 4px; }
.ph { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; padding: 8px; color: var(--sable); border: 1px dashed rgba(232,217,200,.5); margin: 6px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.ph b { font-family: var(--display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ivoire); }

/* À PROPOS */
.about { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.about-photo-wrap { position: relative; width: 100%; max-width: 420px; margin-right: 18px; justify-self: center; }
.about-photo-wrap::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--taupe); z-index: 0; }
.about-photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; background: var(--sable); overflow: hidden; border-radius: 10px; }
.about-photo img { object-position: center 30%; }
.about-text { min-width: 0; }
.about-text p { margin: 18px 0 0; max-width: 34em; }
.about-text p.accent { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; color: var(--chocolat); font-weight: 500; font-style: italic; }

/* EXPERTISES */
.cartes { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 14px; padding-bottom: 28px; }
.carte { display: block; text-decoration: none; color: var(--noir); }
.carte:nth-child(even) { margin-top: 32px; }
.c-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; border-radius: 10px; background: linear-gradient(160deg, #F7F3ED, #E0CFBB); --ph-fg: var(--chocolat); box-shadow: 0 24px 40px -30px rgba(73,53,43,.55); transition: box-shadow .5s, transform .5s cubic-bezier(.2,.7,.2,1); }
.carte:nth-child(2) .c-photo { background: linear-gradient(160deg, #E8D9C8, #B9A38C); }
.carte:nth-child(3) .c-photo { background: linear-gradient(160deg, #8a7160, #49352B); --ph-fg: var(--ivoire); }
.carte:nth-child(4) .c-photo { background: linear-gradient(160deg, #F1E8DC, #CDB89C); }
.carte:hover .c-photo { transform: translateY(-6px); box-shadow: 0 34px 46px -30px rgba(73,53,43,.65); }
.c-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.carte:hover .c-photo img { transform: scale(1.05); }
.c-ph { position: absolute; inset: 12px; border: 1px solid var(--ph-fg); opacity: .5; display: grid; place-items: end start; padding: 12px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ph-fg); }
.c-meta { padding-top: 16px; display: grid; gap: 7px; }
.c-meta b { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.05; color: var(--chocolat); text-transform: uppercase; }
.c-meta span { font-size: 13px; line-height: 1.6; color: var(--encre); }
.c-meta small { font-size: 11px; letter-spacing: .05em; color: var(--encre); line-height: 1.4; }
.c-meta em { font-style: normal; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--chocolat); margin-top: 4px; justify-self: start; padding-bottom: 3px; background: linear-gradient(var(--taupe), var(--taupe)) left bottom / 100% 1px no-repeat; transition: background-size .4s; }
.carte:hover .c-meta em { background-size: 40% 1px; }
@keyframes riseCard { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.cartes.in .carte { animation: riseCard .9s cubic-bezier(.2,.7,.2,1) both; }
.cartes.in .carte:nth-child(2) { animation-delay: .1s; } .cartes.in .carte:nth-child(3) { animation-delay: .2s; } .cartes.in .carte:nth-child(4) { animation-delay: .3s; }

/* CRÉATIONS */
.demo-note { margin: 22px 0 0; max-width: 42em; padding: 14px 18px; border: 1px solid var(--taupe); border-radius: 10px; background: rgba(255,255,255,.4); font-size: 13.5px; color: var(--encre); }
.demo-note b { font-weight: 600; color: var(--chocolat); }
.filtres { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--taupe); background: transparent; color: var(--chocolat); cursor: pointer; padding: 10px 16px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; transition: background .2s, color .2s; }
.chip:hover { background: rgba(156,136,120,.2); }
.chip[aria-pressed="true"] { background: var(--chocolat); color: var(--ivoire); border-color: var(--chocolat); }
.grille { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer; background: linear-gradient(170deg, #5f4a3f, #2b201b); color: var(--sable); text-align: left; border-radius: 6px; }
.tile.photo { aspect-ratio: 4 / 5; }
.tile[disabled] { cursor: default; }
.tile video, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:not([disabled]):hover video, .tile:not([disabled]):hover img { transform: scale(1.04); }
.vplay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 14px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.vplay svg { width: 50px; height: 50px; }
.tile.ok .vplay { background: rgba(37,33,30,.16); }
.tile.ok .vplay svg { color: var(--ivoire); }
.tile.slot { background: transparent; border: 1px dashed var(--taupe); color: var(--encre); }
.tile.slot .vplay svg { color: var(--taupe); }
.item { min-width: 0; }
.item[hidden] { display: none; }
.cap { padding-top: 12px; display: grid; gap: 4px; justify-items: start; }
.cap b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.1; color: var(--chocolat); }
.cap .sub { font-size: 12px; color: var(--encre); line-height: 1.5; }
.tag { margin-top: 4px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--taupe); color: var(--chocolat); padding: 4px 9px; line-height: 1.3; }
.vide { margin: 28px 0 0; color: var(--encre); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(37,33,30,.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none; }
.lb-stage { display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.lb-stage video { display: block; background: #000; max-width: 100%; max-height: 80vh; max-height: 80dvh; aspect-ratio: 9 / 16; width: auto; }
.lb-stage img { display: block; max-width: 100%; max-height: 80vh; max-height: 80dvh; width: auto; height: auto; border-radius: 6px; }
.lb-stage [hidden] { display: none; }
.lb-title { margin: 0; color: var(--ivoire); font-family: var(--display); font-size: 1.4rem; text-align: center; }
.lb-hint { margin: -6px 0 0; color: var(--sable); font-size: 11px; letter-spacing: .08em; text-align: center; }
.lb-close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sable); background: transparent; color: var(--ivoire); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: var(--sable); color: var(--noir); }

/* SERVICES */
.services { margin-top: 40px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--taupe); }
.service { padding: 22px 0; border-bottom: 1px solid var(--taupe); display: grid; gap: 4px; }
.service h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; color: var(--chocolat); }
.service p { margin: 0; font-size: 13.5px; color: var(--encre); max-width: 36em; }

/* CONTACT */
.contact { background: var(--chocolat); color: var(--ivoire); }
.contact .label { color: var(--sable); }
.contact h2 em { color: var(--sable); }
.contact .intro { color: rgba(247,243,237,.82); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
.coords { display: grid; gap: 14px; margin-top: 28px; }
.mail { display: inline-block; font-size: clamp(1rem, 4.4vw, 1.2rem); letter-spacing: .03em; border-bottom: 1px solid var(--taupe); padding-bottom: 4px; overflow-wrap: anywhere; user-select: all; justify-self: start; }
.coords-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.coords-actions .btn { padding: 14px 22px; }
.mail { text-decoration: none; }
.mail:hover { border-color: var(--sable); }
.copy { justify-self: start; background: transparent; color: var(--sable); border: 1px solid rgba(232,217,200,.55); padding: 10px 16px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; cursor: pointer; }
.copy:hover { background: var(--sable); color: var(--noir); }
.form { display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--sable); }
.field input, .field textarea { width: 100%; background: rgba(247,243,237,.08); color: var(--ivoire); border: 1px solid rgba(232,217,200,.4); border-radius: 0; padding: 14px; font-size: 16px; font-weight: 300; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(247,243,237,.45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sable); background: rgba(247,243,237,.12); }
.field .err { font-size: 12px; color: #F2C9B8; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: stretch; padding: 17px 24px; }
.form-msg { font-size: 14px; color: var(--ivoire); line-height: 1.6; }
.form-msg[hidden] { display: none; }
.form-msg .row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.form-msg textarea { width: 100%; margin-top: 10px; min-height: 120px; background: rgba(247,243,237,.08); color: var(--ivoire); border: 1px solid rgba(232,217,200,.4); padding: 12px; font-size: 14px; }
footer { background: var(--noir); color: var(--sable); padding-block: 28px; font-size: 12px; letter-spacing: .08em; }
footer p { margin: 0; }
footer p + p { margin-top: 6px; opacity: .7; }

@media (min-width: 640px) {
  .grille { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 760px) {
  body { font-size: 16px; }
  .cartes { grid-template-columns: repeat(4, 1fr); gap: 40px 20px; padding-bottom: 20px; }
  .carte:nth-child(even) { margin-top: 56px; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}
@media (min-width: 900px) {
  .menu { display: flex; }
  .burger, .panel { display: none !important; }
  .bandeau { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-areas: "portrait id" "portrait more"; column-gap: 96px; row-gap: 0; padding-block: 72px; align-content: center; }
  .identite { align-self: end; }
  .hero-more { align-self: start; margin-top: 30px; }
  .about { grid-template-columns: 5fr 6fr; gap: 88px; }
  .about-photo-wrap { justify-self: start; }
  .grille { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 88px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}
