/* ==========================================================================
   FANTECH — site vitrine · feuille de style
   Palette : vert forêt, ivoire, laiton. Typo : Constantia / Segoe UI.
   ========================================================================== */

:root{
  --forest:      #0E3227;
  --forest-2:    #17452F;
  --forest-deep: #08201A;
  --ivory:       #FBF9F3;
  --paper:       #FFFFFF;
  --sand:        #F3EDDF;
  --brass:       #A98450;
  --brass-ink:   #8A6938;
  --brass-lt:    #D8C39B;
  --ink:         #1B211D;
  --body:        #45504A;
  --muted:       #79806F;
  --line:        #E4DDCB;
  --line-soft:   #EDE8DA;

  --serif: "Constantia", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --wrap: 1140px;
  --shadow: 0 30px 60px -34px rgba(14,50,39,.42);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 400;
  color: var(--forest);
  margin: 0;
  text-wrap: balance;
}
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
img, svg{ display: block; max-width: 100%; }
button{ font: inherit; color: inherit; }

.wrap{ width: min(calc(100% - 48px), var(--wrap)); margin-inline: auto; }

.eyebrow{
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass-ink);
  font-weight: 600;
}
.rule{ height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-brass{ height: 1px; width: 56px; background: var(--brass); border: 0; margin: 0; }

/* ---------- boutons ------------------------------------------------------ */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  background: var(--forest); color: var(--ivory);
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.btn:hover{ background: var(--forest-2); border-color: var(--forest-2); transform: translateY(-1px); }
.btn-ghost{
  background: transparent; color: var(--forest); border-color: rgba(14,50,39,.28);
}
.btn-ghost:hover{ background: rgba(14,50,39,.05); border-color: var(--forest); }
.btn-on-dark{ background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn-on-dark:hover{ background: #fff; border-color: #fff; }
.btn-sm{ padding: 11px 18px; font-size: 11px; }

/* ---------- en-tête ------------------------------------------------------ */
.head{
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,243,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.head.is-stuck{ border-bottom-color: var(--line-soft); box-shadow: 0 8px 24px -22px rgba(14,50,39,.5); }
.head-in{
  display: flex; align-items: center; gap: 32px;
  height: 78px;
}
.brand{ display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand .mark{ width: 38px; height: 38px; }
.brand-txt{ display: flex; flex-direction: column; line-height: 1; }
.brand-name{
  font-family: var(--serif); font-size: 20px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--forest);
}
.brand-sub{
  margin-top: 6px; font-size: 9.5px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--brass-ink);
}

.nav{ display: flex; align-items: center; gap: 30px; }
.nav a{
  position: relative; font-size: 14.5px; color: var(--body);
  padding-block: 4px; transition: color .2s ease;
}
.nav a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass); transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease;
}
.nav a:hover{ color: var(--forest); }
.nav a:hover::after{ transform: scaleX(1); }

.head-tools{ display: flex; align-items: center; gap: 18px; }
.lang{ display: flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .12em; }
.lang button{
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--muted); letter-spacing: .12em; transition: color .2s ease;
}
.lang button:hover{ color: var(--forest); }
.lang button.is-on{ color: var(--forest); box-shadow: inset 0 -1px 0 var(--brass); }
.lang .sep{ color: var(--line); }

.burger{
  display: none; width: 40px; height: 40px; background: none; border: 0;
  cursor: pointer; padding: 10px; margin-right: -8px;
}
.burger span{ display: block; height: 1.5px; background: var(--forest); margin: 5px 0; transition: transform .3s ease, opacity .3s 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); }

.mobile-menu{
  display: none; border-top: 1px solid var(--line-soft);
  background: var(--ivory); padding: 8px 0 20px;
}
.mobile-menu a{ display: block; padding: 13px 24px; font-size: 16px; color: var(--forest); }
.mobile-menu.is-open{ display: block; }

/* ---------- hero --------------------------------------------------------- */
.hero{ padding: 84px 0 96px; overflow: hidden; }
.hero-grid{
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 70px; align-items: center;
}
.hero h1{
  font-size: clamp(40px, 4.9vw, 66px);
  line-height: 1.03;
  letter-spacing: -.012em;
  margin-top: 22px;
}
.hero h1 em{ font-style: italic; }
.hero .lead{
  margin-top: 26px; font-size: 18.5px; line-height: 1.62;
  max-width: 47ch; color: var(--body);
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust{
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 40px 0 0; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--muted);
}
.trust li{ display: flex; align-items: center; gap: 9px; }
.trust svg{ width: 15px; height: 15px; color: var(--brass); flex: none; }

.hero-art{ position: relative; }
.art-panel{
  position: relative; aspect-ratio: 4 / 4.55;
  background: var(--forest);
  border-radius: var(--radius);
  display: grid; place-content: center; justify-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.art-panel::after{
  content: ""; position: absolute; inset: 13px;
  border: 1px solid rgba(201,164,109,.24); pointer-events: none;
}
.art-panel .seal{ width: 190px; height: 190px; }
.art-panel .wm{
  margin-top: 40px; font-family: var(--serif); font-size: 27px;
  letter-spacing: .3em; padding-left: .3em; color: #FCF8ED; text-transform: uppercase;
}
.art-panel .ln{ width: 54px; height: 1px; background: rgba(201,164,109,.85); margin-top: 26px; }
.art-panel .sub{
  margin-top: 20px; font-size: 9.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--brass-lt);
}
.art-panel .peb-scale{ width: 132px; height: auto; margin-top: 20px; opacity: .96; }
.art-note{
  position: absolute; left: -22px; bottom: -24px;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 18px 40px -26px rgba(14,50,39,.45);
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--forest); line-height: 1.35; max-width: 260px;
}
.art-note svg{ width: 22px; height: 22px; color: var(--brass); flex: none; }

/* ---------- bandeau chiffres -------------------------------------------- */
.strip{ border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.strip-in{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding: 34px 0;
}
.strip .k{ font-family: var(--serif); font-size: 27px; color: var(--forest); line-height: 1; }
.strip .v{ margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ---------- sections ----------------------------------------------------- */
.section{ padding: 104px 0; }
section[id]{ scroll-margin-top: 96px; }
.section-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(30px, 3.3vw, 44px); line-height: 1.1; margin-top: 16px; }
.section-head .aside{ font-size: 15px; color: var(--muted); max-width: 34ch; padding-bottom: 6px; }

.services{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.svc{ border-top: 1px solid rgba(169,132,80,.5); padding-top: 26px; }
.svc-top{ display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc .n{ font-family: var(--serif); font-size: 13px; letter-spacing: .16em; color: var(--brass-ink); }
.svc h3{ font-size: 24px; margin-top: 16px; line-height: 1.2; }
.svc p{ margin-top: 14px; font-size: 15.5px; line-height: 1.68; color: var(--body); }
.svc .ic{ width: 24px; height: 24px; color: var(--brass-ink); opacity: .7; }

/* ---------- processus ---------------------------------------------------- */
.process{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; counter-reset: step; }
.step{ position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.step::before{
  content: ""; position: absolute; top: -1px; left: 0; width: 38px; height: 1px; background: var(--brass);
}
.step .n{ font-family: var(--serif); font-size: 15px; color: var(--brass-ink); letter-spacing: .1em; }
.step h3{ font-size: 21px; margin-top: 10px; }
.step p{ margin-top: 10px; font-size: 14.5px; line-height: 1.62; color: var(--body); }

/* ---------- obligation --------------------------------------------------- */
.oblig{ background: var(--sand); }
.oblig-grid{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.oblig h2{ font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-top: 16px; }
.oblig p{ margin-top: 22px; font-size: 16.5px; max-width: 46ch; }
.oblig .card{
  background: var(--paper); border-left: 3px solid var(--brass);
  padding: 30px 32px; border-radius: var(--radius);
  box-shadow: 0 20px 46px -34px rgba(14,50,39,.5);
}
.oblig .card .k{ font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); }
.oblig .card .v{ font-family: var(--serif); font-size: 22px; color: var(--forest); margin-top: 12px; line-height: 1.3; }
.oblig .card .v2{ font-family: var(--serif); font-size: 22px; color: var(--forest); margin-top: 26px; line-height: 1.3; }
.oblig .card small{ display: block; margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- zone --------------------------------------------------------- */
.zone-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.chips{ display: flex; flex-wrap: wrap; gap: 9px; }
.chip{
  font-size: 13.5px; color: var(--forest);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 15px; background: rgba(255,255,255,.55);
}
.chip.is-main{ border-color: var(--brass); color: var(--brass-ink); background: rgba(169,132,80,.07); }

/* ---------- échelle PEB ------------------------------------------------ */
.scale-sec{ border-top: 1px solid var(--line-soft); }
.scale-grid{ display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: center; }
.scale-grid h2{ font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin-top: 16px; }
.scale-grid .lead{ margin-top: 22px; font-size: 16.5px; max-width: 42ch; }
.scale-grid .note{ margin-top: 18px; font-size: 12.5px; color: var(--muted); max-width: 40ch; line-height: 1.6; }
.ladder{ width: 100%; display: block; }
.ladder-head{
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.ladder-head b{ color: var(--forest); font-weight: 600; letter-spacing: .06em; text-transform: none; font-size: 12px; }

/* ---------- projection (service signature) ------------------------------- */
.proj-sec{ background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.proj-grid{ display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.proj-grid h2{ font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-top: 16px; }
.proj-grid .lead{ margin-top: 22px; font-size: 16.5px; max-width: 44ch; }
.plist{ margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.plist li{ display: flex; gap: 14px; font-size: 15.5px; color: var(--body); }
.plist .n{ font-family: var(--serif); font-size: 13px; color: var(--brass-ink); padding-top: 2px; min-width: 18px; }
.plist b{ color: var(--forest); font-weight: 600; }
.proj-grid .btn{ margin-top: 34px; }

.pcard{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px 26px; box-shadow: 0 26px 60px -42px rgba(14,50,39,.55);
}
.pcard .top{ display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pcard .top .k{ font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); }
.pcard .top .tag{ font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; }

.scale-row{ display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.peb-side{ display: flex; flex-direction: column; gap: 9px; }
.peb-side .cap{ font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.peb-val{ display: flex; align-items: center; gap: 11px; }
.peb-chip{
  width: 46px; height: 27px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}
.peb-val b{ font-size: 12.5px; color: var(--forest); font-weight: 600; letter-spacing: .01em; }
.scale-row .arrow{ width: 26px; height: 26px; color: var(--brass); flex: none; margin-top: 13px; }

.pcard .hair{ height: 1px; background: var(--line-soft); border: 0; margin: 26px 0 4px; }
.pcard .works{ display: grid; gap: 0; }
.pcard .work{ display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.pcard .work:last-child{ border-bottom: 0; }
.pcard .work .nm{ font-size: 14.5px; color: var(--forest); }
.pcard .work .nm small{ display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.gain{
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.gain.hi{ color: var(--forest); background: rgba(14,50,39,.07); border: 1px solid rgba(14,50,39,.18); }
.gain.mid{ color: var(--brass-ink); background: rgba(169,132,80,.08); border: 1px solid rgba(169,132,80,.3); }
.pcard .pnote{ margin: 16px 0 0; font-size: 11.5px; color: var(--muted); }

.paid{ margin-top: 16px; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.paid b{ color: var(--forest); font-weight: 600; }

.who{ margin-top: 22px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-lt); }

/* ---------- FAQ ---------------------------------------------------------- */
.faq{ max-width: 860px; }
.faq details{ border-bottom: 1px solid var(--line); }
.faq summary{
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 20px; color: var(--forest);
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary .pm{ position: relative; width: 15px; height: 15px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after{
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--brass);
  transition: transform .3s ease;
}
.faq summary .pm::before{ width: 15px; height: 1px; }
.faq summary .pm::after{ width: 1px; height: 15px; }
.faq details[open] summary .pm::after{ transform: rotate(90deg); }
.faq details p{ padding: 0 46px 26px 0; font-size: 15.5px; color: var(--body); max-width: 68ch; }

/* ---------- contact ------------------------------------------------------ */
.contact{ background: var(--forest); color: rgba(251,249,243,.86); }
.contact-grid{ display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; }
.contact h2{ color: #FCF8ED; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-top: 16px; }
.contact .lead{ margin-top: 20px; font-size: 16.5px; max-width: 40ch; color: rgba(251,249,243,.72); }
.contact .eyebrow{ color: var(--brass-lt); }
.c-list{ margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.c-list li{ display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: #F3EEE0; }
.c-list svg{ width: 18px; height: 18px; color: var(--brass-lt); flex: none; margin-top: 3px; }
.c-list a:hover{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.c-list .k{ display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(251,249,243,.45); margin-bottom: 4px; }

.form{
  background: var(--paper); border-radius: var(--radius); padding: 34px;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.6);
  color: var(--ink);
}
.form .row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field{ margin-bottom: 16px; }
.field label{
  display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.field input, .field select, .field textarea{
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #FDFCF8; color: var(--ink); font-family: var(--sans); font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea{ resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169,132,80,.14);
}
.form .submit{ width: 100%; margin-top: 6px; }
.form .hint{ margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
.form .ok{ margin-top: 14px; font-size: 13.5px; color: var(--forest); text-align: center; }

/* ---------- pied de page ------------------------------------------------- */
.foot{ background: var(--ivory); padding: 56px 0 40px; border-top: 1px solid var(--line-soft); }
.foot-grid{ display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.foot .brand .mark{ width: 32px; height: 32px; }
.foot .brand-name{ font-size: 17px; }
.foot .brand-sub{ font-size: 8.5px; }
.foot-meta{ font-size: 13px; color: var(--muted); line-height: 1.9; }
.foot-meta a:hover{ color: var(--forest); }
.foot-links{ display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; }
.foot-links a:hover{ color: var(--forest); }
.foot-bottom{
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
}

/* ---------- révélations -------------------------------------------------- */
[data-reveal]{ opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 1000px){
  .hero-grid{ grid-template-columns: 1fr; gap: 58px; }
  .hero-art{ max-width: 460px; }
  .art-note{ left: auto; right: 6px; bottom: -26px; }
  .services{ gap: 32px; }
  .process{ grid-template-columns: 1fr 1fr; gap: 34px 32px; }
  .oblig-grid{ grid-template-columns: 1fr; gap: 44px; }
  .proj-grid{ grid-template-columns: 1fr; gap: 44px; }
  .scale-grid{ grid-template-columns: 1fr; gap: 40px; }
  .zone-grid{ grid-template-columns: 1fr; gap: 38px; }
  .contact-grid{ grid-template-columns: 1fr; gap: 46px; }
}
@media (max-width: 900px){
  .nav{ display: none; }
  .burger{ display: block; }
  .head-tools .btn{ display: none; }
  .section{ padding: 76px 0; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .services{ grid-template-columns: 1fr; gap: 34px; }
  .strip-in{ grid-template-columns: 1fr 1fr; gap: 26px; }
  .strip-in > div:last-child{ grid-column: 1 / -1; }
}
@media (max-width: 620px){
  body{ font-size: 16px; }
  .wrap{ width: calc(100% - 40px); }
  .hero{ padding: 54px 0 68px; }
  .hero .lead{ font-size: 17px; }
  .hero-cta .btn{ flex: 1 1 auto; }
  .hero-art{ max-width: 100%; }
  .art-panel .seal{ width: 132px; height: 132px; }
  .art-panel .wm{ font-size: 22px; }
  .process{ grid-template-columns: 1fr; }
  .form{ padding: 24px 20px; }
  .form .row{ grid-template-columns: 1fr; }
  .section{ padding: 62px 0; }
  .faq summary{ font-size: 17.5px; }
  .foot-grid{ gap: 28px; }

  .pcard{ padding: 22px 20px 20px; }
  .scale-row{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .scale-row .arrow{ transform: rotate(90deg); margin-left: 20px; }
  .scale-side .bars{ width: 104px; }
  .scale-side .letter{ font-size: 34px; }
  .pcard .work .nm{ font-size: 13.5px; }
  .ladder .sig{ display: none; }
}
