/* =========================================================
   TECH-CIA — One page V1
   Charte : logo planche 16 · typo Inter (style Linear)
   ========================================================= */

:root {
  /* Couleurs de marque (valeurs Illustrator) */
  --marine: #01065A;
  --marine-2: #050C78;
  --cyan: #00E3FF;
  --bleu: #085BE0;
  --violet: #515FE4;

  /* Neutres */
  --clair: #F4F6FB;
  --blanc: #FFFFFF;
  --texte: #1C2140;
  --texte-doux: #5B6283;
  --ligne: #E1E5F0;
  --sur-sombre: #C5CAF0;

  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--bleu) 50%, var(--violet) 100%);

  --container: 1280px;
  --gutter: 24px;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--marine);
}
h2 { font-size: clamp(34px, 4.8vw, 58px); margin-bottom: 24px; }
h3 { font-size: 21px; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 16px; }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--white { background: var(--blanc); color: var(--marine); }
.btn--white:hover { box-shadow: 0 10px 30px rgba(0, 227, 255, .25); }
.btn--brand { background: var(--bleu); color: var(--blanc); background-image: linear-gradient(135deg, var(--bleu), var(--violet)); }
.btn--brand:hover { box-shadow: 0 10px 30px rgba(81, 95, 228, .45); }

/* ---------- Labels / surtitres ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.label {
  position: relative; /* repère du grand numéro (stable pendant l'apparition) */
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marine);
  margin-bottom: 22px;
}
/* Grand numéro en dégradé clair, posé derrière le label et le titre */
.split__text, .section__head, .contact__info { position: relative; isolation: isolate; }
.label span {
  position: absolute;
  z-index: -1;
  /* décalé vers la gauche (le texte vient se poser dans le chiffre), sans sortir de l'écran */
  left: max(-0.42em, calc(16px - max(0px, (100vw - var(--container)) / 2) - var(--gutter)));
  top: -0.36em;
  font-family: "Poppins", "Inter", sans-serif; /* chiffres ronds, très gras, « 1 » sans pied */
  font-size: clamp(170px, 21vw, 330px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: proportional-nums; /* « 1 » sans pied */
  background: linear-gradient(160deg, var(--cyan) 0%, var(--bleu) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: .16;
  pointer-events: none;
  user-select: none;
}
.section__head--center .label span { left: 50%; top: -0.29em; transform: translateX(-50%); }
.section { overflow-x: clip; } /* le grand numéro peut déborder à gauche sans créer de scroll horizontal */
@media (max-width: 960px) { .label span { left: -0.12em; font-size: clamp(140px, 38vw, 220px); } }
.label--light { color: var(--cyan); }
.label--light span { opacity: .22; }

/* =========================================================
   HEADER (style Discord : logo à gauche, menu centré, bouton blanc)
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.header.is-scrolled {
  background: rgba(1, 6, 90, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img { height: 30px; width: auto; }
/* Pas de cadre autour du logo au clic / au tap */
.header__logo, .footer__brand a { -webkit-tap-highlight-color: transparent; }
.header__logo:focus, .footer__brand a:focus { outline: none; }
.header__logo:focus-visible img { opacity: .75; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
html { -webkit-tap-highlight-color: transparent; }

.nav { display: flex; gap: 34px; }
.nav a {
  color: var(--blanc);
  font-size: 15px;
  font-weight: 500;
  opacity: .85;
  transition: opacity .2s, color .2s;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:hover { opacity: 1; color: var(--cyan); }
.nav a:hover::after { transform: scaleX(1); }
.nav__phone-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blanc);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.header__phone svg { width: 17px; height: 17px; fill: var(--cyan); }

.burger { display: none; }

/* =========================================================
   HERO (fond dégradé façon Discord)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 110px;
  overflow: hidden;
  color: var(--blanc);
  background:
    linear-gradient(180deg, var(--marine) 0%, var(--marine) 35%, #0A148F 75%, #2A33C8 100%);
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 75% 100%, rgba(81, 95, 228, .75), transparent 70%),
    radial-gradient(45% 40% at 15% 105%, rgba(8, 91, 224, .7), transparent 70%),
    radial-gradient(35% 30% at 85% 15%, rgba(0, 227, 255, .14), transparent 70%);
}
.hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.4px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  color: var(--blanc);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin-bottom: 26px;
}
.hero__lead {
  font-size: 19px;
  color: var(--sur-sombre);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { font-size: 15px; line-height: 1.6; }

.hero__visual { position: relative; }
.frame {
  position: relative;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0, 227, 255, .7), rgba(81, 95, 228, .25) 45%, rgba(255, 255, 255, .08));
  box-shadow: 0 40px 120px -20px rgba(8, 91, 224, .65), 0 0 0 1px rgba(255, 255, 255, .04);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.frame .ph { border-radius: 27px; aspect-ratio: 4 / 4.4; }

/* ---------- Symbole animé du hero ---------- */
.emblem {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  perspective: 1100px;
}
.emblem__float, .emblem__spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.emblem__draw, .emblem__fill { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 1. Tracé lumineux qui construit le « e » */
.emblem__line {
  fill: none;
  stroke: url(#eGrad);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: eDraw 2.2s .3s cubic-bezier(.6, .1, .3, 1) forwards, eLineFade .8s 2.7s ease forwards;
}
.emblem__spark {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: .025 .975;
  stroke-dashoffset: 1.025;
  opacity: 0;
  animation: eSpark 2.2s .3s cubic-bezier(.6, .1, .3, 1) forwards;
}
@keyframes eDraw { to { stroke-dashoffset: 0; } }
@keyframes eLineFade { to { opacity: 0; } }
@keyframes eSpark {
  0% { opacity: 1; stroke-dashoffset: 1.025; }
  92% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: .025; }
}

/* 2. Flash électrique + apparition du logo en couleur */
.emblem__fill {
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(0, 227, 255, .18));
  animation: eFill .9s 2.35s ease-out forwards, eFlicker 7s 6s infinite;
}
@keyframes eFill {
  0% { opacity: 0; filter: brightness(3.2) drop-shadow(0 0 60px rgba(0, 227, 255, 1)); }
  25% { opacity: 1; }
  45% { opacity: .55; }
  60% { opacity: 1; filter: brightness(2) drop-shadow(0 0 50px rgba(0, 227, 255, .9)); }
  100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 18px rgba(0, 227, 255, .18)); }
}
@keyframes eFlicker {
  0%, 90%, 100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 18px rgba(0, 227, 255, .18)); }
  91% { opacity: 1; filter: brightness(1.8) drop-shadow(0 0 55px rgba(0, 227, 255, .9)); }
  92% { opacity: 1; filter: brightness(1) drop-shadow(0 0 18px rgba(0, 227, 255, .18)); }
  93.5% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 45px rgba(0, 227, 255, .8)); }
  95% { opacity: 1; filter: brightness(1) drop-shadow(0 0 18px rgba(0, 227, 255, .18)); }
}
.emblem__flash {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(0, 227, 255, .5) 35%, transparent 70%);
  opacity: 0;
  transform: scale(.3);
  pointer-events: none;
  animation: eFlash .9s 2.35s ease-out forwards;
}
@keyframes eFlash {
  0% { opacity: 0; transform: scale(.3); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.6); }
}

/* 3. Lévitation douce (sans rotation) */
.emblem__float { animation: eFloat 6s 3.3s ease-in-out infinite; }
@keyframes eFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Halo discret */
.emblem__halo {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 91, 224, .22), rgba(81, 95, 228, .08) 45%, transparent 70%);
  opacity: 0;
  animation: eHalo 1.2s 2.4s ease forwards;
}
@keyframes eHalo { to { opacity: 1; } }

/* Ombre portée sous le logo : se resserre quand il monte */
.emblem__floor {
  position: absolute;
  left: 24%; right: 24%; bottom: -9%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 1, 30, .7), rgba(0, 1, 30, .25) 60%, transparent);
  filter: blur(5px);
  opacity: 0;
  animation: eHalo 1s 2.6s ease forwards, eShadow 6s 3.3s ease-in-out infinite;
}
@keyframes eShadow {
  0%, 100% { transform: scale(1); filter: blur(5px); }
  50% { transform: scale(.78); filter: blur(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .emblem__line, .emblem__spark, .emblem__flash { display: none; }
  .emblem__fill, .emblem__halo, .emblem__floor { opacity: 1; animation: none; }
  .emblem__float { animation: none; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   EMPLACEMENTS PHOTO (provisoires)
   ========================================================= */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
}
.ph__label {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 0 20px;
}
.ph__label small { font-weight: 400; opacity: .7; }
.ph--dark {
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(0, 227, 255, .18), transparent 70%),
    radial-gradient(70% 60% at 20% 90%, rgba(81, 95, 228, .35), transparent 70%),
    linear-gradient(160deg, #0A1180, var(--marine));
  color: rgba(255, 255, 255, .6);
}
.ph--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ph__mark { position: relative; width: 38%; max-width: 190px; filter: drop-shadow(0 0 40px rgba(0, 227, 255, .45)); }
.ph--light {
  background: linear-gradient(160deg, #E7EBF6, #D7DDEE);
  color: var(--texte-doux);
}
.ph--tall { aspect-ratio: 4 / 4.6; border-radius: var(--radius); }
.ph--project {
  background: linear-gradient(160deg, #1A2196, #0B1170);
  color: rgba(255, 255, 255, .55);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 130px 0; }
.section--light { background: var(--clair); }
.section--dark { background: var(--marine); color: var(--sur-sombre); overflow: hidden; }
/* Grands titres de section en bleu (sections claires) */
.section h2 { color: var(--bleu); }
.section--dark h2, .section--dark h3 { color: var(--blanc); }

.section__head { max-width: 860px; margin-bottom: 72px; }
.section__head > p:last-child { color: var(--texte-doux); font-size: 20px; line-height: 1.6; margin: 0; }
.section--dark .section__head p:last-child { color: var(--sur-sombre); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.section__head--split > div { max-width: 640px; }

.section__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 90% 0%, rgba(81, 95, 228, .35), transparent 70%),
    radial-gradient(40% 35% at 0% 100%, rgba(8, 91, 224, .3), transparent 70%);
}
.section--dark .container { position: relative; }

/* ---------- L'entreprise ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 80px;
  align-items: center;
}
.split__text h2 { font-size: clamp(34px, 3.8vw, 50px); }
.split__text > p:not(.label) { font-size: 20px; line-height: 1.6; color: var(--texte-doux); max-width: 600px; }
.split__visual { position: relative; }
.split__line {
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 55%;
  height: 4px;
  border-radius: 4px;
  background: var(--grad);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 90px;
}
.stat {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius);
  background: var(--marine);
  color: var(--sur-sombre);
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 95, 228, .55), transparent 65%);
}
.stat strong {
  position: relative;
  display: block;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(120deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.stat > span { position: relative; font-size: 15px; }

/* ---------- Expertises ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  border-radius: var(--radius);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -25px rgba(1, 6, 90, .35);
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media .ph { transition: transform .6s var(--ease); }
.card:hover .card__media .ph { transform: scale(1.05); }
.card__body { padding: 28px 28px 32px; }
.card__num {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.card h3 { position: relative; padding-bottom: 14px; margin-bottom: 14px; }
.card h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transition: width .4s var(--ease);
}
.card:hover h3::after { width: 90px; }
.card p { color: var(--texte-doux); font-size: 16px; margin: 0; }

/* ---------- Expertises : blocs alternés (façon mercury.com) ---------- */
.rows { display: grid; gap: 100px; margin-top: 40px; }
.row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: stretch;
}
.row--reverse .row__media { order: 2; }
.row__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
/* (transition gérée par .reveal-media .ph) */
.row:hover .row__media .ph { transform: scale(1.03); }
.row__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 8px 0;
}
.row__num {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.row h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.012em; line-height: 1.1; max-width: 460px; }
.row__foot {
  position: relative;
  border-top: 1px solid var(--ligne);
  padding: 22px 0 0 22px;
}
.row__foot::before {
  content: "";
  position: absolute;
  left: 0; top: 30px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bleu);
}
.row__foot p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--texte-doux); max-width: 480px; }

/* Apparition des visuels : léger zoom arrière + fondu au scroll */
.reveal-media {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease), transform 1.3s var(--ease-out);
}
.reveal-media.is-visible { opacity: 1; transform: none; }
/* La photo se dévoile de bas en haut avec un léger zoom arrière */
@property --zoom { syntax: "<number>"; inherits: true; initial-value: 1; }
.reveal-media > .ph {
  --zoom: 1.18;
  clip-path: inset(16% 0 0 0 round var(--radius));
  transition: --zoom 1.8s var(--ease-out), clip-path 1.4s var(--ease-out), transform 1.2s var(--ease);
}
.reveal-media.is-visible > .ph { --zoom: 1; clip-path: inset(0 0 0 0 round var(--radius)); }
.photo img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--zoom, 1)); }

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: var(--sur-sombre);
  font-size: 14px;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.filter.is-active { background: var(--blanc); border-color: var(--blanc); color: var(--marine); }

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
}
.project--wide { grid-column: span 2; aspect-ratio: auto; }
.project .ph { position: absolute; inset: 0; justify-content: flex-start; padding-top: 22%; transition: transform .6s var(--ease); }
.project:hover .ph { transform: scale(1.04); }
.project__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 24px 22px;
  background: linear-gradient(0deg, rgba(1, 6, 90, .95), transparent);
}
.project__info h3 { font-size: 18px; margin: 10px 0 4px; }
.project__info p { margin: 0; font-size: 14px; }
.project.is-hidden { display: none; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--marine);
  background: var(--cyan);
}
[data-cat="industrie"] .tag { background: #8FA0FF; }
[data-cat="chantier"] .tag { background: #FFFFFF; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact__info > p:not(.label) { font-size: 18px; color: var(--texte-doux); }

.coords { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.coords li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--blanc);
  border: 1px solid var(--ligne);
}
.coords__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--marine);
}
.coords__ico svg { width: 20px; height: 20px; fill: var(--cyan); }
.coords small { display: block; font-size: 13px; color: var(--texte-doux); }
.coords a, .coords li span:not(.coords__ico) { font-weight: 600; color: var(--marine); }
.coords a:hover { color: var(--bleu); }

.form {
  display: grid;
  gap: 18px;
  padding: 40px;
  border-radius: 24px;
  background: var(--blanc);
  box-shadow: 0 30px 80px -30px rgba(1, 6, 90, .25);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--marine); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ligne);
  background: var(--clair);
  font: inherit;
  font-size: 16px;
  color: var(--texte);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--bleu);
  background: var(--blanc);
  box-shadow: 0 0 0 4px rgba(8, 91, 224, .12);
}
.form .is-invalid { border-color: #E0464B; }
.form__check { display: flex !important; align-items: flex-start; gap: 12px !important; font-weight: 400 !important; color: var(--texte-doux) !important; }
.form__check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--bleu); }
.form__msg { margin: 0; font-size: 15px; font-weight: 500; min-height: 1em; }
.form__msg.is-ok { color: #12865A; }
.form__msg.is-error { color: #E0464B; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--marine); color: var(--sur-sombre); padding: 90px 0 0; font-size: 15px; line-height: 1.45; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 24px; }
.footer__brand p { max-width: 320px; margin: 0; }
.footer h4 { color: var(--cyan); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.footer__grid > div:not(.footer__brand) { display: grid; gap: 6px; align-content: start; line-height: 1.45; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--cyan); }
.footer em { font-style: normal; opacity: .55; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }

/* =========================================================
   ANIMATIONS D'APPARITION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease), transform 1.2s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-media { opacity: 1; transform: none; transition: none; }
  .reveal-media > .ph { --zoom: 1; clip-path: none; transition: none; }
  .scroll-hint span { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .header__phone span { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 26px; }
  .section { padding: 96px 0; }

  /* Menu mobile */
  .burger {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
  }
  .burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header__actions .btn { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, .1); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: rgba(1, 6, 90, .97);
    backdrop-filter: blur(14px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a::after { display: none; }
  .nav__phone-mobile { display: block; color: var(--cyan) !important; border-bottom: 0 !important; }
  .header.menu-open { background: rgba(1, 6, 90, .97); }

  .hero__inner, .split, .contact { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-bottom: 120px; }
  /* Mobile : le symbole animé passe au-dessus du titre, visible dès l'arrivée */
  .hero__inner { gap: 0; }
  .hero__text { display: contents; } /* ses éléments se placent librement autour du symbole */
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 12px); }
  .hero .eyebrow { order: -2; margin-bottom: 0; }
  .hero__visual { order: -1; margin: 40px 0 30px; } /* espace pour le flottement et le halo du symbole */
  .emblem { width: clamp(200px, 62vw, 300px); margin: 0 0 0 -4%; }

  .stats { margin-top: 70px; }
  .rows { gap: 80px; }
  .row { grid-template-columns: 1fr; gap: 32px; }
  .row--reverse .row__media { order: 0; }
  .row__media { aspect-ratio: 4 / 3; }
  .row__text { gap: 28px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero__lead { font-size: 17px; }
  .hero__ctas .btn { width: 100%; }
  .stats, .projects { grid-template-columns: 1fr; }
  .stats { gap: 14px; }
  .project--wide { grid-column: auto; aspect-ratio: 4 / 3.4; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .scroll-hint { display: none; }
}

/* =========================================================
   PHOTOS — série unifiée par un léger voile marine
   ========================================================= */
.photo { background: var(--marine); }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.04);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(1, 6, 90, .08), rgba(1, 6, 90, .28));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.split__visual .photo img { object-position: 59% center; }

/* Parallaxe légère dans les photos (pilotée par main.js via --py) */
.photo[data-parallax] img {
  top: -12%;
  bottom: auto;
  height: 124%;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--zoom, 1));
  will-change: transform;
}
@media (max-width: 960px), (prefers-reduced-motion: reduce) {
  .photo[data-parallax] img { top: 0; height: 100%; transform: scale(var(--zoom, 1)); will-change: auto; }
}
@media (max-width: 960px) { .br-desk { display: none; } }

/* Signature du studio (bas de page) : même couleur que les liens, bleu ciel au survol.
   Le logo est appliqué comme masque : il prend exactement la couleur du texte. */
.credit { display: inline-flex; align-items: baseline; gap: 5px; }
.credit__logo {
  display: inline-block;
  height: 14px;              /* fichier recadré au plus près des lettres : le bas du logo = la ligne du texte */
  aspect-ratio: 725.2 / 142.2;
  margin-bottom: -1px;       /* compense l'arrondi des pixels : bas des lettres pile sur la ligne du texte */
  background-color: currentColor;
  -webkit-mask: url("../img/lemoni-typo-footer.svg") no-repeat center / contain;
          mask: url("../img/lemoni-typo-footer.svg") no-repeat center / contain;
}
/* Survol : le texte ne bouge pas, seul « Lemoni » passe au jaune du studio */
.footer a.credit:hover { color: inherit; }
.credit__logo { transition: background-color .25s; }
.credit:hover .credit__logo, .credit:focus-visible .credit__logo { background-color: #FFFC54; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__check a { color: var(--bleu); text-decoration: underline; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* =========================================================
   PAGES LÉGALES
   ========================================================= */
.page-legale { background: var(--clair); }
.page-legale .header { position: sticky; }
.legal { padding: calc(var(--header-h) + 40px) 0 90px; }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); color: var(--bleu); margin-bottom: 8px; }
.legal__maj { color: var(--texte-doux); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; color: var(--marine); }
.legal p { color: var(--texte); line-height: 1.7; margin: 0 0 12px; }
.legal a { color: var(--bleu); text-decoration: underline; }
.page-legale .footer { padding-top: 0; }
