/* Néo-Production — accueil
 * Classique et lisible : un sérif élégant pour les titres (Instrument Serif), un sans-sérif
 * très lisible pour le texte (Inter). Une seule page, un seul écran.
 */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/serif.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2190-2193, U+2212; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/serif-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/serif-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2190-2193, U+2212; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-ext.woff2) format('woff2-variations'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F7F4EE; --card: #FFFFFF; --ink: #1D1C1A; --ink-2: #4F4B45; --ink-3: #8A847A; --line: rgba(29, 28, 26, .12);
  --accent: #B5522B; --accent-soft: #F3E3D9;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(18px, 3.4vw, 56px); --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; color: var(--accent); }

.app { height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 27px; line-height: 1; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-mail { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.top-mail:hover { color: var(--ink); text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .15s; }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); }
.icon-btn { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 18px; line-height: 1; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--ink); }

/* Scène */
.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 72px); min-height: 0; padding: clamp(8px, 2vh, 24px) var(--pad) clamp(14px, 2.4vh, 28px); }
.intro { display: flex; flex-direction: column; min-height: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(8px, 1.6vh, 16px); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--ink-3); }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, min(4.6vw, 7.4vh), 78px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.intro-text { margin: clamp(10px, 2vh, 20px) 0 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(14.5px, 1.9vh, 16.5px); }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(14px, 3vh, 34px); padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.filters { display: flex; gap: 4px; }
.filters button { border: 0; background: none; padding: 4px 9px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 550; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.list li { flex: 1 1 0; min-height: 0; max-height: 64px; display: flex; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.item { flex: 1; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; padding: 0 4px;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; transition: background .25s, padding .35s var(--ease); }
.item-no { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.item-name { font-family: var(--serif); font-size: clamp(19px, 2.7vh, 26px); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.item-cat { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.item-arrow { color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); }
.item:hover .item-name { color: var(--accent); }
.item.is-on { padding-left: 14px; background: linear-gradient(90deg, var(--accent-soft), transparent 85%); }
.item.is-on .item-name { font-style: italic; color: var(--accent); }
.item.is-on .item-no { color: var(--accent); }
.item.is-on .item-arrow { opacity: 1; transform: none; }

/* Fiche du projet */
.card { position: relative; min-height: 0; display: flex; flex-direction: column; border-radius: 28px; background: var(--card); box-shadow: 0 1px 0 rgba(29, 28, 26, .04), 0 30px 60px -36px rgba(29, 28, 26, .35); border: 1px solid var(--line); overflow: hidden; }
.card-inner { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 3.6vh, 44px) clamp(22px, 3vw, 48px); display: flex; flex-direction: column; gap: clamp(12px, 2vh, 22px);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.is-in > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.watermark { position: absolute; top: clamp(-18px, -1vh, -6px); right: clamp(14px, 2.4vw, 36px); margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(110px, 20vh, 200px); line-height: 1; color: var(--accent-soft); pointer-events: none; user-select: none; }
.c-meta { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 550; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.chip-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--ink-3)); }
.c-title { position: relative; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, min(4vw, 6.6vh), 64px); line-height: 1; letter-spacing: -.015em; }
.c-pitch { position: relative; margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.6vh, 24px); line-height: 1.3; color: var(--ink-2); max-width: 36ch; }
.c-rule { height: 1px; background: var(--line); border: 0; margin: 0; flex: none; }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(16px, 2.6vw, 40px); }
.c-block h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.c-block p { margin: 0; color: var(--ink-2); font-size: clamp(14.5px, 1.85vh, 16px); }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.c-list li { position: relative; padding-left: 22px; font-size: clamp(14.5px, 1.85vh, 16px); color: var(--ink); line-height: 1.5; }
.c-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.c-tools { margin: 0; font-size: 14px; color: var(--ink-2); word-spacing: .15em; }
.c-nav { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 4px; }
.c-nav .c-block { min-width: 0; }
.c-arrows { flex: none; }
.c-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.c-arrows { display: flex; gap: 8px; }

/* Pied */
.bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.bottom p { margin: 0; white-space: nowrap; }
.legal { display: flex; gap: 18px; white-space: nowrap; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; }

/* Fenêtres : fiche (téléphone) et contact */
.sheet, .contact { position: fixed; inset: 0; z-index: 50; display: grid; background: rgba(29, 28, 26, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { place-items: end stretch; }
.sheet-card { display: flex; flex-direction: column; max-height: 92svh; border-radius: 26px 26px 0 0; background: var(--card); overflow: hidden; animation: up .45s var(--ease); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-count { flex: 1; text-align: center; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sheet-close { margin-left: 8px; }
.sheet-body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px calc(env(safe-area-inset-bottom, 0px) + 28px); display: flex; flex-direction: column; gap: 16px; }
.sheet-body .watermark { top: 0; right: 16px; font-size: 120px; }
.sheet-body .c-grid { grid-template-columns: 1fr; gap: 18px; }
.sheet-body .c-nav { display: none; }

.contact { place-items: center; padding: 16px; }
.contact-card { position: relative; width: min(620px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 4vh, 40px); border-radius: 26px; background: var(--card); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .5); animation: up .45s var(--ease); }
.contact-close { position: absolute; top: 16px; right: 16px; }
.contact h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 48px); line-height: 1.02; }
.contact-sub { margin: 10px 0 22px; color: var(--ink-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld-wide { grid-column: 1 / -1; }
.fld label { font-size: 14px; font-weight: 550; }
.opt { font-weight: 400; color: var(--ink-3); }
.fld input, .fld textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld.is-bad input, .fld.is-bad textarea { border-color: #C0392B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.send { height: 50px; padding: 0 26px; }
.send[disabled] { opacity: .6; cursor: progress; }
.legal-note { flex: 1; min-width: 220px; margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.out { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: 14.5px; }
.out .ok { color: #23764A; font-weight: 600; } .out .err { color: #B03021; font-weight: 600; }
.nojs { position: fixed; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; }

/* Écrans moyens : la fiche passe en une colonne */
@media (max-width: 1180px) { .card .c-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 1100px) { .top-mail { display: none; } }

/* Téléphone et tablette en portrait : la liste prend l'écran, la fiche s'ouvre par-dessus */
@media (max-width: 860px) {
  .top { height: 62px; }
  .brand { font-size: 23px; }
  .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
  .card { display: none; }
  h1 { font-size: clamp(30px, min(9vw, 6.2vh), 52px); }
  .intro-text { font-size: 14.5px; }
  .list li { max-height: 60px; }
  .item { grid-template-columns: 28px minmax(0, 1fr) auto 16px; }
  .item.is-on { padding-left: 4px; background: none; }
  .item.is-on .item-name { font-style: normal; color: var(--ink); }
  .item.is-on .item-no { color: var(--ink-3); }
  .item-arrow, .item.is-on .item-arrow { opacity: .55; transform: none; color: var(--ink-3); }
  .item:active { background: var(--accent-soft); }
  .item-name { font-size: clamp(18px, 2.7vh, 23px); }
  .bottom { height: 42px; font-size: 12px; }
  .form { grid-template-columns: 1fr; }
  .contact { place-items: end stretch; padding: 0; }
  .contact-card { width: 100%; border-radius: 26px 26px 0 0; max-height: 94svh; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
}
@media (max-width: 420px) {
  .filters button { padding: 4px 7px; }
  .list-head > span:first-child { display: none; }
  .list-head { justify-content: flex-start; }
}
@media (max-width: 360px) { .btn-ink:not(.send) { padding: 0 12px; font-size: 13px; } .brand { font-size: 21px; } .legal a:first-child { display: none; } }
@media (max-height: 640px) and (max-width: 860px) { .intro-text { display: none; } }
@media (max-height: 940px) and (min-width: 861px) {
  .top { height: 66px; }
  .card-inner { padding: 22px 30px; gap: 12px; }
  .c-title { font-size: clamp(32px, 5.6vh, 48px); }
  .c-pitch { font-size: 18px; }
  .c-block p, .c-list li { font-size: 14.5px; line-height: 1.45; }
  .c-list { gap: 6px; }
  .watermark { font-size: 120px; }
}
@media (max-height: 780px) and (min-width: 861px) {
  .stage { padding-bottom: 14px; }
  .card-inner { padding: 18px 26px; gap: 10px; }
  .c-rule { display: none; }
  .c-pitch { font-size: 17px; }
}
@media (max-height: 700px) and (min-width: 861px) { .intro-text { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
