:root {
  --p: #1394A6;
  --pd: #0d7a8a;
  --pl: #e8f6f8;
  --dark: #0c1a0e;
  --white: #ffffff;
  --bg: #f8fafb;
  --txt: #1a1a2e;
  --mut: #6b7280;
  --bdr: #e5e7eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px; overflow-x: hidden; background: var(--white); color: var(--txt);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: min(1200px, calc(100% - 6rem)); margin: 0 auto; }

/* Navigation identique au portfolio */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; transition: background .35s, backdrop-filter .35s;
}
.site-nav.scrolled { background: rgba(12,26,14,.92); backdrop-filter: blur(16px); }
.site-nav-inner {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.site-brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 50%; background: var(--p); color: #fff; font-size: 13px; font-weight: 700;
}
.site-nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.site-nav-links a {
  color: rgba(255,255,255,.6); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: color .2s;
}
.site-nav-links a:hover, .site-nav-links a.active { color: var(--p); }
.site-nav-cta {
  padding: .5rem 1.25rem; border-radius: 999px; background: var(--p); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s;
}
.site-nav-cta:hover { background: var(--pd); transform: translateY(-1px); }

/* Hero */
.page-hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; padding: 9rem 0 6rem; color: #fff;
  background:
    radial-gradient(circle at 78% 34%, rgba(19,148,166,.22), transparent 18%),
    radial-gradient(ellipse 80% 60% at 50% 0%, #173a24 0%, #0c1a0e 62%);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .24;
  background-image:
    linear-gradient(rgba(142,215,207,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,215,207,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000 100%);
}
.page-hero::after {
  content: ''; position: absolute; right: -8%; bottom: -34%; width: 620px; height: 620px;
  border: 1px solid rgba(142,215,207,.12); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(118,199,190,.025), 0 0 0 140px rgba(118,199,190,.018);
}
.page-hero .shell { position: relative; z-index: 2; }
.eyebrow {
  margin-bottom: 1.2rem; color: var(--p); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.page-hero h1 {
  max-width: 1020px; color: #fff; font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 900; line-height: .9; letter-spacing: -.06em;
}
.page-hero h1 span { color: var(--p); }
.page-lead {
  max-width: 720px; margin-top: 2rem; color: rgba(255,255,255,.62);
  font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.button {
  display: inline-flex; align-items: center; gap: .6rem; padding: .78rem 1.15rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: rgba(255,255,255,.05); color: #fff; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: transform .2s, background .2s;
}
.button.primary { border-color: var(--p); background: var(--p); }
.button:hover { transform: translateY(-2px); background: var(--pd); }

/* Murmuration numérique : tech, alignement et vivant */
.home-hero .shell { z-index: 3; }
.home-hero h1 { max-width: 790px; }
.home-hero .page-lead { max-width: 620px; }
.hero-ecosystem {
  position: absolute; z-index: 2; right: 1.5%; top: 50%; width: min(49vw, 690px);
  height: min(76vh, 720px); transform: translateY(-47%); pointer-events: none;
  mask-image: radial-gradient(ellipse, #000 44%, rgba(0,0,0,.88) 66%, transparent 88%);
}
.hero-ecosystem::before {
  content: ''; position: absolute; inset: 12%; border: 1px solid rgba(142,215,207,.11);
  border-radius: 50%; box-shadow: 0 0 0 48px rgba(118,199,190,.025), 0 0 0 96px rgba(118,199,190,.018);
}
#heroEcosystem { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-wildlife {
  position: absolute; z-index: 2; right: -1%; bottom: 2%; width: 92%; height: auto;
  opacity: .82; filter: drop-shadow(0 16px 22px rgba(3,15,8,.18));
  transform-origin: 50% 100%; animation: wildlifeBreath 6.5s ease-in-out infinite;
}
.hero-owl {
  position: absolute; z-index: 2; right: 8%; top: 8%; width: 13%;
  transform-origin: 50% 88%; animation: owlPerch 8s ease-in-out infinite;
}
.hero-owl img { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.owl-eye {
  position: absolute; z-index: 1; top: 12.6%; width: 9.2%; aspect-ratio: 1;
  border-radius: 50%; background: #baffd7;
  box-shadow: 0 0 6px #baffd7, 0 0 15px rgba(142,215,207,.92), 0 0 28px rgba(19,148,166,.54);
  transform-origin: 50% 50%; animation: owlBlink 7.4s ease-in-out infinite;
}
.owl-eye-left { left: 33.8%; }
.owl-eye-right { left: 57%; }
.eco-orbit {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 54%; aspect-ratio: 1;
  transform: translate(-50%,-50%); border: 1px dashed rgba(142,215,207,.2);
  border-radius: 50%; animation: ecoOrbit 28s linear infinite;
}
.eco-orbit::before, .eco-orbit::after {
  content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #8ed7cf; box-shadow: 0 0 14px rgba(142,215,207,.7);
}
.eco-orbit::before { left: 9%; top: 19%; }
.eco-orbit::after { right: 8%; bottom: 20%; width: 5px; height: 5px; }
.eco-word-orbit {
  position: absolute; z-index: 4; left: 20%; top: 20%; width: 60%; height: 60%;
  animation: ecoWordOrbit 24s linear infinite;
}
.eco-word-orbit > span {
  position: absolute; right: -1.5rem; top: 50%; padding: .35rem .6rem;
  transform: translateY(-50%); border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px; background: rgba(12,26,14,.72); color: #8ed7cf;
  backdrop-filter: blur(8px); font-size: 8px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; animation: ecoWordCounter 24s linear infinite;
}
.eco-word-two, .eco-word-two > span { animation-delay: -8s; }
.eco-word-three, .eco-word-three > span { animation-delay: -16s; }
.eco-word-two > span { color: rgba(255,255,255,.72); }
.eco-word-three > span { color: #b9dfc8; }
@keyframes ecoOrbit { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes ecoWordOrbit { to { transform: rotate(360deg); } }
@keyframes ecoWordCounter { to { transform: translateY(-50%) rotate(-360deg); } }
@keyframes wildlifeBreath {
  0%, 100% { transform: translate3d(0,0,0) scaleY(1); }
  45% { transform: translate3d(0,-3px,0) scaleY(1.004); }
  70% { transform: translate3d(2px,-1px,0) scaleY(1.002); }
}
@keyframes owlPerch {
  0%, 100% { transform: rotate(-.5deg) translateY(0); }
  50% { transform: rotate(.7deg) translateY(-2px); }
}
@keyframes owlBlink {
  0%, 41%, 44%, 78%, 81%, 100% { transform: scaleY(1); opacity: 1; }
  42.5%, 79.5% { transform: scaleY(.08); opacity: .72; }
}

/* Logos */
.trust { overflow: hidden; padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--bdr); background: #fff; }
.trust-title { margin-bottom: 1.4rem; text-align: center; color: var(--mut); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.trust-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust-track { display: flex; align-items: center; width: max-content; animation: marquee 20s linear infinite; }
.trust-set { display: flex; align-items: center; gap: 5rem; padding-right: 5rem; }
.trust-logo { display: grid; place-items: center; width: 190px; height: 58px; filter: grayscale(1); opacity: .58; transition: filter .2s, opacity .2s; }
.trust-logo:hover { filter: none; opacity: 1; }
.trust-logo img { display: block; max-width: 100%; max-height: 46px; object-fit: contain; }
.trust-logo.vanlife img { max-height: 50px; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--p); opacity: .26; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections et titres */
.section { padding: 7rem 0; }
.section.white { background: var(--bg); }
.section.dark { background: var(--dark); color: #fff; }
.section-head { position: relative; margin-bottom: 4.5rem; padding-left: 0; }
.section-label {
  margin-bottom: .9rem; color: var(--p); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.dark .section-label { color: rgba(19,148,166,.9); }
.section h2 {
  max-width: 850px; color: var(--txt); font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.035em;
}
.dark .section-head h2 { color: #fff; }

/* À propos */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.prose p { margin-bottom: 1.5rem; color: var(--mut); font-size: 1.05rem; line-height: 1.85; }
.prose strong { color: var(--txt); font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tag {
  padding: .35rem .85rem; border: 1px solid rgba(19,148,166,.18); border-radius: 999px;
  background: var(--pl); color: var(--p); font-size: 12px; font-weight: 500;
}
.about-portrait {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 20px; background: var(--pl);
  box-shadow: 0 24px 60px rgba(12,26,14,.12);
}
.about-portrait img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
}
.about-portrait::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, transparent 58%, rgba(12,26,14,.12));
}
.living-card {
  position: relative; overflow: hidden; min-height: 490px; padding: 2rem;
  border-radius: 20px; background: linear-gradient(145deg, #0c1a0e, #174b3c);
  color: #fff; box-shadow: 0 24px 60px rgba(12,26,14,.12);
}
.living-card::before {
  content: ''; position: absolute; width: 320px; height: 320px; right: -100px; top: -100px;
  border: 1px solid rgba(142,215,207,.2); border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(118,199,190,.04), 0 0 0 96px rgba(118,199,190,.025);
}
.living-card small { position: relative; color: #8ed7cf; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.living-card blockquote { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; font-size: 1.45rem; line-height: 1.45; letter-spacing: -.02em; }

/* Expériences */
.experience-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: 5rem; margin-bottom: 4rem; }
.experience-intro p:last-child { color: rgba(255,255,255,.72); font-size: .95rem; line-height: 1.65; }
.experience-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.1);
}
.experience-card {
  min-height: 210px; padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .25s;
}
.experience-card:hover { background: rgba(19,148,166,.08); }
.experience-date { margin-bottom: 1.5rem; color: #76c7be; font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: .1em; }
.experience-card h3 { margin-bottom: .35rem; color: #fff; font-size: .9rem; line-height: 1.4; }
.experience-place { margin-bottom: .7rem; color: rgba(255,255,255,.48); font-size: 10.5px; }
.experience-desc { color: rgba(255,255,255,.62); font-size: 10.5px; line-height: 1.6; }

/* Formations */
.formation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.formation-card {
  min-height: 250px; display: flex; flex-direction: column; padding: 1.75rem;
  border: 1px solid var(--bdr); border-radius: 14px; background: #fff;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.formation-card:hover { transform: translateY(-4px); border-color: rgba(19,148,166,.35); box-shadow: 0 18px 45px rgba(12,26,14,.07); }
.formation-year { margin-bottom: 2.25rem; color: var(--p); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.formation-card h3 { margin-bottom: .65rem; font-size: 1.15rem; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.formation-school { color: var(--mut); font-size: 13px; line-height: 1.6; }
.formation-status { margin-top: auto; padding-top: 1.75rem; color: #9ca3af; font-size: 11px; font-style: italic; }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-card {
  display: flex; min-height: 320px; flex-direction: column; padding: 1.75rem;
  border: 1px solid var(--bdr); border-radius: 18px; background: #fff;
  transition: transform .28s, box-shadow .28s;
}
.article-card:hover { transform: translateY(-7px); box-shadow: 0 24px 48px rgba(0,0,0,.09); }
.article-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--p); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.article-card h3 { margin: 3.5rem 0 .8rem; color: var(--txt); font-size: 1.15rem; line-height: 1.4; }
.article-card p { color: var(--mut); font-size: 13px; line-height: 1.65; }
.article-card .soon { margin-top: auto; padding-top: 1.4rem; color: #9ca3af; font-size: 11px; font-style: italic; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  display: flex; min-height: 420px; flex-direction: column; padding: 1.75rem;
  border: 1px solid var(--bdr); border-radius: 18px; background: #fff;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(19,148,166,.28); box-shadow: 0 24px 48px rgba(0,0,0,.09); }
.service-number { margin-bottom: 3.5rem; color: var(--p); font-family: 'Courier New', monospace; font-size: 11px; font-weight: 700; }
.service-card h2 { margin-bottom: .8rem; color: var(--txt); font-size: 1.35rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.service-card > p { color: var(--mut); font-size: 13px; line-height: 1.65; }
.deliverables { margin-top: auto; padding-top: 1.5rem; list-style: none; }
.deliverables li { position: relative; padding: .56rem 0 .56rem 1rem; border-top: 1px solid var(--bdr); color: var(--mut); font-size: 11.5px; }
.deliverables li::before { content: ''; position: absolute; left: 0; top: .9rem; width: 5px; height: 5px; border-radius: 50%; background: var(--p); }
.service-pages-section { color:#fff; background:#07110b; }
.service-pages-section .section-label { color:#76c7be; }
.service-pages-section .section-head h2 { color:#fff; }
.service-pages-lead { max-width:650px; margin-top:1rem; color:rgba(255,255,255,.55); font-size:13px; line-height:1.65; }
.service-page-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; }
.service-page-card {
  position:relative; isolation:isolate; display:flex; min-height:460px; flex-direction:column; overflow:hidden;
  padding:2rem; border:1px solid rgba(255,255,255,.1); border-radius:22px; color:#fff; text-decoration:none;
  background:radial-gradient(circle at 80% 12%,rgba(53,200,214,.18),transparent 38%),#0b1a16;
  transition:transform .28s,border-color .28s,box-shadow .28s;
}
.service-page-card::before { content:''; position:absolute; z-index:-1; inset:0; opacity:.42; background-image:linear-gradient(rgba(143,218,213,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(143,218,213,.08) 1px,transparent 1px); background-size:34px 34px; mask-image:radial-gradient(circle at 80% 20%,#000,transparent 65%); }
.service-page-card.local { background:radial-gradient(circle at 80% 12%,rgba(65,221,177,.2),transparent 38%),#0b1a16; }
.service-page-card.website { background:radial-gradient(circle at 80% 12%,rgba(169,144,255,.22),transparent 38%),#0b1320; }
.service-page-card.automation { background:radial-gradient(circle at 80% 12%,rgba(77,205,255,.22),transparent 38%),#091820; }
.service-page-card:hover { transform:translateY(-8px); border-color:rgba(118,199,190,.45); box-shadow:0 28px 65px rgba(0,0,0,.25); }
.service-page-index { color:#76c7be; font-family:'JetBrains Mono',monospace; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.service-page-card.website .service-page-index { color:#b8a2ff; }
.service-page-card.automation .service-page-index { color:#73d4ff; }
.service-page-card h3 { margin-top:5rem; font-size:clamp(1.65rem,2.4vw,2.25rem); line-height:1.04; letter-spacing:-.045em; }
.service-page-card p { margin-top:1rem; color:rgba(255,255,255,.57); font-size:13px; line-height:1.65; }
.service-page-card strong { margin-top:auto; padding-top:2rem; color:#fff; font-size:12px; }
.method-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.1);
}
.method-step {
  min-height: 220px; padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1);
}
.method-step small { color: #76c7be; font-family: 'Courier New', monospace; font-size: 10px; }
.method-step h3 { margin: 2rem 0 .65rem; color: #fff; font-size: .95rem; }
.method-step p { color: rgba(255,255,255,.62); font-size: 11.5px; line-height: 1.65; }

/* Footer “Travaillons ensemble” */
.work-footer { padding: 7rem 3rem 1.75rem; background: var(--p); color: #fff; text-align: center; }
.work-footer .eyebrow { color: rgba(255,255,255,.58); }
.work-footer h2 { margin: 0 auto 1rem; max-width: 850px; color: #fff; font-size: clamp(2rem, 4.5vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.work-footer-copy { margin-bottom: 2.4rem; color: rgba(255,255,255,.72); font-size: 13px; }
.work-footer-email {
  display: inline-flex; padding-bottom: .25rem; border-bottom: 2px solid rgba(255,255,255,.3);
  color: #fff; font-size: clamp(1.1rem, 2.5vw, 1.75rem); font-weight: 700;
  text-decoration: none; transition: border-color .2s;
}
.work-footer-email:hover { border-color: #fff; }
.copyright { margin: 5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.45); font-size: 10px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .shell { width: min(100% - 4rem, 1200px); }
  .site-nav-links { gap: 1.2rem; }
  .site-nav-cta { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .living-card { min-height: 350px; }
  .experience-grid { grid-template-columns: 1fr 1fr; }
  .formation-grid, .article-grid, .service-grid, .service-page-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .hero-ecosystem { right: -12%; width: 68vw; opacity: .58; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 3rem, 1200px); }
  .site-nav-inner { min-height: 68px; }
  .site-brand { display: none; }
  .site-nav-links { width: 100%; justify-content: space-between; gap: .5rem; }
  .site-nav-links a { font-size: 10px; letter-spacing: .07em; }
  .page-hero { min-height: 82vh; padding: 7rem 0 4rem; }
  .home-hero h1 { max-width: 100%; }
  .hero-ecosystem { inset: 10% -34% 0 auto; width: 112vw; height: 78%; opacity: .34; transform: none; }
  .eco-word-orbit { display: none; }
  .section { padding: 5rem 0; }
  .section-head { margin-bottom: 3rem; }
  .experience-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .experience-grid, .method-grid { grid-template-columns: 1fr; }
  .experience-card, .formation-card { min-height: 0; }
  .trust-set { gap: 3rem; padding-right: 3rem; }
  .trust-logo { width: 150px; }
  .work-footer { padding: 5rem 1.5rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trust-track { animation: none; }
  .eco-orbit, .eco-word-orbit, .eco-word-orbit > span, .hero-wildlife, .hero-owl, .owl-eye { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
