/* =========================================================
   Fondatest · demo
   Palette and type are taken straight from the brand assets.
   Flat colours only, no gradients, no rounded corners.
   ========================================================= */

:root {
  --ink:        #252422;  /* brand dark  */
  --ink-soft:   #403D39;  /* hairlines and muted text on dark */
  --flame:      #EB5E28;  /* brand orange */
  --paper:      #FFFCF2;  /* off white */
  --paper-2:    #F4F0E6;  /* alternate light band */
  --silver:     #CCC5B9;  /* muted text on light */
  --rule:       #E2DCD0;  /* hairline on light */
  --rule-dark:  #3A3733;  /* hairline on dark */

  --skew: -34.3deg;       /* the angle of the logo parallelograms */

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --font: "Bai Jamjuree", "Titillium Web", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- shared type ---------- */

.eyebrow,
.section-label,
.ct-label,
.partner-label,
.foot-demo {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0;
}

.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.h2-wide { max-width: 20ch; }
.section-label + .h2 { margin-top: 14px; }
.h2.light { color: var(--paper); }
.section-label.light { color: var(--flame); }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 32px;
  color: #4A4741;
}

.note {
  font-size: 13px;
  color: #7A756C;
  margin: 20px 0 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn-solid { background: var(--flame); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { border-color: var(--ink-soft); color: var(--paper); }
.btn-ghost:hover { border-color: var(--flame); color: var(--flame); }
.btn-lg { margin-top: 56px; }

/* =========================================================
   HEADER
   ========================================================= */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-head.is-stuck { border-bottom-color: var(--rule-dark); }

.head-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;              /* the brand lockup sets the mark and word almost touching */
  text-decoration: none;
  margin-right: auto;
}
.logo-mark {
  width: 34px;
  height: auto;
  fill: var(--flame);
  flex: none;
}
.logo-word {
  font-size: 25px;
  font-weight: 300;
  letter-spacing: 0.005em;
  color: var(--flame);
  line-height: 1;
}
.logo-word sup { font-size: 9px; vertical-align: super; }

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover { color: var(--flame); border-bottom-color: var(--flame); }
.nav-tel { display: none; }   /* shown inside the mobile panel only */

.head-cta {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}
.head-cta:hover { color: var(--flame); }

.burger {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--rule-dark);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  display: block;
  width: 18px; height: 1px;
  background: var(--paper);
  margin: 4px auto;
  transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-2.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(72px, 11vw, 140px) 0 0;
}

.hero-watermark {
  position: absolute;
  right: -6%;
  top: 12%;
  width: min(58vw, 720px);
  fill: #2C2A27;          /* one flat step off the background, no gradient */
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-title {
  font-size: clamp(42px, 7.4vw, 96px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 30px;
}
.hero-title em {
  font-style: normal;
  color: var(--flame);
}

.hero-lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--silver);
  max-width: 52ch;
  margin: 0 0 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* key figures strip */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: clamp(72px, 9vw, 120px) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-dark);
}
.stats li {
  padding: 28px 24px 34px 0;
  border-right: 1px solid var(--rule-dark);
}
.stats li:last-child { border-right: 0; }
.stats li + li { padding-left: 24px; }
.stat-n {
  display: block;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 200;
  line-height: 1;
  color: var(--flame);
  letter-spacing: -0.02em;
}
.stat-l {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--silver);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section { padding: clamp(76px, 10vw, 132px) 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.grid-2 .section-label { padding-top: 10px; }

/* intro */
.intro { border-bottom: 1px solid var(--rule); }

.tick { list-style: none; margin: 0; padding: 0; }
.tick li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.tick li:last-child { border-bottom: 1px solid var(--rule); }
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 23px;
  width: 9px; height: 9px;
  background: var(--flame);
  transform: skewX(var(--skew));
}

/* ---------- métiers ---------- */

.metiers { background: var(--paper-2); }

.jobs {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.job {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color .2s;
}
.job:hover { background: rgba(235, 94, 40, 0.04); }
.job-n {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--flame);
  padding-top: 8px;
}
.job-main h3 {
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.job-main p {
  margin: 0 0 20px;
  max-width: 62ch;
  color: #4A4741;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  color: #56524B;
  background: var(--paper);
}

/* ---------- bande image ---------- */

.band { position: relative; background: var(--ink); }
/* The band now holds the wide brand banner rather than a photo, so it keeps its
   own aspect ratio. Cropping it to a fixed height cut the wordmark in half. */
.band img {
  width: 100%;
  height: auto;
}
.band-caption {
  position: absolute;
  left: 0; right: 0; bottom: clamp(24px, 4vw, 48px);
}
.band-caption p {
  display: inline-block;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 300;
  padding: 16px 24px;
  max-width: 30ch;
}

/* ---------- références ---------- */

.ref-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 15px;
}
.ref-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A857C;
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--ink);
}
.ref-table td {
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.ref-table tbody tr { transition: background-color .18s; }
.ref-table tbody tr:hover { background: rgba(235, 94, 40, 0.04); }
.ref-table td:first-child { font-weight: 400; }
.ref-table td:last-child, .ref-table th:last-child { text-align: right; padding-right: 0; color: var(--flame); }

/* ---------- matériel ---------- */

.materiel { background: var(--paper-2); }

.kit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.kit article {
  background: var(--paper);
  padding: 32px 26px 40px;
  position: relative;
  transition: background-color .2s;
}
.kit article::before {
  content: "";
  position: absolute;
  left: 26px; top: 0;
  width: 22px; height: 3px;
  background: var(--flame);
  transform: skewX(var(--skew));
  opacity: 0;
  transition: opacity .2s;
}
.kit article:hover::before { opacity: 1; }
.kit h3 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 10px;
}
.kit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6B665E;
}

/* ---------- équipe ---------- */

.partner {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  max-width: 44ch;
}
.partner-name {
  font-size: 22px;
  font-weight: 300;
  margin: 12px 0 8px;
}
.partner-addr {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6B665E;
}
.partner-addr a { color: var(--flame); text-decoration: none; }
.partner-addr a:hover { text-decoration: underline; }

.media-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--rule);
}
.media-2 figure { margin: 0; background: var(--paper); }
.media-2 img { width: 100%; height: clamp(240px, 30vw, 400px); object-fit: cover; }

/* ---------- contact ---------- */

.contact { background: var(--ink); color: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--rule-dark);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.contact-block { background: var(--ink); padding: 34px 26px 40px 0; }
.contact-grid .contact-block + .contact-block { padding-left: 26px; }
.ct-value {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}
.ct-value a { color: var(--paper); text-decoration: none; transition: color .18s; }
.ct-value a:hover { color: var(--flame); }

/* =========================================================
   FOOTER
   ========================================================= */

.site-foot {
  background: var(--ink);
  border-top: 1px solid var(--rule-dark);
  padding: 40px 0;
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logo-foot { margin-right: auto; }
.logo-foot .logo-mark { width: 26px; }
.logo-foot .logo-word { font-size: 19px; }
.foot-legal {
  margin: 0;
  font-size: 13px;
  color: #7C776F;
}
.foot-demo { color: #5C574F; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .kit { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .head-inner { height: 66px; gap: 16px; }
  .burger { display: block; }
  .head-cta { display: none; }

  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-dark);
    padding: 8px var(--gut) 24px;
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .nav-tel { display: block; color: var(--flame); }

  .grid-2, .job { grid-template-columns: 1fr; gap: 18px; }
  .grid-2 .section-label, .job-n { padding-top: 0; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--rule-dark); }
  .stats li:nth-child(2n) { border-right: 0; }
  .stats li:nth-child(2n+1) { padding-left: 0; }
  .stats li + li { padding-left: 20px; }
  .stats li:nth-child(n+3) { border-bottom: 0; }

  .hero-watermark { top: auto; bottom: 26%; right: -22%; width: 78vw; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .kit { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .contact-block + .contact-block { padding-left: 0; }
  .media-2 { grid-template-columns: 1fr; }
  .btn { display: block; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  /* the references table becomes a stack of cards */
  .ref-table, .ref-table tbody, .ref-table tr, .ref-table td { display: block; width: 100%; }
  .ref-table thead { display: none; }
  .ref-table tr { border-bottom: 1px solid var(--rule); padding: 18px 0; }
  .ref-table td { border: 0; padding: 2px 0; }
  .ref-table td:first-child { font-size: 18px; font-weight: 400; }
  .ref-table td:last-child { text-align: left; }
}
