/* ---- Variables ---- */
:root {
  --white:  #FFFFFF;
  --snow:   #F5F7F9;   /* gris froid très clair, sections alternées */
  --ink:    #16181D;
  --ink-2:  #44484F;
  --muted:  #787D86;
  --line:   #E4E7EB;
  --line-2: #D3D8DE;
  --accent: #B9712A;
  --acc-dk: #925515;
  --maxw:   1280px;
  --ease:   cubic-bezier(.22,.6,.32,1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main, footer { overflow-x: hidden; }
::selection { background: var(--ink); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.015em;
}
.italic-acc { font-style: italic; font-weight: 500; color: var(--acc-dk); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.pad  { padding: 104px 0; }
.pad-sm { padding: 78px 0; }

/* ---- Composants ---- */
.eyebrow {
  font-family: "Archivo";
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Archivo";
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn.lg { padding: 17px 32px; font-size: 16px; }

/* ---- En-tête ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding .4s var(--ease);
}
header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
header.scrolled .bar { padding-top: 12px; padding-bottom: 12px; }

.brand img { height: 64px; width: auto; transition: height .4s var(--ease); }
header.scrolled .brand img { height: 48px; }

nav.main { display: flex; align-items: center; gap: 36px; }
nav.main a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 8px 0;
  cursor: pointer;
  transition: color .25s;
}
nav.main a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  height: 1.5px; width: 0;
  background: var(--accent);
  transition: width .3s var(--ease);
}
nav.main a:hover,
nav.main a.active { color: var(--ink); }
nav.main a.active::after,
nav.main a:hover::after { width: 100%; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}
.burger span { width: 26px; height: 2px; background: var(--ink); transition: .3s; display: block; flex-shrink: 0; }

/* Menu mobile */
.mobnav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(.22,.6,.32,1), visibility 0s 0.45s;
}
.mobnav.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.45s cubic-bezier(.22,.6,.32,1), visibility 0s 0s;
}
.mobnav a {
  font-family: "Fraunces";
  font-size: 2.2rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  opacity: 0;
  transform: translateX(24px);
  transition: color .25s, opacity .18s, transform .18s;
}
.mobnav.open a {
  opacity: 1;
  transform: translateX(0);
  transition: color .25s, opacity .4s var(--ease), transform .4s var(--ease);
}
.mobnav.open a:nth-child(2) { transition-delay: 0.14s; }
.mobnav.open a:nth-child(3) { transition-delay: 0.20s; }
.mobnav.open a:nth-child(4) { transition-delay: 0.26s; }
.mobnav.open a:nth-child(5) { transition-delay: 0.32s; }
.mobnav.open a:nth-child(6) { transition-delay: 0.38s; }
.mobnav .mob-close {
  position: absolute;
  top: 26px; right: 28px;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity .3s .08s, transform .3s .08s var(--ease);
}
.mobnav.open .mob-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* ---- Hero ---- */
.hero {
  padding: 172px 0 88px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-home {
  background:
    linear-gradient(to right, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 30%, rgba(255,255,255,.2) 56%, rgba(255,255,255,0) 68%),
    linear-gradient(to bottom, transparent 55%, rgba(255,255,255,.6) 68%, var(--white) 80%),
    url('assets/route.jpg') right 0 top -70px / cover no-repeat;
  background-color: var(--white);
}
.hero-missions {
  background:
    linear-gradient(rgba(255,255,255,.52), rgba(255,255,255,.52)),
    linear-gradient(to bottom, transparent 72%, rgba(255,255,255,.6) 88%, var(--white) 97%),
    url('assets/missions.png') center center / cover no-repeat;
  background-color: var(--white);
}
.hero-qsn {
  background:
    linear-gradient(to right, rgba(255,255,255,.70) 0%, rgba(255,255,255,.60) 28%, rgba(255,255,255,.15) 52%, rgba(255,255,255,0) 65%),
    linear-gradient(to bottom, transparent 68%, rgba(255,255,255,.55) 85%, var(--white) 97%),
    url('assets/ecran.jpeg') right center / cover no-repeat;
  background-color: var(--white);
}
.hero-references {
  background:
    linear-gradient(to bottom, rgba(255,255,255,.55) 0%, rgba(255,255,255,.1) 10%, transparent 22%),
    linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)),
    linear-gradient(to bottom, transparent 68%, rgba(255,255,255,.4) 88%, var(--white) 100%),
    url('assets/references-bg.png') center center / cover no-repeat;
  background-color: var(--white);
}
.hero-contact {
  background:
    linear-gradient(to right, rgba(255,255,255,.68) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.45) 100%),
    linear-gradient(to bottom, transparent 68%, rgba(255,255,255,.4) 88%, var(--white) 100%),
    url('assets/cyclable.jpeg') center center / cover no-repeat;
  background-color: var(--white);
}
.hero-home .hero-inner {
  text-shadow: 0 0 48px rgba(255,255,255,.95), 0 0 20px rgba(255,255,255,.8);
}
.hero-home .btn.ghost { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-home .btn.ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.hero-inner { max-width: 960px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin-top: 24px; }
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--ink-2);
  max-width: 600px;
  margin-top: 28px;
  line-height: 1.55;
}
.hero .s-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.55;
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* Bande de chiffres */
.stats {
  display: flex;
  gap: 64px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat .n {
  font-family: "Fraunces";
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat .n small { font-size: 1rem; color: var(--acc-dk); margin-left: 4px; }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 8px; max-width: 200px; line-height: 1.4; }

/* ---- Bande 3 piliers ---- */
.pillars { background: var(--snow); border-bottom: 1px solid var(--line); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar {
  padding: 40px 44px;
  border-left: 1px solid var(--line);
}
.pillar:first-child { border-left: none; }
.pillar .pidx {
  font-family: "Fraunces";
  font-size: 1rem;
  color: var(--accent);
}
.pillar h3 { font-size: 1.45rem; margin: 10px 0 10px; }
.pillar p { font-size: 14.5px; color: var(--ink-2); }

/* ---- En-tête de section éditoriale (titre + intro côte à côte) ---- */
.shead {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.shead h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); margin-top: 18px; }
.shead .intro { color: var(--ink-2); font-size: 1.05rem; }

/* ---- Grille valeurs ---- */
.vgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.vcell {
  background: var(--white);
  padding: 32px 26px;
}
.vcell .ic { width: 100%; height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.vcell .ic img { width: 60px; height: 60px; object-fit: contain; }
.vcell h4 { font-family: "Fraunces"; font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.vcell p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---- Grille missions (page nos-missions) ---- */
.mlist { }
.mrow {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: 40px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}

.mrow .mi {
  font-family: "Fraunces";
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
.mrow h3 { font-size: 1.8rem; margin-bottom: 10px; }
.mrow .mdesc { color: var(--ink-2); font-size: 15px; }
.mrow ul { list-style: none; }
.mrow li {
  font-size: 15px;
  color: var(--ink-2);
  padding: 10px 0 10px 22px;
  position: relative;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.mrow li:first-child { border-top: none; }
.mrow li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 2px;
  background: var(--accent);
}

/* ---- Grille fondateur (qui-sommes-nous) ---- */
.founder-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 64px;
  align-items: start;
}
.founder-photo .ph {
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  background: var(--snow);
}
.founder-photo .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-photo .cap {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.founder h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.founder .role { color: var(--acc-dk); font-weight: 600; margin: 8px 0 22px; }
.founder p { color: var(--ink-2); margin-bottom: 16px; }
.timeline { margin-top: 50px; border-top: 1px solid var(--ink); }
.timeline .row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.timeline .yr { font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .desc { color: var(--ink-2); }

/* ---- Grille logos clients ---- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-cell {
  background: var(--white);
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  position: relative;
  transition: background .3s;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-cell img {
  max-height: 78px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .58;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }
.logo-cell .name-tile {
  font-family: "Fraunces";
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  font-size: 1rem;
  line-height: 1.25;
}

/* ---- Carousel réalisations ---- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--snow);
  border: 1px solid var(--line);
}
.carousel-track {
  display: flex;
  transition: transform .45s var(--ease);
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16/9;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff; padding: 36px 28px 20px;
  font-size: 14px; font-weight: 500;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1; z-index: 2;
}
.carousel-btn:hover { background: rgba(255,255,255,.38); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  display: flex; gap: 8px; justify-content: center;
  padding: 18px 0 0;
}
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2); cursor: pointer;
  transition: background .25s, transform .25s;
  border: none; padding: 0;
}
.carousel-dot.active { background: var(--ink); transform: scale(1.3); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.coords { border-top: 1px solid var(--ink); }
.coord { padding: 24px 0; border-bottom: 1px solid var(--line); }
.coord .k {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.coord .v {
  font-family: "Fraunces";
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 6px;
}
.coord .v a:hover { color: var(--acc-dk); }
.map-ph {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 2px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.map-pin {
  width: 40px; height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  opacity: .7;
}

/* ---- Bandeau CTA final ---- */
.cta-band { border-top: 1px solid var(--line); }
.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.cta-band .sub { color: var(--ink-2); margin-top: 8px; font-size: 1.05rem; }

/* ---- Pied de page ---- */
footer { background: var(--ink); color: #c8ccd4; padding: 76px 0 30px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.flogo { height: 58px; width: auto; filter: invert(1); mix-blend-mode: screen; opacity: .95; margin-bottom: 20px; }
footer h5 {
  color: #fff;
  font-family: "Fraunces";
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.legal { font-size: 13.5px; line-height: 1.85; color: #9aa0a9; }
footer a.fl { display: block; font-size: 14.5px; color: #c8ccd4; padding: 5px 0; transition: color .25s; }
footer a.fl:hover { color: var(--accent); }
.foot-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #7f848d;
  gap: 10px;
}
.foot-bottom > :last-child { text-align: right; }


/* ---- Animations reveal (déclenchées par IntersectionObserver) ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); }
  .vgrid .vcell:last-child:nth-child(3n+2) { grid-column: span 2; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  nav.main, .bar .btn { display: none; }
  .burger { display: flex; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-left: none; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: none; }
  .shead { grid-template-columns: 1fr; gap: 14px; }
  .mrow { grid-template-columns: 1fr; gap: 12px; }
  .founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .pad { padding: 72px 0; }
  .hero { padding: 120px 0 68px; }
  .hero-home {
    background:
      linear-gradient(to bottom, rgba(255,255,255,.85) 0%, rgba(255,255,255,.50) 35%, rgba(255,255,255,.50) 52%, var(--white) 68%),
      url('assets/route_mob.jpg') right 30% / cover no-repeat;
    background-color: var(--white);
  }
  .hero-home .cta-row { margin-top: 230px; }
  .hero-missions {
    background:
      linear-gradient(rgba(255,255,255,.82) 0%, rgba(255,255,255,.65) 80%, var(--white) 100%),
      url('assets/missions.png') center center / cover no-repeat;
    background-color: var(--white);
  }
  .hero-qsn {
    background:
      linear-gradient(rgba(255,255,255,.80) 0%, rgba(255,255,255,.45) 80%, var(--white) 100%),
      url('assets/ecran.jpeg') center 30% / cover no-repeat;
    background-color: var(--white);
  }
  .hero-references {
    background:
      linear-gradient(rgba(255,255,255,.82) 0%, rgba(255,255,255,.65) 80%, var(--white) 100%),
      url('assets/references-bg.png') center center / cover no-repeat;
    background-color: var(--white);
  }
  .hero-contact {
    background:
      linear-gradient(rgba(255,255,255,.62) 0%, rgba(255,255,255,.45) 80%, var(--white) 100%),
      url('assets/cyclable.jpeg') 80% center / cover no-repeat;
    background-color: var(--white);
  }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .timeline .row { grid-template-columns: 1fr; gap: 2px; }
}
.show-mobile { display: none; }
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { padding: 18px; aspect-ratio: 4/3; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .vgrid .vcell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

/* ---- Utilitaires (remplacements de styles inline) ---- */
.foot-links { display: flex; gap: 20px; }
.foot-link { color: inherit; text-decoration: none; opacity: .6; font-size: 12px; }
.section-snow { background: var(--snow); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pad-top-sm { padding-top: 56px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-36 { margin-top: 36px; }
.mt-52 { margin-top: 52px; }
.ml-list { margin: 12px 0 16px 20px; display: flex; flex-direction: column; gap: 6px; }
#gallerySection { border-top: 1px solid var(--line); }