/* =========================================================
   TAMCO — BTP · Feuille de style
   Palette : anthracite + jaune sécurité (gilets de chantier)
   ========================================================= */

:root {
  /* Charte TAMCO-CI (d'après le logo) :
     bleu marine + orange terracotta + vert, texte anthracite-ardoise */
  --ink:        #2b3b4e;   /* ardoise foncée (texte du logo) */
  --ink-2:      #22303f;
  --ink-3:      #3a4551;   /* charcoal (building) */
  --slate:      #55617a;
  --muted:      #8792a3;
  --line:       #e3e8ef;
  --paper:      #ffffff;
  --paper-2:    #f4f6fa;
  --brand-blue: #1d4e79;   /* bleu marine du logo (couleur principale) */
  --brand-blue-tint:#e7eef5;
  --navy-deep:  #163a5a;   /* bleu profond (surfaces sombres) */
  --navy-deeper:#102b44;   /* bleu très profond (pied de page) */
  --brand-green:#2f6b32;   /* vert du logo */
  --accent:     #c77b41;   /* orange terracotta (accent principal) */
  --accent-600: #a8632f;   /* orange foncé (survol) */
  --accent-tint:#f8ebe0;
  --white:      #ffffff;
  --radius-lg:  26px;
  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 30px 60px -28px rgba(22, 46, 74, .40);
  --shadow-sm:  0 14px 34px -20px rgba(22, 46, 74, .38);
  --shadow-xs:  0 4px 14px -8px rgba(22, 46, 74, .30);
  --ring:       0 0 0 1px rgba(29, 78, 121, .08);
  --grad-accent: linear-gradient(135deg, #d5894c 0%, #c77b41 55%, #a8632f 100%);
  --grad-blue:   linear-gradient(135deg, #235a8a 0%, #1d4e79 60%, #163a5a 100%);
  --maxw:       1180px;
  --font:       'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:    'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(199, 123, 65, .95);
}
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--brand-blue); background: var(--brand-blue-tint); }
.btn--block { width: 100%; justify-content: center; }
.btn--accent { background: var(--grad-accent); }
.btn svg { width: 18px; height: 18px; }
.btn--accent .arrow { transition: transform .2s ease; }
.btn--accent:hover .arrow { transform: translateX(3px); }

/* ---------- Badge « pill » ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.pill__dot {
  display: inline-grid; place-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill--accent .pill__dot { background: var(--accent-tint); color: var(--accent-600); }

/* ---------- Utilitaires ---------- */
.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Motif grille de points (fond subtil) */
.bg-dots {
  background-image: radial-gradient(rgba(29, 78, 121, .10) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Barre supérieure ---------- */
.topbar {
  background: var(--paper-2);
  color: var(--slate);
  font-size: .84rem;
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
}
.topbar__contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__contacts a:hover { color: var(--accent); }
.topbar__tag {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
}
.ico { opacity: .9; }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo {
  width: auto; height: 70px; max-height: 70px;
  object-fit: contain;
  display: block;
}
.brand__logo--footer { height: 76px; max-height: 76px; }
.brand__mark {
  width: auto; height: 42px;
  object-fit: contain;
  display: block;
}
.brand__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.01em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.brand__text small {
  font-family: var(--font);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
  padding: 9px 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav > a:not(.nav__cta):hover { color: var(--accent-600); background: var(--accent-tint); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Héros (clair, premium) ---------- */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.hero__glow--blue   { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle, rgba(29,78,121,.28), transparent 70%); }
.hero__glow--orange { width: 460px; height: 460px; bottom: -200px; left: -120px; background: radial-gradient(circle, rgba(199,123,65,.22), transparent 70%); }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
  padding: clamp(46px, 6.5vw, 80px) 22px clamp(52px, 7vw, 92px);
}
.hero__text .pill { margin-bottom: 22px; }
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.1vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero__lead {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--slate);
  max-width: 560px;
  margin: 0 0 30px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 34px 0 0;
  font-size: .92rem;
  color: var(--ink-2);
}
.hero__badges li { font-weight: 600; position: relative; padding-left: 24px; }
.hero__badges li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--brand-green); font-weight: 700;
}
.hero__figure { position: relative; }
.hero__figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(231,238,245,.7));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero__figure-frame img {
  width: 100%;
  aspect-ratio: 4 / 3.7;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
}
.hero__figure-badge {
  position: absolute;
  left: -18px; bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.hero__figure-k {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--grad-blue);
  color: #fff;
  border-radius: 11px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
}
.hero__figure-stat {
  position: absolute;
  right: -14px; top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  line-height: 1.1;
}
.hero__figure-stat strong {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--accent);
}
.hero__figure-stat span { font-size: .78rem; font-weight: 600; color: var(--slate); }

/* ---------- Bandeau chiffres (clair) ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 40px 22px;
}
.stat {
  text-align: center;
  color: var(--ink);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--brand-blue);
}
.stat__label {
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--slate);
}

/* ---------- Sections génériques ---------- */
.section { padding: clamp(58px, 9vw, 100px) 0; }
.section--muted { background: var(--paper-2); }
.section--dark { background: var(--paper); }
.eyebrow {
  display: block;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--brand-blue);
  margin: 0 0 12px;
}
.eyebrow--accent { color: var(--accent-600); }
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 56px); text-align: center; }
.section__head--light .section__intro { color: var(--slate); }
.section__intro { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* ---------- À propos ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}
.about__badge {
  position: absolute;
  right: -14px; bottom: -18px;
  background: var(--grad-accent);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.about__badge strong { font-family: var(--display); font-size: 1.9rem; letter-spacing: -.01em; }
.about__badge span { font-size: .82rem; font-weight: 600; }
.about__body p { color: var(--slate); margin: 0 0 16px; }
.about__body p strong { color: var(--ink); }
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
  color: var(--ink-2);
}
.ticks li::before {
  content: "✔";
  position: absolute; left: 0; top: 0;
  color: var(--accent-600);
  font-weight: 700;
}

/* ---------- Sections bénéfices (style Nextly) ---------- */
.benefit {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.benefit--reverse .benefit__media { order: 2; }
.benefit__media { position: relative; }
.benefit__media img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.benefit__lead {
  color: var(--slate);
  font-size: 1.05rem;
  margin: 0 0 26px;
}
.benefit__lead strong { color: var(--ink); }
.featurelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.featurelist li { display: flex; gap: 16px; align-items: flex-start; }
.featurelist__ico {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--brand-blue-tint);
  border: 1px solid rgba(29, 78, 121, .12);
  border-radius: 12px;
}
.featurelist__ico--accent { background: var(--accent-tint); border-color: rgba(199,123,65,.16); }
.featurelist h4 {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 4px;
  letter-spacing: -.01em;
}
.featurelist li p { color: var(--slate); margin: 0; font-size: .96rem; }

/* ---------- Cartes services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(29, 78, 121, .18);
}
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.55rem;
  background: var(--brand-blue-tint);
  border: 1px solid rgba(29, 78, 121, .12);
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform .25s ease;
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.05); }
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.card p { color: var(--slate); margin: 0; font-size: .97rem; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(17, 25, 39, .82), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gallery__item figcaption span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .03em;
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Valeurs ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value {
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--paper);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-top-color: var(--accent); }
.value__k {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
}
.value h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -.01em;
  margin: 6px 0 8px;
  color: var(--ink);
}
.value p { color: var(--slate); margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.contact__intro p { color: var(--slate); }
.contact__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.contact__list a:hover { color: var(--accent-600); }
.contact__form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--paper-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 179, 1, .18);
}
.field textarea { resize: vertical; }
.form__note { margin: 12px 0 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form__note.ok { color: #17803d; }
.form__note.err { color: #c0341d; }

/* ---------- Bande tricolore (signature du logo) ---------- */
.tricolor { display: flex; height: 6px; width: 100%; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--brand-blue); }
.tricolor span:nth-child(2) { background: var(--accent); }
.tricolor span:nth-child(3) { background: var(--brand-green); }

/* ---------- Pied de page (clair) ---------- */
.footer { background: var(--paper-2); color: var(--slate); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 22px 40px;
}
.brand--footer .brand__text { color: var(--ink); }
.brand--footer .brand__text small { color: var(--accent-600); }
.footer__about { margin: 18px 0 0; font-size: .95rem; max-width: 320px; }
.footer__col h4 {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: .05em;
  font-size: 1.15rem;
  margin: 0 0 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer__col a:hover { color: var(--accent-600); }
.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px;
  font-size: .84rem;
  color: var(--muted);
}

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 62px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 12px;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 40;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ---------- Projets récents (liste) ---------- */
.projects__head { text-align: center; margin-top: clamp(44px, 6vw, 64px); }
.projects {
  margin-top: clamp(22px, 3vw, 30px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.project {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(29,78,121,.18); }
.project__ico {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  border: 1px solid rgba(199,123,65,.16);
  border-radius: 12px;
  font-size: 1.25rem;
}
.project h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 700;
}
.project p { margin: 0; color: var(--slate); font-size: .9rem; }
.project__loc {
  display: inline-block;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-600);
}

/* ---------- Visionneuse (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(9, 14, 24, .92);
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: min(1000px, 94vw);
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 26px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
}
.lightbox__close:hover { opacity: 1; }

/* ---------- Carrousel ---------- */
.carousel-top { padding: clamp(18px, 2.5vw, 30px) 0 clamp(30px, 5vw, 52px); background: var(--paper); }
.carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.carousel__track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
}
.carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.carousel__slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 28px 24px;
  background: linear-gradient(to top, rgba(16, 43, 68, .88), rgba(16, 43, 68, .1) 70%, transparent);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.carousel__tag {
  align-self: flex-start;
  font-family: var(--font);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #fff;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s, color .2s;
  z-index: 2;
}
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn:hover { background: var(--brand-blue); color: #fff; }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__btn:active { transform: translateY(-50%) scale(.94); }
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}
.carousel__dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .2s, width .2s;
}
.carousel__dot.is-active { width: 28px; background: var(--accent); }
/* Zoom lent (Ken Burns) sur la photo active */
.carousel__slide img { transition: transform .6s ease; }
.carousel__slide.is-active img { animation: kenburns 6s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
/* Barre de progression de l'autoplay */
.carousel__progress {
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.carousel__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-accent);
}
.carousel__progress span.run { animation: carprogress linear forwards; }
@keyframes carprogress { from { width: 0; } to { width: 100%; } }

/* ---------- FAQ (accordéon) ---------- */
.faq { max-width: 820px; }
.faq__list { display: grid; gap: 14px; }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: box-shadow .2s, border-color .2s;
}
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: rgba(29,78,121,.18); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .25s ease, background .2s;
}
.faq__item[open] summary::after { content: "−"; background: var(--accent-tint); color: var(--accent-600); }
.faq__answer { padding: 0 0 20px; color: var(--slate); font-size: .98rem; max-width: 68ch; }

/* ---------- Bandeau CTA ---------- */
.cta-band { padding: clamp(24px, 5vw, 40px) 0; }
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--grad-blue);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px) clamp(28px, 5vw, 60px);
  box-shadow: var(--shadow);
}
.cta::before {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,123,65,.35), transparent 70%);
  pointer-events: none;
}
.cta__text { position: relative; z-index: 1; }
.cta__text h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 8px;
}
.cta__text p { color: #d7e2ee; margin: 0; font-size: 1.02rem; max-width: 46ch; }
.cta__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.btn--white { background: #fff; color: var(--brand-blue); }
.btn--white:hover { background: #eef3f8; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* Variantes directionnelles (sections bénéfices) */
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }

/* ---------- Bande de mots-clés (marquee, fixe en bas) ---------- */
.marquee {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-blue);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 24px -14px rgba(16, 43, 68, .5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* Réserve l'espace en bas pour ne rien masquer sous la bande fixe */
body { padding-bottom: 46px; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  color: #eaf1f8;
}
.marquee__dot { color: var(--accent); font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Entrée du héros ---------- */
.hero__text > * { opacity: 0; animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__text > *:nth-child(1) { animation-delay: .05s; }
.hero__text > *:nth-child(2) { animation-delay: .15s; }
.hero__text > *:nth-child(3) { animation-delay: .25s; }
.hero__text > *:nth-child(4) { animation-delay: .35s; }
.hero__text > *:nth-child(5) { animation-delay: .45s; }
.hero__figure { opacity: 0; animation: heroIn .8s cubic-bezier(.2,.7,.2,1) .3s forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Badges flottants du héros */
.hero__figure-badge { animation: float 5s ease-in-out infinite; }
.hero__figure-stat  { animation: float 5s ease-in-out .8s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Halos du héros en respiration lente */
.hero__glow { animation: glowpulse 9s ease-in-out infinite; }
.hero__glow--orange { animation-delay: 2s; }
@keyframes glowpulse { 0%,100% { opacity: .45; } 50% { opacity: .7; } }

/* Boutons : reflet au survol + relèvement */
.btn { position: relative; overflow: hidden; }
.btn--accent:hover, .btn--white:hover, .btn--outline:hover { transform: translateY(-2px); }
.btn--accent::before {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
}
.btn--accent:hover::before { animation: shine .7s ease; }
@keyframes shine { to { left: 130%; } }

/* Liens de navigation : soulignement animé */
.nav > a:not(.nav__cta) { position: relative; }
.nav > a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav > a:not(.nav__cta):hover::after { transform: scaleX(1); }

/* Survol des tuiles statistiques */
.stat { transition: transform .25s ease; }
.stat:hover { transform: translateY(-6px); }
.stat:hover .stat__num { color: var(--accent); transition: color .25s ease; }

/* ---------- Micro-interactions au survol ---------- */
/* Tous les boutons : léger relèvement + ombre accentuée */
.btn { transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { box-shadow: 0 16px 30px -16px rgba(16, 43, 68, .55); }
.btn--outline:hover, .btn--white:hover, .btn--ghost:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
/* Reflet lumineux aussi sur les boutons blancs */
.btn--white::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(29,78,121,.18), transparent);
  transform: skewX(-18deg);
}
.btn--white:hover::before { animation: shine .7s ease; }

/* CTA principal du menu : pulsation discrète au survol */
.nav__cta:hover { transform: translateY(-2px); }

/* Cartes services : titre qui passe à l'orange + icône colorée */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover h3 { color: var(--accent-600); transition: color .25s ease; }
.card:hover .card__icon { background: var(--grad-blue); color: #fff; border-color: transparent; }

/* Liste bénéfices : icône qui réagit au survol de la ligne */
.featurelist li .featurelist__ico { transition: transform .25s ease, box-shadow .25s ease; }
.featurelist li:hover .featurelist__ico { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow-sm); }

/* Cartes projets : icône qui pivote légèrement */
.project__ico { transition: transform .25s ease; }
.project:hover .project__ico { transform: rotate(-6deg) scale(1.08); }

/* Cartes valeurs : numéro qui grandit */
.value__k { display: inline-block; transition: transform .25s ease, color .2s ease; }
.value:hover .value__k { transform: scale(1.15); color: var(--accent); }

/* Galerie : léger soulèvement en plus du zoom */
.gallery__item { transition: transform .3s ease, box-shadow .3s ease; }
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* FAQ : fond teinté au survol de la question */
.faq__item summary { transition: color .2s ease; border-radius: var(--radius-sm); }
.faq__item:hover summary { color: var(--brand-blue); }
.faq__item summary::after { transition: transform .2s ease, background .2s ease, color .2s ease; }
.faq__item summary:hover::after { transform: scale(1.15); background: var(--accent-tint); color: var(--accent-600); }

/* Liens de contact & pied de page : glissement au survol */
.contact__list a, .footer__col ul a { display: inline-block; transition: transform .2s ease, color .2s ease; }
.contact__list a:hover, .footer__col ul a:hover { transform: translateX(4px); }

/* Champs de formulaire : bordure réactive au survol */
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-blue); }

/* Logo : léger zoom de l'emblème au survol */
.brand__mark, .brand__logo { transition: transform .25s ease; }
.brand:hover .brand__logo { transform: scale(1.04); }

/* Carrousel : flèches et pastilles plus vivantes */
.carousel__btn { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.carousel__btn:hover { transform: translateY(-50%) scale(1.1); box-shadow: var(--shadow); }
.carousel__dot:hover { background: var(--accent); }

/* Cartes de contact / éléments cliquables : curseur cohérent */
.card, .value, .project, .gallery__item { cursor: default; }

/* ---------- Réductions de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .carousel__slide.is-active img,
  .hero__figure-badge, .hero__figure-stat, .hero__glow { animation: none !important; }
  .hero__text > *, .hero__figure { opacity: 1 !important; animation: none !important; }
  .btn--accent:hover::before { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__figure { order: -1; max-width: 560px; }
  .hero__figure-frame img { aspect-ratio: 16 / 10; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin: 0 auto; }
  .benefit { grid-template-columns: 1fr; gap: 30px; }
  .benefit__media { max-width: 560px; }
  .benefit--reverse .benefit__media { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__contacts .topbar__loc { display: none; }
  .nav {
    position: fixed;
    inset: 112px 14px auto 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: 12px 14px; }
  .nav__cta { text-align: center; margin: 6px 0 0; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: auto; grid-row: auto; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__contacts { gap: 14px; }
  .footer__bar-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
}
