/* JC Project — Communication éditoriale
   Planche de marque : encre #1A1A1A, papier #F4F1EC, filet #DCD6CC, gris #6B6660.
   Accent bleu encre #1F3A5F réservé aux liens et au focus. Polices auto-hébergées. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #1A1A1A;
  --paper: #F4F1EC;
  --paper-2: #EFEBE4;
  --white: #FFFFFF;
  --text: #3A3A3A;
  --muted: #6B6660;
  --rule: #DCD6CC;
  --accent: #1F3A5F;
  --on-ink: #F4F1EC;
  --on-ink-soft: #BDB7AD;
  --rule-ink: #3A3A3A;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wide: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 400; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -0.018em; font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; font-weight: 300; }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 38rem; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
strong { font-weight: 600; color: var(--ink); }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ink :focus-visible { outline-color: var(--on-ink); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* En-tête */
.site-header { background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.logo { color: var(--ink); display: inline-block; }
.logo svg { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 1px solid transparent; }
.nav .btn { color: var(--paper); padding: .55rem 1rem; border-bottom: 1px solid var(--ink); }
.nav ul a:hover, .nav ul a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Boutons */
.btn { display: inline-block; padding: .9rem 1.45rem; font: 500 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 0; cursor: pointer; }
.btn:hover { background: #000; text-decoration: none; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--white); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ink .btn:hover { background: var(--white); }
.ink .btn-line { background: transparent; color: var(--paper); border-color: var(--paper); }
.ink .btn-line:hover { background: #262626; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Blocs encre (version négative de la charte) */
.ink { background: var(--ink); color: var(--on-ink-soft); }
.ink h1, .ink h2, .ink h3, .ink .lede, .ink strong { color: var(--on-ink); }
.ink a { color: var(--on-ink); }

/* Accueil — ouverture */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 1px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-shot { margin: clamp(3rem, 6vw, 4.5rem) 0 0; position: relative; z-index: 1; }
.frame { border: 1px solid var(--ink); background: var(--white); }
.ink .frame { border-color: var(--on-ink); }
.frame-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border-bottom: 1px solid var(--ink); font-size: .8rem; color: var(--muted); background: var(--paper); }
.frame img { width: 100%; }
.hero-shot { margin-bottom: -9rem; }
.after-hero { padding-top: 11rem; }
.shot-note { font-size: .88rem; color: var(--muted); margin-top: .8rem; max-width: none; }

/* Pour qui */
.sectors { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.sectors li { list-style: none; flex: 1 1 10rem; padding: 1.2rem 1.2rem 1.2rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--ink); font-weight: 300; }
.sectors { padding: 0; margin: 0; }
.sectors li + li { padding-left: 1.2rem; border-left: 1px solid var(--rule); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.ink.section + .section, .section + .ink.section { border-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head p { margin: 0; }

/* Démo de l'outil */
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--gutter); align-items: start; }
.demo-grid figure { margin: 0; }
.demo-grid figcaption, .figure-cap { margin-top: .9rem; font-size: .95rem; }
.demo-grid figcaption strong, .figure-cap strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: .15rem; }
.demo-side > * + * { margin-top: 2.5rem; }
.embed { border: 1px solid var(--ink); background: var(--white); }
.embed iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; }

/* Lecture des indicateurs */
.reading { width: 100%; border-collapse: collapse; }
.reading th, .reading td { text-align: left; vertical-align: top; padding: 1.1rem 1.5rem 1.1rem 0; border-top: 1px solid var(--rule-ink); }
.reading tr:last-child > * { border-bottom: 1px solid var(--rule-ink); }
.reading th { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; color: var(--on-ink); width: 30%; }

/* Méthode */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { counter-increment: s; padding: 1.4rem 1.2rem 0 0; }
.steps li + li { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-weight: 300; font-size: 3.2rem; line-height: 1; color: var(--ink); margin-bottom: 1.2rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.steps p { font-size: .97rem; margin: 0; }

/* Prestations — catalogue */
.catalog { border-top: 1px solid var(--ink); }
.item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .8fr); gap: var(--gutter); padding: 2rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.item h3 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); font-weight: 300; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.item p { margin: 0; }
.item .for { font-size: .92rem; color: var(--muted); margin-top: .5rem; }
.item .price { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-align: right; }

/* Engagements — grille 2×2 comme le monogramme */
.quad { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--on-ink); }
.quad > div { padding: clamp(1.6rem, 3.5vw, 2.8rem); }
.quad > div:nth-child(1) { border-right: 1px solid var(--on-ink); border-bottom: 1px solid var(--on-ink); }
.quad > div:nth-child(2) { border-bottom: 1px solid var(--on-ink); }
.quad > div:nth-child(3) { border-right: 1px solid var(--on-ink); }
.quad h3 { font-weight: 300; font-size: 1.6rem; margin-bottom: .6rem; }
.quad p { margin: 0; }

/* Appel final */
.closing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--gutter); align-items: center; }
.closing .mono { color: var(--ink); width: clamp(88px, 11vw, 150px); }
.closing h2 { max-width: 18ch; }
.closing p { margin: .8rem 0 0; }

/* Pages intérieures */
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 14ch; }
.page-head .lede { margin-top: 1.5rem; }

.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--gutter); padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--ink); scroll-margin-top: 1rem; }
.service h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.service .price { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-top: 1.4rem; }
.service figure { margin: 2rem 0 0; }
.facts { margin: 0; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); border-top: 1px solid var(--rule); }
.facts dt, .facts dd { margin: 0; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 500; color: var(--ink); padding-right: 1rem; }
.facts ul { margin: 0; padding-left: 1.1rem; }
.facts li { margin: .15rem 0; }

.steps-long { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.steps-long li { display: grid; grid-template-columns: 6rem minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); counter-increment: s; }
.steps-long li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--ink); }
.steps-long h3 { font-size: 1.45rem; font-weight: 300; }
.steps-long p { margin: 0; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 3rem; }
.shots figure { margin: 0; }
.shots .frame { aspect-ratio: 4 / 3; overflow: hidden; }
.shots .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 54rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.4rem 3rem 1.4rem 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.25rem; font: 400 1.5rem var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.5rem; }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: calc(var(--gutter) * 1.5); }
.field { margin-bottom: 1.4rem; }
label { display: block; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.hint { display: block; font-size: .88rem; margin-top: .35rem; color: var(--muted); }
input[type="text"], input[type="email"], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 0; padding: .8rem .9rem; }
textarea { min-height: 10rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { display: none; }
.contact-card { border: 1.5px solid var(--ink); }
.contact-card > div { padding: 1.4rem 1.6rem; }
.contact-card > div + div { border-top: 1px solid var(--ink); }
.contact-card p { margin: 0; }
.contact-card .label { font-size: .88rem; color: var(--muted); margin-bottom: .25rem; }
.contact-card .value { font-family: var(--serif); font-size: 1.35rem; }
.contact-card .value a { color: var(--ink); }

/* Pages légales */
.legal { max-width: 46rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.legal h2 { font-size: 1.7rem; margin: 2.6rem 0 .9rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.legal h2:first-child { margin-top: 0; border-top-color: var(--ink); }
.legal ul { padding-left: 1.2rem; max-width: 38rem; }
.legal li { margin: .35rem 0; }
.todo { border: 1px dashed var(--accent); color: var(--accent); background: var(--white); padding: 0 .3em; }

/* Pied de page */
.site-footer { padding: 3.5rem 0 3rem; font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); }
.site-footer .logo { color: var(--on-ink); }
.site-footer .logo svg { height: 52px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: var(--on-ink); }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--rule-ink); padding-top: 1.4rem; margin: 1rem 0 0; font-size: .85rem; max-width: none; }

/* Adaptation */
@media (max-width: 60rem) {
  .hero-grid, .head, .demo-grid, .service, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 1rem; padding: 1.3rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .steps li::before { grid-row: span 2; font-size: 2.4rem; margin: 0; }
  .item { grid-template-columns: 1fr; gap: .8rem; }
  .item .price { text-align: left; }
  .shots { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero-shot { margin-bottom: -5rem; }
  .after-hero { padding-top: 7rem; }
}
@media (max-width: 44rem) {
  .quad { grid-template-columns: 1fr; }
  .quad > div:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--on-ink); }
  .quad > div:last-child { border-bottom: 0; }
  .sectors li, .sectors li + li { flex-basis: 100%; padding: .9rem 0; border-left: 0; border-top: 1px solid var(--rule); }
  .sectors li:first-child { border-top: 0; }
  .steps-long li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .steps-long li > p { grid-column: 2; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .reading, .reading tbody, .reading tr, .reading th, .reading td { display: block; width: auto; }
  .reading td { border-top: 0; padding-top: 0; }
  .reading tr:last-child th { border-bottom: 0; }
  .frame-bar span + span { display: none; }
  .logo svg { height: 38px; }
  .nav .btn-sm { display: none; }
}
@media print { .nav, .skip, .actions { display: none; } body { background: #fff; } }
.shots .frame-bar span + span { display: none; }

/* Démo : intégrée sur grand écran, ouverte en plein écran sur téléphone et tablette */
.mobile-only { display: none; }
.demo-mobile { border: 1.5px solid var(--ink); background: var(--white); padding: 1.6rem; }
.demo-mobile p { margin: 0; }
@media (max-width: 60rem) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}
