/* ═══════════════════════════════════════════════════════
   NELVITECH — studio éditorial : encre, ivoire, cuivre
   Sobriété luxueuse, typographie serif, filets fins
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: "serif-secours";
  src: local("Georgia");
  size-adjust: 93%;
  ascent-override: 96%;
}

:root {
  --ivoire: #F5F2EB;
  --sable: #EDE8DD;
  --encre: #181512;
  --encre-2: #211D19;
  --encre-douce: #5C544A;
  --cuivre: #8F4E20;
  --cuivre-clair: #D89A62;
  --filet: rgba(24, 21, 18, 0.16);
  --filet-clair: rgba(245, 242, 235, 0.2);
  --serif: "Instrument Serif", "serif-secours", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivoire);
  color: var(--encre);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.conteneur { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.conteneur-etroit { max-width: 800px; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-encre { background: var(--encre); color: var(--ivoire); }
.section-sable { background: var(--sable); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: 0.002em; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: 1.2rem; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--cuivre); }
.section-encre h2 em { color: var(--cuivre-clair); }

.section-intro { color: var(--encre-douce); font-size: 1.08rem; max-width: 60ch; }

.chapitre {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.chapitre::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--cuivre); opacity: 0.6; }
.section-encre .chapitre { color: var(--cuivre-clair); }
.section-encre .chapitre::after { background: var(--cuivre-clair); }

/* ─────────── Boutons & liens ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 1em 2.1em;
  border: 1px solid var(--encre);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
.btn-cta { background: var(--encre); color: var(--ivoire); }
.btn-cta:hover, .btn-cta:focus-visible { background: var(--cuivre); border-color: var(--cuivre); color: #FFF9F0; }
.btn-cuivre { background: var(--cuivre); border-color: var(--cuivre); color: #FFF9F0; }
.btn-cuivre:hover, .btn-cuivre:focus-visible { background: var(--cuivre-clair); border-color: var(--cuivre-clair); color: var(--encre); }
.btn-petit { padding: 0.6em 1.3em; font-size: 0.88rem; }
.btn-large { font-size: 1.05rem; }
.btn:focus-visible { outline: 2px solid var(--cuivre-clair); outline-offset: 3px; }

.lien-fleche {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--encre);
  text-decoration: none;
  padding-bottom: 0.3em;
  background: linear-gradient(var(--cuivre), var(--cuivre)) left bottom / 100% 1px no-repeat;
  transition: color 0.25s ease, background-size 0.3s ease;
}
.lien-fleche::after { content: " →"; color: var(--cuivre); }
.lien-fleche:hover, .lien-fleche:focus-visible { color: var(--cuivre); background-size: 30% 1px; }

/* ─────────── Entête ─────────── */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.entete-inner { max-width: 1220px; margin: 0 auto; padding: 0.85rem 24px; display: flex; align-items: center; gap: 1.8rem; }
.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--encre);
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-top: 0.35em;
}
.nav { display: flex; gap: 1.7rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--encre-douce);
  text-decoration: none;
  padding-bottom: 0.3em;
  background: linear-gradient(var(--cuivre), var(--cuivre)) left bottom / 0% 1px no-repeat;
  transition: color 0.2s ease, background-size 0.3s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--encre); background-size: 100% 1px; }

.burger { display: none; background: none; border: none; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 1.5px; background: var(--encre); display: block; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────── Héro ─────────── */
.hero { padding: clamp(4.5rem, 9vw, 7.5rem) 0 0; }
.hero-surtitre {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-bottom: 2.2rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 18ch;
  margin-bottom: 1.6rem;
}
.hero-texte { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--encre-douce); max-width: 62ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.8rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-faits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--filet);
}
.hero-faits > div { padding: 1.8rem 1.5rem 1.8rem 0; }
.hero-faits > div + div { border-left: 1px solid var(--filet); padding-left: 1.5rem; }
.hero-faits dt { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--cuivre); line-height: 1.1; }
.hero-faits dd { font-size: 0.9rem; color: var(--encre-douce); }

/* ─────────── Portfolio ─────────── */
.portfolio-liste { display: flex; flex-direction: column; gap: clamp(3.5rem, 7vw, 6rem); margin-top: 3.2rem; }
.projet {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.8rem);
  align-items: center;
}
.projet.inverse .projet-visuel { order: 2; }
.projet.inverse .projet-infos { order: 1; }

.navigateur {
  display: block;
  overflow: hidden;
  background: #FFFDF9;
  border: 1px solid var(--filet);
  box-shadow: 14px 14px 0 var(--sable), 14px 14px 0 1px var(--filet);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.navigateur:hover, .navigateur:focus-visible { transform: translate(-3px, -3px); box-shadow: 18px 18px 0 var(--sable), 18px 18px 0 1px var(--filet); }
.nav-barre {
  display: flex; gap: 6px;
  padding: 10px 14px;
  background: var(--sable);
  border-bottom: 1px solid var(--filet);
}
.nav-barre i { width: 9px; height: 9px; border-radius: 50%; background: rgba(24, 21, 18, 0.18); }
.navigateur img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: top; }

.projet-num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--cuivre); margin-bottom: 0.5rem; }
.projet-infos h3 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 0.8rem; }
.projet-intention { color: var(--encre-douce); margin-bottom: 1.4rem; max-width: 46ch; }

/* ─────────── Offre ─────────── */
.offre-grille {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  margin-top: 3rem;
  border-top: 1px solid var(--filet-clair);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.offre-prix { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.prix { font-family: var(--serif); font-size: clamp(4.5rem, 9vw, 6.5rem); line-height: 0.95; color: var(--cuivre-clair); }
.prix-detail { color: rgba(245, 242, 235, 0.65); font-size: 0.98rem; }
.prix-livraison {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ivoire);
  border-top: 1px solid var(--filet-clair);
  padding-top: 1.2rem;
  margin-top: 0.6rem;
}
.prix-garantie { font-size: 0.92rem; color: rgba(245, 242, 235, 0.65); max-width: 36ch; margin-bottom: 1.4rem; }
.offre-inclus { list-style: none; display: grid; gap: 1.15rem; align-content: center; }
.offre-inclus li {
  padding-left: 1.9rem;
  position: relative;
  color: rgba(245, 242, 235, 0.72);
  font-size: 0.98rem;
}
.offre-inclus li::before {
  content: "◆";
  position: absolute; left: 0; top: 0.35em;
  font-size: 0.55em;
  color: var(--cuivre-clair);
}
.offre-inclus strong { color: var(--ivoire); font-weight: 600; }

/* ─────────── Méthode ─────────── */
.etapes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-top: 3rem;
  counter-reset: etape;
}
.etapes li { border-top: 1px solid var(--encre); padding-top: 1.5rem; }
.etape-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  color: var(--cuivre);
  line-height: 1;
  margin-bottom: 1rem;
}
.etapes h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.etapes p { color: var(--encre-douce); font-size: 0.97rem; }

/* ─────────── FAQ ─────────── */
.faq-liste { margin-top: 2.6rem; border-top: 1px solid var(--encre); }
.faq-liste details { border-bottom: 1px solid var(--filet); }
.faq-liste summary {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  padding: 1.4rem 3.2rem 1.4rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary:hover { color: var(--cuivre); }
.faq-liste summary:focus-visible { outline: 2px solid var(--cuivre); outline-offset: -2px; }
.faq-icone { position: absolute; right: 0.4rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.faq-icone::before, .faq-icone::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  background: var(--cuivre);
  transition: transform 0.3s ease;
}
.faq-icone::before { width: 15px; height: 1.5px; }
.faq-icone::after { width: 1.5px; height: 15px; }
details[open] .faq-icone::after { transform: rotate(90deg); }
.faq-liste details p { padding: 0 0 1.6rem; color: var(--encre-douce); max-width: 66ch; }

/* ─────────── CTA finale ─────────── */
.cta-finale { padding-top: 0; }
.cta-bloc {
  background: var(--encre);
  color: var(--ivoire);
  padding: clamp(2.8rem, 6vw, 5rem);
  text-align: left;
}
.cta-bloc h2 { color: var(--ivoire); }
.cta-bloc .chapitre { color: var(--cuivre-clair); }
.cta-bloc .chapitre::after { background: var(--cuivre-clair); }
.cta-bloc h2 em { color: var(--cuivre-clair); }
.cta-texte { color: rgba(245, 242, 235, 0.7); margin-bottom: 2.2rem; font-size: 1.05rem; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.8rem; }
.cta-alt { font-size: 0.95rem; color: rgba(245, 242, 235, 0.7); }
.cta-alt a { color: var(--cuivre-clair); }

/* ─────────── Pied ─────────── */
.pied { background: var(--encre); color: rgba(245, 242, 235, 0.68); padding: 4rem 0 5rem; font-size: 0.93rem; border-top: 1px solid var(--filet-clair); }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.pied-logo { font-family: var(--serif); font-size: 1.5rem; color: var(--ivoire); margin-bottom: 0.6rem; }
.pied-titre { font-weight: 600; color: var(--ivoire); margin-bottom: 0.7rem; }
.pied a { color: var(--cuivre-clair); text-decoration: none; }
.pied a:hover, .pied a:focus-visible { text-decoration: underline; }
.pied-mention { text-align: center; margin-top: 3rem; padding: 1.4rem 24px 0; border-top: 1px solid var(--filet-clair); font-size: 0.82rem; }
.pied-mention a { text-decoration: underline; }

/* ─────────── Barre mobile ─────────── */
.barre-mobile { position: fixed; inset: auto 0 0 0; z-index: 60; display: none; }
.barre-mobile a {
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.98rem;
  color: #FFF9F0; text-decoration: none;
  background: var(--cuivre);
  padding: 1.05rem 1rem calc(1.05rem + env(safe-area-inset-bottom));
}

/* ─────────── Apparitions ─────────── */
.apparition { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.apparition.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparition { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivoire);
    border-bottom: 1px solid var(--filet);
    flex-direction: column; gap: 0;
    padding: 0.6rem 0;
  }
  .nav.ouverte { display: flex; }
  .nav a { padding: 0.95rem 24px; font-size: 1.02rem; background: none; }
  .burger { display: flex; }
  .entete .btn-cta { display: none; }

  .projet, .projet.inverse { grid-template-columns: 1fr; }
  .projet.inverse .projet-visuel { order: 0; }
  .projet.inverse .projet-infos { order: 1; }
  .offre-grille { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; max-width: 560px; gap: 2.2rem; }

  .barre-mobile { display: block; }
  body { padding-bottom: 60px; }
  .pied { padding-bottom: 7.5rem; }
}

@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-faits { grid-template-columns: 1fr; }
  .hero-faits > div { padding: 1.1rem 0; }
  .hero-faits > div + div { border-left: none; border-top: 1px solid var(--filet); padding-left: 0; }
  .pied-grille { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; }
}
