@font-face { font-family: "Archivo Black"; src: url("/fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --bg: #ffffff;
  --bg-alt: #f2f6f7;
  --text: #102027;
  --muted: #51646c;
  --ink: #0a2129;          /* fonds sombres */
  --ink-2: #0f2f3a;
  --brand: #164755;
  --accent: #f2a33a;
  --accent-2: #ff7a59;
  --cyan: #5fd3e6;
  --accent-text: #a8620c;
  --card: #ffffff;
  --border: #dfe7ea;
  --radius: 20px;
  --display: "Archivo Black", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a20;
    --bg-alt: #0f232a;
    --text: #e6eef1;
    --muted: #9db0b8;
    --accent-text: #f2a33a;
    --card: #13282f;
    --border: #21404a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--ink); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4.6vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }

/* Barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan)); z-index: 50; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 33, 41, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand img { height: 42px; width: auto; display: block; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 7px 14px; border-radius: 999px; color: #fff; transition: background .2s; }
.nav a:hover, .nav a:focus-visible { background: rgba(255, 255, 255, .12); }
.nav-cta { background: var(--accent); color: #102027 !important; }
.nav-cta:hover { background: #ffb653 !important; }
@media (max-width: 640px) { .nav a:not(.nav-cta) { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .25s, box-shadow .25s, background .25s; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #102027; box-shadow: 0 10px 30px -10px rgba(242, 163, 58, .7); }
.btn-accent:hover { box-shadow: 0 16px 40px -10px rgba(255, 122, 89, .8); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Accueil */
.hero { position: relative; background: var(--ink); color: #fff; padding: 72px 0 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 420px; height: 420px; background: #1f6b7d; top: -120px; left: -80px; }
.orb-2 { width: 360px; height: 360px; background: #b8571f; bottom: -140px; right: 10%; animation-delay: -6s; opacity: .45; }
.orb-3 { width: 260px; height: 260px; background: #2aa4b8; top: 30%; right: -60px; animation-delay: -12s; opacity: .35; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
.grid-lines { 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: 48px 48px; mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%); }
.hero-inner { display: grid; gap: 48px; grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; font-weight: 600; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -.015em; }
.rotator { display: inline-block; background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rot-word { display: inline-block; transition: opacity .35s, transform .35s; }
.rot-word.out { opacity: 0; transform: translateY(-.35em); }
.rot-word.in { opacity: 0; transform: translateY(.35em); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Visuel : fenêtre de terminal + cartes flottantes */
.hero-visual { position: relative; min-height: 340px; perspective: 1000px; }
.window { position: relative; z-index: 1; background: rgba(8, 24, 30, .85); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(95, 211, 230, .08); overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .78rem; color: rgba(255, 255, 255, .55); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 8px; }
.term { margin: 0; padding: 18px 18px 22px; min-height: 232px; font: 13.5px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cfe6ec; white-space: pre-wrap; }
.term .p { color: var(--accent); }
.term .ok { color: #3ddc84; }
.term .dim { color: rgba(207, 230, 236, .5); }
.term .url { color: var(--cyan); text-decoration: underline; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-card { position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .95rem; animation: bob 6s ease-in-out infinite; }
.float-card small { font-size: .72rem; color: rgba(255, 255, 255, .7); }
.fc-1 { top: -22px; right: -10px; }
.fc-2 { bottom: -40px; left: -20px; animation-delay: -2s; }
.fc-3 { bottom: -46px; right: 24px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .fc-1 { right: 0; } .fc-2 { left: 0; } }

/* Bandeau défilant */
.marquee-wrap { overflow: hidden; padding: 6px 0; margin-top: -20px; position: relative; z-index: 3; }
.marquee { background: var(--accent); color: #102027; overflow: hidden; border-block: 2px solid #102027; transform: rotate(-1.2deg) scaleX(1.03); }
.marquee-track { display: flex; width: max-content; animation: scroll 28s linear infinite; }
.marquee span { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; padding: 12px 22px; white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 44px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.head { max-width: 680px; margin-bottom: 44px; }
.section-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 107, 125, .55), transparent 70%); top: -180px; right: -160px; }
.section-dark .muted { color: rgba(255, 255, 255, .7); }
.section-dark .kicker { color: var(--accent); }

/* Services : grille « bento » */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
.tile { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(242, 163, 58, .55); box-shadow: 0 24px 50px -28px rgba(16, 32, 39, .45); }
.tile p { margin: 0; color: var(--muted); }
.tile-big { grid-row: span 3; display: flex; flex-direction: column; background: linear-gradient(160deg, var(--brand), var(--ink)); color: #fff; border-color: transparent; }
.tile-big p { color: rgba(255, 255, 255, .8); }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: start; }
.tile-wide .flow { grid-column: 1 / -1; }
.glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(242, 163, 58, .16), transparent 45%); pointer-events: none; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #102027; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 22px; list-style: none; }
.chips li { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.mini-browser { margin-top: auto; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); transform: rotate(-2deg) translateY(6px); transition: transform .4s; }
.tile-big:hover .mini-browser { transform: rotate(0) translateY(0); }
.mb-bar { display: flex; gap: 5px; padding: 8px 10px; background: #eef2f3; }
.mb-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9d3d6; }
.mb-body { padding: 16px; display: grid; gap: 8px; }
.sk { height: 9px; border-radius: 6px; background: linear-gradient(90deg, #e4ecee 25%, #f4f8f9 50%, #e4ecee 75%); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
.sk-title { height: 16px; width: 60%; background: #164755; animation: none; }
.sk-short { width: 70%; }
.sk-btn { width: 90px; height: 24px; border-radius: 999px; background: var(--accent); margin-top: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: .85rem; font-weight: 700; }
.flow span { padding: 6px 12px; border-radius: 10px; background: var(--bg-alt); border: 1px dashed var(--border); }
.flow b { color: var(--accent-text); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-big { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-big, .tile-wide { grid-column: auto; }
  .tile-wide { grid-template-columns: 1fr; }
}

/* Réalisations */
.works { display: grid; gap: 72px; position: relative; }
.work { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.work-alt { grid-template-columns: 1fr 300px; }
.work-alt .phone { order: 2; }
@media (max-width: 760px) {
  .work, .work-alt { grid-template-columns: 1fr; gap: 28px; }
  .work-alt .phone { order: 0; }
  .phone { margin: 0 auto; }
}
.phone { position: relative; width: 260px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px; background: linear-gradient(145deg, #2b4a55, #071419); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(255, 255, 255, .08); transition: transform .2s ease-out; }
.phone > img:not(.art-logo) { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; display: block; }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 999px; background: #071419; z-index: 2; }
.phone-art { isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.phone-art::after { content: ""; position: absolute; inset: 10px; border-radius: 30px; z-index: -1; }
.art-jk::after { background: linear-gradient(180deg, #bfe0ea, #8dc1d3); }
.art-wirdi::after { background: radial-gradient(circle at 50% 30%, #1d5d52, #0b2a26 70%); }
.art-logo { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .4); margin-bottom: 10px; }
.art-title { font-family: var(--display); font-size: 1.6rem; }
.art-jk .art-title { color: #23435a; }
.art-sub { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e8664f; margin-bottom: 14px; }
.art-wirdi .art-sub { color: #f2c46d; }
.art-line { width: 60%; height: 8px; border-radius: 6px; background: rgba(35, 67, 90, .2); }
.art-line.short { width: 40%; }
.art-ar { font-size: 4rem; line-height: 1.2; color: #f2c46d; font-family: "Amiri", "Noto Naskh Arabic", serif; }
.counter { margin-top: 10px; width: 108px; height: 108px; border-radius: 50%; border: 3px solid rgba(242, 196, 109, .8); display: grid; place-items: center; align-content: center; animation: pulse 2.4s ease-in-out infinite; }
.counter b { font-family: var(--display); font-size: 2rem; line-height: 1; }
.counter small { color: rgba(255, 255, 255, .6); }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(242, 196, 109, .08); } }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); margin-bottom: 14px; }
.work h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.work p { color: rgba(255, 255, 255, .78); max-width: 540px; }
.more { display: inline-flex; gap: 6px; margin-top: 8px; font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.more:hover { border-color: var(--accent); }

/* Méthode : frise */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan)); transform-origin: 0 50%; transform: scaleX(var(--tl, 0)); transition: transform 1.2s ease; border-radius: 3px; }
.timeline li { position: relative; }
.step { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); font-family: var(--display); font-size: 1.2rem; margin-bottom: 16px; }
.timeline strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.timeline p { margin: 0; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { top: 26px; bottom: 26px; left: 25px; right: auto; width: 3px; height: auto; transform-origin: 50% 0; transform: scaleY(var(--tl, 0)); }
  .timeline li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
  .step { margin: 0; }
}

/* Contact */
.cta { position: relative; border-radius: 28px; padding: 48px 36px; color: #fff; background: var(--ink); display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: center; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -2px; z-index: -2; background: conic-gradient(from var(--a, 0deg), var(--accent), var(--accent-2), var(--cyan), var(--brand), var(--accent)); animation: spin 8s linear infinite; }
.cta::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 26px; background: radial-gradient(circle at 15% 20%, #164755, var(--ink) 60%); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.cta h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.cta .kicker { color: var(--accent); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 36px 22px; } }
.contacts { display: grid; gap: 12px; }
.contact { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: #fff; transition: background .2s, transform .25s; }
.contact:hover { background: rgba(255, 255, 255, .15); }
.contact svg { flex: none; color: var(--accent); }
.contact small { display: block; opacity: .75; }

/* Pied de page */
.foot { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 26px 0; font-size: .875rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Pages de texte (mentions légales) */
.page { padding: 48px 0 64px; }
.page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.page h2 { font-family: inherit; font-weight: 700; font-size: 1.25rem; margin-top: 1.6em; }
.page .wrap { max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
