/* =========================================================
   FENORA — Studio de développement web
   Direction : éditorial, fait main — papier / encre
   ========================================================= */

:root {
  --paper: #f4f0e7;
  --paper-2: #ece7da;
  --ink: #16140f;
  --text: #2a2820;
  --text-dim: #6a6557;
  --text-faint: #9a9484;
  --line: rgba(22, 20, 15, 0.16);
  --line-soft: rgba(22, 20, 15, 0.09);
  --accent: #d2401d;
  --accent-ink: #a02f13;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--paper); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: clamp(60px, 8vw, 104px) 0; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 600; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }
.lead { font-family: var(--sans); color: var(--text-dim); font-size: clamp(1.08rem, 1.5vw, 1.3rem); max-width: 52ch; line-height: 1.6; }

/* labels mono numérotés */
.label { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-top: 18px; max-width: 18ch; }
.section-head .lead { margin-top: 18px; }

/* trait de soulignement "fait main" */
.hand-underline { position: relative; white-space: nowrap; color: var(--accent); }
.hand-underline svg { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .3em; color: var(--accent); overflow: visible; }
.hand-underline svg path { stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1; }
.hand-underline.drawn svg path { animation: draw 1s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; color: var(--ink); }
.brand sup { color: var(--accent); font-size: .7em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .98rem; font-weight: 500; color: var(--text-dim); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

/* ---------- Links & buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; font-weight: 600; font-size: .98rem; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn-primary { background: var(--ink); color: var(--paper); border-radius: 2px; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { color: var(--ink); border-bottom: 2px solid var(--ink); padding: 4px 2px; }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn svg { width: 17px; height: 17px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 3px; transition: color .2s; }
.arrow-link:hover { color: var(--accent); }
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(50px, 8vw, 92px) 0 clamp(56px, 8vw, 92px); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: end; }
.hero .label { margin-bottom: 28px; }
.hero h1 { margin-bottom: 30px; }
.hero .lead { margin-bottom: 38px; }
.hero-cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

/* index éditorial à droite du hero */
.hero-index { border-top: 1px solid var(--ink); }
.hero-index a { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .25s var(--ease), color .25s; }
.hero-index a:hover { padding-left: 12px; color: var(--accent); }
.hero-index .ix-n { font-family: var(--mono); font-size: .8rem; color: var(--text-faint); }
.hero-index .ix-t { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); flex: 1; }
.hero-index a:hover .ix-t { color: var(--accent); }
.hero-index .ix-ar { color: var(--text-faint); transition: transform .25s; }
.hero-index a:hover .ix-ar { transform: translate(3px,-3px); color: var(--accent); }

/* ---------- Liste services éditoriale ---------- */
.list { border-top: 1px solid var(--ink); }
.list-item { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(26px, 4vw, 42px) 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.list-item .li-n { font-family: var(--mono); font-size: .82rem; color: var(--accent); }
.list-item .li-main h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 8px; }
.list-item .li-main p { color: var(--text-dim); max-width: 56ch; }
.list-item .li-tags { font-family: var(--mono); font-size: .78rem; color: var(--text-faint); text-align: right; line-height: 1.9; }
.list-item:hover .li-main h3 { color: var(--accent); }

/* ---------- Bandeau citation ---------- */
.quote { padding: clamp(64px, 9vw, 120px) 0; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); max-width: 20ch; }
.quote blockquote em { font-style: italic; color: var(--accent); }
.quote .cite { font-family: var(--mono); font-size: .82rem; color: var(--text-faint); margin-top: 28px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--paper); padding: 30px 26px; }
.step .n { font-family: var(--mono); font-size: .82rem; color: var(--accent); }
.step h3 { font-size: 1.35rem; margin: 16px 0 10px; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ---------- Generic cards (autres pages) ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); background: none; border: none; gap: 48px; }
.card { background: var(--paper); padding: 36px 30px; }
.card .ico { color: var(--accent); margin-bottom: 22px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: .97rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--ink); }
.plan { display: flex; flex-direction: column; background: var(--paper); padding: 36px 32px; }
.plan.featured { background: var(--ink); color: var(--paper); }
.plan.featured h3, .plan.featured .price { color: var(--paper); }
.plan.featured .desc, .plan.featured li { color: rgba(244,240,231,.7); }
.plan .badge { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 18px; }
.plan h3 { font-size: 1.7rem; margin-bottom: 8px; }
.plan .desc { color: var(--text-dim); font-size: .95rem; min-height: 44px; margin-bottom: 22px; }
.plan .price { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.plan .price-note { font-family: var(--mono); color: var(--text-faint); font-size: .8rem; margin: 6px 0 26px; }
.plan ul { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-dim); font-size: .94rem; }
.plan li::before { content: "—"; color: var(--accent); }
.plan.featured li::before { color: var(--accent); }
.plan .btn { width: 100%; justify-content: center; }
.plan.featured .btn-primary { background: var(--accent); }
.plan.featured .btn-primary:hover { background: var(--paper); color: var(--ink); }

/* ---------- CTA ---------- */
.cta-box { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: clamp(56px, 9vw, 110px) 0; text-align: center; }
.cta-box h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 24px; }
.cta-box p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 36px; font-size: 1.12rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); display: block; margin-bottom: 9px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 0; border: none; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-family: inherit; font-size: 1.05rem; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.info-row { display: flex; gap: 16px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: none; padding-top: 0; }
.info-row .lab { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; color: var(--accent); width: 110px; flex-shrink: 0; }
.info-row p { color: var(--ink); font-size: 1.02rem; }
.ph { color: var(--text-faint); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 60px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 56px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: .95rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--mono); color: var(--text-faint); font-size: .8rem; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .list-item { grid-template-columns: auto 1fr; }
  .list-item .li-tags { display: none; }
  .footer-top { flex-direction: column; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 12px 28px; transform: translateY(-130%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); }
  .nav-toggle svg { width: 20px; height: 20px; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hand-underline svg path { stroke-dashoffset: 0; }
}
