/* ==========================================================================
   A2P — couche "premium" (chargée après creative.css et a2p.css)
   ========================================================================== */

:root {
  --ink: #0f1115;
  --ink-2: #171a20;
  --ink-3: #22262e;
  --paper: #faf8f5;
  --paper-2: #f1ede7;
  --white: #ffffff;
  --line: rgba(15, 17, 21, .08);
  --line-light: rgba(255, 255, 255, .1);
  --text: #1b1e24;
  --muted: #5a606b;
  --muted-light: rgba(255, 255, 255, .68);
  --accent: #f05f40;
  --accent-strong: #d9472a;
  --accent-deep: #b8361c;
  --accent-soft: rgba(240, 95, 64, .12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, .05), 0 4px 12px rgba(15, 17, 21, .05);
  --shadow: 0 2px 4px rgba(15, 17, 21, .04), 0 12px 32px rgba(15, 17, 21, .08);
  --shadow-lg: 0 8px 16px rgba(15, 17, 21, .06), 0 32px 64px rgba(15, 17, 21, .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  font-weight: 800;
}

a { color: var(--accent-strong); transition: color .25s var(--ease-out); }
a:hover { color: var(--accent-deep); text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

.bg-dark { background-color: var(--ink) !important; }
.bg-primary { background-color: var(--accent-strong) !important; }
.text-primary { color: var(--accent-strong) !important; }
.text-muted { color: var(--muted) !important; }
.text-faded { color: rgba(255, 255, 255, .88); }

/* Titres de section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.bg-dark .eyebrow, .bg-primary .eyebrow { color: var(--accent); }
.bg-primary .eyebrow { color: rgba(255, 255, 255, .9); }

.section-heading {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: .5rem;
}

hr {
  max-width: 56px;
  border: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform-origin: center;
}
hr.light { background: rgba(255, 255, 255, .85); }

/* Découpe des titres (animation mot par mot) */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ---------- Boutons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  border-radius: 999px;
  min-height: 44px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s;
  will-change: transform;
}
.btn-xl { padding: 1.05rem 2.2rem; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border: 0;
  box-shadow: 0 6px 20px -6px rgba(217, 71, 42, .55);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%) !important;
  box-shadow: 0 14px 34px -10px rgba(217, 71, 42, .7) !important;
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35);
}
.btn-light:hover { background: #fff; color: var(--accent-strong); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

.btn-secondary { background: var(--paper-2); color: var(--ink); border: 0; }
.btn-secondary:hover { background: #e6e0d8; color: var(--ink); }

/* ---------- Barre de progression de lecture ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
#mainNav,
#mainNav.navbar-shrink {
  padding: 1.1rem 0;
  border: 0 !important;
  background: transparent;
  font-family: var(--font-display);
  transition: padding .5s var(--ease-out), background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .6s var(--ease-out);
}
#mainNav.navbar-shrink {
  padding: .55rem 0;
  background-color: rgba(15, 17, 21, .78) !important;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line-light), 0 12px 30px -12px rgba(0, 0, 0, .45);
}
#mainNav.nav-hidden { transform: translateY(-110%); }

#mainNav .navbar-brand,
#mainNav.navbar-shrink .navbar-brand {
  color: #fff !important;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .02em;
}
#mainNav .navbar-brand::after { content: "."; color: var(--accent); }

#mainNav .navbar-nav > li.nav-item > a.nav-link,
#mainNav .navbar-nav > li.nav-item > a.nav-link:focus,
#mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link,
#mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:focus {
  position: relative;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
}
#mainNav .navbar-nav > li.nav-item > a.nav-link:hover,
#mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active { color: #fff !important; }

@media (min-width: 992px) {
  #mainNav .navbar-nav > li.nav-item > a.nav-link:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease-out);
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link:hover::after,
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active::after { transform: scaleX(1); transform-origin: left; }
}

#mainNav .nav-link.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.1rem !important;
  border: 1px solid rgba(240, 95, 64, .6);
  border-radius: 999px;
  color: #fff !important;
  transition: background-color .3s, border-color .3s;
}
#mainNav .nav-link.nav-cta:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .45rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: .62rem;
  letter-spacing: .08em;
  vertical-align: 1px;
}
.nav-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.8s var(--ease-out) infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}

#mainNav .dropdown-menu {
  margin-top: .75rem;
  padding: .5rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(23, 26, 32, .96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
#mainNav .dropdown-item {
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .82) !important;
  font-size: .9rem;
  font-weight: 600;
}
#mainNav .dropdown-item:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
#mainNav .dropdown-item:first-child { color: var(--accent) !important; }

#mainNav .navbar-toggler { border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: .5rem .7rem; }

@media (max-width: 991.98px) {
  #mainNav > .container { padding-left: 16px; padding-right: 16px; }
  #mainNav { background-color: rgba(15, 17, 21, .85) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  #mainNav .navbar-collapse { padding: 1rem 0 .5rem; }
  #mainNav .nav-link { padding: .75rem 0 !important; }
  #mainNav .nav-link.nav-cta { display: inline-block; margin: .5rem 0 0; }
  #mainNav .dropdown-menu { background: transparent; border: 0; box-shadow: none; padding-left: 0; }
}

/* ---------- Hero ---------- */
header.masthead {
  --hero-shift: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  min-height: 100svh;
}
header.masthead::before {
  content: "";
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  background: url("../img/header.jpg") center / cover no-repeat;
  transform: translate3d(0, var(--hero-shift), 0) scale(var(--hero-scale, 1.08));
  will-change: transform;
}
header.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(15, 17, 21, .15), rgba(15, 17, 21, .7) 100%),
    linear-gradient(180deg, rgba(15, 17, 21, .55) 0%, rgba(15, 17, 21, .25) 40%, rgba(15, 17, 21, .92) 100%);
}
header.masthead .container { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 4rem; }
/* Logo dans un disque en verre dépoli */
header.masthead .hero-logo {
  width: clamp(150px, 15vw, 196px);
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 70%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .03), 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
header.masthead .hero-logo img { width: 78%; height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
@media (max-height: 720px) and (min-width: 992px) { header.masthead .hero-logo { width: 140px; margin-bottom: 1.25rem; } }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.75rem;
  padding: .45rem 1rem .45rem .5rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
}
.hero-chip, .hero-chip b { white-space: nowrap; }
.hero-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 575.98px) {
  .hero-chip { font-size: .68rem; gap: .45rem; padding-right: .75rem; }
  .hero-chip .chip-long { display: none; }
}
.hero-chip b {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--accent-strong);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

header.masthead h1 {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 800;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
header.masthead h1 strong { font-weight: 800; }
header.masthead h1 .accent { color: var(--accent); }
header.masthead hr { margin: 2rem auto; }
header.masthead p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, .85);
}
header.masthead p strong { font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 1;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scrollCue 2s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}
@media (max-height: 860px) { .scroll-cue { display: none; } }

/* État initial du hero avant l'animation d'entrée */
.anim-ready header.masthead .hero-el, .anim-ready .fab-contact { opacity: 0; }

/* ---------- Bande de chiffres ---------- */
.stats-band {
  padding: 0;
  background: var(--ink);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.stat {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line-light);
}
.stat:last-child { border-right: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat-value sup { font-size: .5em; top: -.8em; color: var(--accent); }
.stat-label {
  display: block;
  margin-top: .6rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
@media (max-width: 767.98px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
}

/* ---------- Section BFM ---------- */
#presse { padding: clamp(4rem, 7vw, 6rem) 0 !important; background: var(--ink-2) !important; }
#presse .row { align-items: center; }
#presse .bfm { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 0; }
#presse .bfm__image { float: none; margin: 0; width: 64px; border-radius: 10px; }
#presse .bfm__text { display: block; font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.35; letter-spacing: -.01em; }
#presse .bfm__text b { font-weight: 800; }
#presse .bfm-copy { color: rgba(255, 255, 255, .72); font-size: .97rem; }
#presse .bfm-copy a { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; color: var(--accent); }
#presse .bfm-copy a::after { content: "→"; transition: transform .4s var(--ease-out); }
#presse .bfm-copy a:hover::after { transform: translateX(5px); }
#presse .col-media { margin-top: 2rem; }
@media (min-width: 992px) { #presse .col-media { margin-top: 0; } }

.bfm-video-card { border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); aspect-ratio: 16 / 10; min-height: 0; }
.bfm-video-card__img { min-height: 0; transform: scale(1.12); will-change: transform; transition: filter .6s var(--ease-out); }
.bfm-video-card:hover .bfm-video-card__img { filter: brightness(1.08); }
.bfm-video-card__play {
  width: 84px; height: 84px; line-height: 84px;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0 rgba(240, 95, 64, .6);
  animation: playPulse 2.4s var(--ease-out) infinite;
}
.bfm-video-card:hover .bfm-video-card__play { background: var(--accent); }
@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 95, 64, .55); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(240, 95, 64, 0); }
}
.bfm-video-card__label { padding: 1.25rem 1.5rem; font-family: var(--font-display); font-size: .95rem; }

/* ---------- Métiers (cercles) ---------- */
#metiers { padding: clamp(3rem, 6vw, 5rem) 1rem !important; background: var(--paper); }
#metiers .row { justify-content: center; row-gap: 1.5rem; margin: 0; }
#metiers .col { flex: 0 0 20%; max-width: 20%; }
.metier-circle {
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.metier-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .9);
  pointer-events: none;
}
.metier-circle img { transition: transform 1s var(--ease-out); }
.metier-circle:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.metier-circle:hover img { transform: scale(1.08); }
@media (max-width: 767.98px) {
  #metiers .col { flex: 0 0 33.333%; max-width: 33.333%; }
  .metier-circle { width: 26vw; height: 26vw; }
}

/* ---------- À propos ---------- */
#about {
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 255, 255, .12), transparent 60%),
              linear-gradient(160deg, var(--accent-strong) 0%, var(--accent-deep) 100%) !important;
  overflow: hidden;
}
#about::before {
  content: "A2P";
  position: absolute;
  right: -2vw;
  bottom: -6vw;
  font-family: var(--font-display);
  font-size: 28vw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
}
#about .container { position: relative; }
#about .text-faded { font-size: 1.1rem; line-height: 1.8; }
.team-member img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .95), 0 24px 50px -16px rgba(0, 0, 0, .5);
  transition: transform .7s var(--ease-out);
}
.team-member:hover img { transform: translateY(-6px) scale(1.03); }
.team-member h4, #about h4 { color: #fff; font-size: 1.25rem; margin-top: 1.5rem; }
#about p.text-white { color: rgba(255, 255, 255, .85) !important; font-size: .9rem; letter-spacing: .02em; }

ul.social-buttons { padding: 0; }
ul.social-buttons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  line-height: 1;
  font-size: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .3s, transform .5s var(--ease-out);
}
ul.social-buttons li a:hover, ul.social-buttons li a:focus { background: var(--accent-strong); transform: translateY(-3px); }
#about ul.social-buttons li a:hover { background: var(--ink); }

/* ---------- Services ---------- */
#services { background: var(--paper); }
#services .row > [class*="col-"]:has(> .service-box) { display: flex; }
.service-box {
  --mx: 50%; --my: 0%;
  position: relative;
  width: 100%;
  max-width: none;
  padding: 2.5rem 2rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out), border-color .4s;
}
.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(240, 95, 64, .08), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.service-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(240, 95, 64, .25); }
.service-box:hover::before { opacity: 1; }
.service-box > i.fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  font-size: 1.6rem;
  border-radius: 18px;
  background: var(--accent-soft);
  transition: transform .7s var(--ease-out), background-color .4s, color .4s;
}
.service-box:hover > i.fa { transform: rotate(-6deg) scale(1.06); background: var(--accent-strong); color: #fff !important; }
.service-box h3 { font-size: 1.4rem; margin-top: .5rem; }
.service-box p { font-size: .95rem; line-height: 1.75; text-align: left !important; }

.values-line {
  margin: 4rem auto 0;
  max-width: 880px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
}
.values-line em { font-style: normal; color: var(--accent-strong); }

/* ---------- Réalisations ---------- */
#portfolio { background: var(--ink); }
#portfolio .row.popup-gallery { gap: 0; }
.portfolio-box { max-width: none; overflow: hidden; background: var(--ink-2); }
.portfolio-box img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s var(--ease-out); }
.portfolio-box:hover img { transform: scale(1.07); filter: brightness(.8); }
.portfolio-box .portfolio-box-caption {
  opacity: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 17, 21, .92) 100%);
  transition: background .6s var(--ease-out);
}
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content {
  top: auto;
  bottom: 0;
  padding: 1.5rem 1.75rem;
  text-align: left;
  transform: translateY(0);
}
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name { padding: 0; font-family: var(--font-display); }
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
  display: inline-block;
  margin-bottom: .5rem;
  font-size: .68rem !important;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent) !important;
}
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
  font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
  font-weight: 700;
  line-height: 1.35;
  transform: translateY(0);
  transition: transform .6s var(--ease-out);
}
@media (hover: hover) {
  .portfolio-box .portfolio-box-caption-content { transform: translateY(12px) !important; opacity: .85; transition: transform .6s var(--ease-out), opacity .6s; }
  .portfolio-box:hover .portfolio-box-caption-content { transform: translateY(0) !important; opacity: 1; }
}
.portfolio-box::after {
  content: "+";
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  transform: scale(0) rotate(-90deg);
  transition: transform .6s var(--ease-out);
}
.portfolio-box:hover::after { transform: scale(1) rotate(0); }

/* Magnific popup */
.mfp-bg { background: var(--ink); opacity: .94; }
.mfp-figure::after { box-shadow: none; background: transparent; }
.mfp-img { border-radius: 12px; }
.mfp-fade.mfp-bg, .mfp-fade.mfp-wrap .mfp-content { transition: opacity .35s var(--ease-out); }

/* ---------- Appel à l'action ---------- */
#cta {
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 70% at 85% 20%, rgba(240, 95, 64, .22), transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(240, 95, 64, .12), transparent 60%),
    var(--ink) !important;
}
#cta h3 { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.3; font-weight: 800; }
#cta h3 p { margin-bottom: .75rem; }
#cta h3 p:not(:first-child) { font-family: var(--font-body); font-size: .55em; font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted-light); }
#cta .btn { margin-top: 1.5rem; }

/* ---------- Partenaires (défilement continu) ---------- */
#fournisseurs { padding: clamp(3.5rem, 6vw, 5rem) 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#fournisseurs .eyebrow { display: flex; justify-content: center; margin-bottom: 2.25rem; }
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: clamp(44px, 6vw, 64px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  mix-blend-mode: multiply;
  transition: filter .5s, opacity .5s, transform .5s var(--ease-out);
}
.logo-track img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(1.25rem, 2.5vw, 2.5rem))); } }

/* ---------- Recrutement ---------- */
#recrutement {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(240, 95, 64, .14), transparent 70%),
    var(--ink) !important;
}
#recrutement .section-heading { color: #fff; }
#recrutement p.mb-5 { color: var(--muted-light); font-size: 1.05rem; }
#recrutement .portfolio-item { margin-bottom: 2rem; }
#recrutement .portfolio-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
#recrutement .portfolio-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease-out); }
#recrutement .portfolio-link:hover img { transform: scale(1.06); }
#recrutement .portfolio-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 21, .45);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
#recrutement .portfolio-link:hover .portfolio-hover, #recrutement .portfolio-link:focus-visible .portfolio-hover { opacity: 1; }
#recrutement .portfolio-hover-content i {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-size: 1.4rem;
  transform: scale(.6);
  transition: transform .6s var(--ease-out);
}
#recrutement .portfolio-link:hover .portfolio-hover-content i { transform: scale(1); }
#recrutement .portfolio-caption {
  padding: 1.5rem 1.75rem;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
#recrutement .portfolio-caption h4 { margin: 0 0 .35rem; font-size: 1.15rem; color: #fff; }
#recrutement .portfolio-caption p { margin: 0; color: var(--muted-light) !important; font-size: .9rem; }
#recrutement .portfolio-caption p::before { content: "\f041"; font-family: FontAwesome; margin-right: .5rem; color: var(--accent); }

/* Modales Bootstrap (offres) */
.modal { background-color: rgba(15, 17, 21, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.fade .modal-dialog { transform: translateY(30px) scale(.98); transition: transform .5s var(--ease-out); }
.modal.show .modal-dialog { transform: none; }
.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.modal-title { font-weight: 800; }
.modal-body { padding: 1.5rem 2rem; line-height: 1.75; font-size: .95rem; }
.modal-body img { width: 100%; margin-top: 1.5rem; border-radius: var(--radius); }
.modal-footer { padding: 1rem 2rem; border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
#contact { background: var(--paper); }
#contact .row:last-child { row-gap: 1.5rem; }
#contact .row:last-child > [class*="col-"] { margin: 0; }
#contact .contact-card {
  height: 100%;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
#contact .contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
#contact .contact-card > i.fa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  font-size: 1.5rem !important;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
#contact .contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
#contact .contact-card a { font-weight: 600; word-break: break-word; }
#contact iframe { width: 100%; height: 180px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
footer.page-footer { margin-top: 0 !important; padding-top: 4rem !important; background: var(--ink) !important; text-align: left; font-size: .92rem; }
footer.page-footer h5 { margin-bottom: 1.25rem; font-size: .75rem; letter-spacing: .16em; color: #fff; }
footer.page-footer li { margin-bottom: .6rem; color: var(--muted-light); }
footer.page-footer a { color: var(--muted-light); }
footer.page-footer a:hover { color: #fff; }
footer.page-footer ul.social-buttons { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
footer.page-footer ul.social-buttons li { margin: 0; }
footer.page-footer ul.social-buttons center { display: inline; }
footer.page-footer .footer-copyright { margin-top: 2.5rem; border-top: 1px solid var(--line-light); color: var(--muted-light); font-size: .85rem; }

/* ---------- Bouton flottant "Nous écrire" ---------- */
.fab-contact {
  position: fixed;
  left: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding: .45rem 1.3rem .45rem .45rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(15, 17, 21, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s;
}
.fab-contact:hover { transform: translateY(-3px); background: var(--ink); box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .6); }
.fab-contact__icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 1rem;
}
.fab-contact__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fabRing 2.6s var(--ease-out) infinite;
}
@keyframes fabRing {
  0% { box-shadow: 0 0 0 0 rgba(240, 95, 64, .55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(240, 95, 64, 0); }
}
@media (max-width: 575.98px) {
  .fab-contact { padding-right: .45rem; }
  .fab-contact__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Formulaire de contact (modale maison) ---------- */
#formulaire-contact { padding: 1rem; }
#formulaire-contact .formulaire-content {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 6vh auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn .6s var(--ease-out) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
#formulaire-contact .closeFormulaire {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s, transform .5s var(--ease-out);
}
#formulaire-contact .closeFormulaire:hover { background: var(--accent-strong); color: #fff; transform: rotate(90deg); }
#regForm { margin: 0; padding: 2.5rem; min-width: 0; }
#regForm h1 { margin-bottom: .35rem; font-size: 1.9rem; }
#regForm .form-intro { margin-bottom: 1.75rem; color: var(--muted); font-size: .95rem; }
#regForm .field { margin-bottom: 1rem; }
#regForm label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 600; color: var(--text); }
#regForm .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575.98px) { #regForm { padding: 2rem 1.5rem; } #regForm .field-row { grid-template-columns: 1fr; gap: 0; } }
#regForm input, #regForm textarea {
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
#regForm input:focus, #regForm textarea:focus { outline: 0; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#regForm .btn { padding: .9rem 2rem; }
#regForm input[aria-invalid="true"], #regForm textarea[aria-invalid="true"] { background: #fff5f3; border-color: #c0392b; }
#regForm input[aria-invalid="true"]:focus, #regForm textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .15); }
#regForm .field-error { margin-top: .35rem; font-size: .8rem; font-weight: 500; color: #b03a2e; }
#regForm .field-error:empty { display: none; }

/* ---------- Popup vidéo d'accueil ---------- */
.overlay { background: rgba(15, 17, 21, .82) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .5s var(--ease-out) both; transition: opacity .35s var(--ease-out); }
.overlay .videoBox { padding: 0 !important; background: #000 !important; border-radius: var(--radius-lg) !important; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7); animation: videoIn .7s var(--ease-out) .1s both; }
.overlay .videoBox video { display: block; border-radius: var(--radius-lg); }
.overlay.is-closing { opacity: 0; }
.overlay.is-closing .videoBox { transform: translate(-50%, -48%) scale(.96); transition: transform .35s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes videoIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } }

/* ---------- Pages secondaires : bandeau ---------- */
header.page-hero {
  --hero-shift: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(8rem, 16vw, 11rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: var(--ink);
  color: #fff;
}
header.page-hero::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  background: url("../img/header.jpg") center / cover no-repeat;
  transform: translate3d(0, var(--hero-shift), 0) scale(var(--hero-scale, 1.05));
  will-change: transform;
}
header.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 80% at 90% 10%, rgba(240, 95, 64, .25), transparent 60%),
    linear-gradient(180deg, rgba(15, 17, 21, .7) 0%, rgba(15, 17, 21, .92) 100%);
}
header.page-hero h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; }
header.page-hero .page-lead { max-width: 640px; margin: 1.25rem 0 0; color: var(--muted-light); font-size: 1.05rem; }
.breadcrumb-a2p { display: flex; gap: .6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .82rem; color: var(--muted-light); }
.breadcrumb-a2p li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.breadcrumb-a2p a { color: #fff; }
.breadcrumb-a2p a:hover { color: var(--accent); }
.anim-ready header.page-hero .hero-el { opacity: 0; }

/* ---------- Mentions légales ---------- */
.legal-page { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.legal-toc {
  position: sticky;
  top: 96px;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.legal-toc .eyebrow { margin-bottom: .75rem; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  position: relative;
  display: flex;
  gap: .75rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .3s, color .3s;
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: .75rem; color: rgba(15, 17, 21, .3); padding-top: .1rem; transition: color .3s; }
.legal-toc a:hover { background: var(--paper); color: var(--ink); }
.legal-toc a.active { background: var(--accent-soft); color: var(--accent-deep); }
.legal-toc a.active::before { color: var(--accent-strong); }

.legal-content { display: grid; gap: 1.25rem; }
.legal-block {
  scroll-margin-top: 96px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.legal-block h2 {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.legal-block h2 .fa {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.05rem;
}
.legal-block p { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; line-height: 1.8; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { font-weight: 600; }
.legal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; margin: 0; }
.legal-facts div { padding: .9rem 1.1rem; background: var(--paper); border-radius: var(--radius-sm); }
.legal-facts dt { margin-bottom: .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.legal-facts dd { margin: 0; color: var(--text); font-weight: 500; font-size: .95rem; }
@media (max-width: 991.98px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Toasts */
.toast { border-radius: 14px; font-family: var(--font-body); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-track [aria-hidden="true"] { display: none; }
  .anim-ready header.masthead .hero-el, .anim-ready header.page-hero .hero-el, .anim-ready .fab-contact { opacity: 1; }
}
