/* ==========================================================================
   LELONG & CIE — VERSION 1 : REFONTE DU SITE ACTUEL
   Identité existante modernisée : bleu canard, saumon, blanc, Raleway.
   Feuille autonome (n'utilise pas styles.css).
   ========================================================================== */
:root {
  --teal: #1d757f;
  --teal-dark: #0f5d67;
  --teal-deep: #0b4a52;
  --teal-soft: #e8f2f3;
  --salmon: #e06549;
  --salmon-soft: #fdeee9;
  --ink: #222322;
  --ink-soft: #545756;
  --grey: #f5f5f5;
  --line: #e3e3e3;
  --white: #fff;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* variables attendues par popup.css */
  --forest: var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #cfd9da, #e9eeee); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.media img.is-broken { opacity: 0; }

/* ---------- Typo ---------- */
.chapo {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--salmon);
}
.chapo--light { color: #ffb4a3; }
.c-h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--teal);
}
.c-head { max-width: 760px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.c-head .c-h2 { position: relative; padding-bottom: 20px; }
.c-head .c-h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 56px; height: 3px;
  margin-left: -28px;
  background: var(--salmon);
}
.c-head p:not(.chapo) { margin: 18px 0 0; color: var(--ink-soft); }

/* ---------- Boutons ---------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.c-btn:hover { transform: translateY(-1px); }
.c-btn--accent { background: var(--salmon); color: #fff; }
.c-btn--accent:hover { background: #c9533a; }
.c-btn--line { border-color: rgba(255, 255, 255, .8); color: #fff; }
.c-btn--line:hover { background: #fff; color: var(--teal); }
.c-btn--white { background: #fff; color: var(--teal); }
.c-btn--white:hover { background: var(--salmon); color: #fff; }

.c-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--teal);
}
.c-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.c-link:hover { color: var(--salmon); }
.c-link:hover svg { transform: translateX(4px); }

.c-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-checks li { position: relative; padding-left: 28px; }
.c-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d757f' stroke-width='2'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ==========================================================================
   TOPBAR + HEADER
   ========================================================================== */
.topbar { background: var(--teal-dark); color: rgba(255, 255, 255, .88); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar__claim { font-weight: 600; }
.topbar__contact { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.topbar__contact li { display: inline-flex; align-items: center; gap: 8px; }
.topbar__contact svg { width: 14px; height: 14px; color: #ffb4a3; }
.topbar__contact a:hover { color: #fff; text-decoration: underline; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, transform .35s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .25); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 84px; }

.c-logo { display: inline-flex; flex-direction: column; line-height: 1; }
.c-logo__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--teal);
}
.c-logo__name span { color: var(--salmon); font-weight: 600; }
.c-logo__tag {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.c-logo--light .c-logo__name { color: #fff; }
.c-logo--light .c-logo__tag { color: rgba(255, 255, 255, .6); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color .2s, background .2s;
}
.nav__list a:hover { color: var(--teal); background: var(--teal-soft); }
.nav__list a.is-active { color: var(--teal); box-shadow: inset 0 -2px 0 var(--salmon); border-radius: 0; }
.nav__mobile-only { display: none; }

.burger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.c-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; }
.c-hero__media { position: absolute; inset: 0; }
.c-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 74, 82, .92) 0%, rgba(15, 93, 103, .78) 42%, rgba(15, 93, 103, .15) 80%);
}
.c-hero__inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 120px; }
.c-hero__box { max-width: 620px; color: #fff; }
.c-hero__box .chapo { color: #ffb4a3; }
.c-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.c-hero__text { margin: 22px 0 0; font-size: clamp(16px, 1.3vw, 18px); color: rgba(255, 255, 255, .88); max-width: 34em; }
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Atouts qui chevauchent le hero */
.c-assets { position: relative; z-index: 2; margin-top: -64px; }
.c-assets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(11, 74, 82, .35);
  border-top: 4px solid var(--salmon);
}
.c-asset { display: flex; gap: 18px; align-items: flex-start; padding: 30px 28px; }
.c-asset + .c-asset { border-left: 1px solid var(--line); }
.c-asset svg { width: 38px; height: 38px; flex: none; color: var(--teal); }
.c-asset strong { display: block; font-size: 18px; font-weight: 800; color: var(--teal); }
.c-asset span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.c-section { padding: clamp(72px, 8vw, 110px) 0; }
.c-section--grey { background: var(--grey); }

/* Qui sommes-nous */
.c-about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.c-about__media { position: relative; padding: 0 0 24px 24px; }
.c-about__media::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 70%; height: 70%;
  border: 3px solid var(--teal);
  border-radius: var(--radius);
}
.c-about__media .media { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--radius); }
.c-about__stamp {
  position: absolute;
  right: -14px; top: 28px;
  display: grid;
  padding: 16px 22px;
  background: var(--salmon);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4);
}
.c-about__stamp b { font-size: 30px; font-weight: 800; line-height: 1; }
.c-about__stamp span { font-size: 12.5px; font-weight: 600; }
.c-about__text > p:not(.chapo) { margin: 20px 0 22px; color: var(--ink-soft); }
.c-about__text .c-checks { margin-bottom: 28px; }

/* Chiffres */
.c-figures { background: var(--teal); color: #fff; padding: clamp(56px, 6vw, 80px) 0; }
.c-figures__title { margin: 0 0 36px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffb4a3; }
.c-figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.c-figure__value { font-size: clamp(36px, 3.6vw, 50px); font-weight: 800; line-height: 1; white-space: nowrap; }
.c-figure__value small { font-size: .45em; font-weight: 700; margin-left: 4px; }
.c-figure p { margin: 12px auto 0; max-width: 16em; font-size: 15px; color: rgba(255, 255, 255, .82); }
.c-figure p::before { content: ""; display: block; width: 28px; height: 2px; margin: 0 auto 12px; background: var(--salmon); }

/* Cartes expertises */
.c-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.c-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.c-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .35); border-bottom-color: var(--salmon); }
.c-card__media { aspect-ratio: 4 / 3; }
.c-card:hover .media img { transform: scale(1.05); }
.c-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.c-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--teal); line-height: 1.3; }
.c-card p { margin: 10px 0 18px; flex: 1; font-size: 15px; color: var(--ink-soft); }

/* Expertise industrielle */
.c-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.c-skill { background: #fff; padding: 30px 28px; border-radius: var(--radius); border-top: 3px solid var(--teal); }
.c-skill h3 { margin: 0 0 18px; font-size: 19px; font-weight: 800; color: var(--teal); }
.c-skill .c-checks { font-size: 15px; color: var(--ink-soft); }
.c-skill--accent { background: var(--teal); color: #fff; border-top-color: var(--salmon); }
.c-skill--accent h3 { color: #fff; }
.c-skill--accent .c-checks { color: rgba(255, 255, 255, .88); }
.c-skill--accent .c-checks li::before { background-color: rgba(255, 255, 255, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); }

.c-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  margin: clamp(48px, 5vw, 64px) 0 0;
  padding: 0;
  counter-reset: s;
}
.c-steps::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 26px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px);
  opacity: .5;
}
.c-steps li { position: relative; text-align: center; }
.c-steps span {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal);
  color: var(--teal);
  font-weight: 800;
  font-size: 20px;
}
.c-steps li:hover span { background: var(--teal); color: #fff; }
.c-steps strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; max-width: 13em; margin: 0 auto; }

/* Galerie */
.c-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.c-shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.c-shot .media { aspect-ratio: 4 / 3; }
.c-shot figcaption {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--teal);
  border-top: 3px solid var(--teal);
  transition: background .3s, color .3s;
}
.c-shot:hover .media img { transform: scale(1.05); }
.c-shot:hover figcaption { background: var(--teal); color: #fff; }
.c-note { margin: 22px 0 0; text-align: center; font-size: 12.5px; color: #8a8d8c; }

/* Partenariat */
.c-partner { background: var(--teal-deep); color: rgba(255, 255, 255, .86); padding: clamp(64px, 7vw, 96px) 0; }
.c-partner__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.c-partner .c-h2 { color: #fff; }
.c-partner p:not(.chapo) { margin: 0 0 14px; }

/* Engagements */
.c-commits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.c-commits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  background: var(--grey);
  border-radius: var(--radius);
  transition: background .3s, transform .3s var(--ease);
}
.c-commits li:hover { background: var(--teal-soft); transform: translateY(-3px); }
.c-commits svg { width: 40px; height: 40px; color: var(--teal); }

/* CTA */
.c-cta { background: var(--salmon); color: #fff; }
.c-cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-block: clamp(56px, 6vw, 80px); }
.c-cta .c-h2 { color: #fff; }
.c-cta p { margin: 12px 0 0; font-size: 17px; color: rgba(255, 255, 255, .92); }
.c-cta__actions { display: grid; justify-items: center; gap: 12px; }
.c-cta__phone { font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .6); }

/* Footer */
.c-footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 15px; }
.c-footer__grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 40px; padding-block: 64px 48px; }
.c-footer h3 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb4a3; }
.c-footer p { margin: 0 0 12px; }
.c-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.c-footer a:hover { color: #fff; }
.c-footer__about { margin-top: 18px !important; max-width: 30ch; }
.c-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 22px 30px; background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Apparitions */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in, .no-js .reveal, .static .reveal { opacity: 1; transform: none; }
.static *, .static *::before, .static *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .topbar__contact li:first-child { display: none; }
  .nav__list a { padding: 8px 8px; font-size: 14.5px; }
  .c-commits { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .topbar__claim { display: none; }
  .topbar__inner { justify-content: center; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav__list {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: -1;
    flex-direction: column;
    gap: 0;
    padding: 110px var(--gutter) 40px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .menu-open .nav__list { opacity: 1; visibility: visible; }
  .nav__list a { padding: 16px 4px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a:hover { background: none; }
  .nav__mobile-only { display: block; }
  .nav__mobile-only a { color: var(--teal); border-bottom: 0; }

  .c-assets__grid { grid-template-columns: 1fr; }
  .c-asset + .c-asset { border-left: 0; border-top: 1px solid var(--line); }
  .c-about, .c-partner__inner, .c-cta__inner { grid-template-columns: 1fr; }
  .c-about__media { max-width: 520px; }
  .c-cta__actions { justify-items: start; }
  .c-figures__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .c-cards, .c-skills { grid-template-columns: 1fr 1fr; }
  .c-skill--accent { grid-column: 1 / -1; }
  .c-gallery { grid-template-columns: 1fr 1fr; }
  .c-steps { grid-template-columns: 1fr; gap: 0; }
  .c-steps::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 14px); }
  .c-steps li { display: flex; align-items: center; gap: 18px; text-align: left; padding: 8px 0; }
  .c-steps span { margin: 0; flex: none; }
  .c-steps strong { margin: 0; max-width: none; }
  .c-footer__grid { grid-template-columns: 1fr 1fr; }
  .c-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .topbar { font-size: 12.5px; }
  .topbar__contact { gap: 16px; }
  .header__inner { height: 70px; }
  .c-logo__name { font-size: 23px; }
  .c-logo__tag { font-size: 9px; }
  .c-hero { min-height: 0; }
  .c-hero__media::after { background: linear-gradient(0deg, rgba(11, 74, 82, .95) 0%, rgba(15, 93, 103, .8) 60%, rgba(15, 93, 103, .5) 100%); }
  .c-hero__inner { padding-top: 56px; padding-bottom: 100px; }
  .c-hero__actions .c-btn { width: 100%; }
  .c-cards, .c-skills, .c-gallery, .c-commits { grid-template-columns: 1fr; }
  .c-commits li { flex-direction: row; text-align: left; padding: 18px; }
  .c-commits svg { width: 32px; height: 32px; flex: none; }
  .c-about__stamp { right: 8px; }
  .c-footer__grid { grid-template-columns: 1fr; }
}

/* Mention AtomLabs (footer) */
.c-footer__bottom .credit { color: rgba(255, 255, 255, .62); }
