:root {
  --bg: #f5f1e8;
  --paper: #fffaf0;
  --ink: #17201f;
  --muted: #68716f;
  --line: rgba(23, 32, 31, 0.12);
  --accent: #0f8b8d;
  --accent-2: #f28f3b;
  --accent-3: #6c63ff;
  --shadow: 0 24px 80px rgba(36, 52, 50, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef6f1 url("assets/Fond-a-flouter-legerement.webp") center top / cover fixed;
  overflow-x: hidden;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; opacity: .28; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  width: min(1120px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px;
  background: rgba(255, 250, 240, .72); backdrop-filter: blur(18px); box-shadow: 0 12px 40px rgba(40, 49, 48, .1);
}
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-3)); box-shadow: 0 8px 18px rgba(15,139,141,.24); overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; border: 1px solid rgba(255,255,255,.75); }
.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 650; font-size: .92rem; }
.main-nav a:hover, .nav-cta { background: rgba(15,139,141,.12); }

.section-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 104px 0; position: relative; z-index: 2; }
main > section::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -2; pointer-events: none; }
main > section:nth-child(even)::before { background: linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(246, 252, 249, .92)); box-shadow: 0 1px 0 rgba(255,255,255,.95) inset, 0 -1px 0 rgba(23,32,31,.09) inset; }
main > section:nth-child(odd):not(.hero)::before { background: linear-gradient(180deg, rgba(232, 246, 239, .90), rgba(255, 248, 236, .90)); box-shadow: 0 1px 0 rgba(23,32,31,.05) inset, 0 -1px 0 rgba(255,255,255,.78) inset; }
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; padding-top: 112px; }
.hero::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, .92) 0 18%, transparent 44%),
    radial-gradient(circle at 82% 88%, rgba(255, 246, 207, .72) 0 16%, transparent 38%),
    linear-gradient(120deg, rgba(255, 255, 255, .72), rgba(222, 247, 241, .42) 48%, rgba(255, 241, 220, .50)),
    url("assets/Fond-a-flouter-legerement.webp") center top / cover fixed;
}
.hero::after { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.08)); }
.eyebrow { color: var(--accent); font-weight: 850; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7.2vw, 6.2rem); line-height: .88; letter-spacing: -.07em; margin-bottom: 18px; }
.hero h2, .section-heading h2, .values h2, .contact h2 { font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: .96; letter-spacing: -.055em; margin-bottom: 24px; }
.hero h2 { font-size: clamp(1.6rem, 3.2vw, 3rem); letter-spacing: -.04em; }
.surgical-title { display: flex; align-items: center; gap: 18px; }
.surgical-lightning { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: clamp(52px, 7vw, 74px); height: clamp(52px, 7vw, 74px); border-radius: 24px; color: #fff7d1; background: linear-gradient(135deg, #ffd166 0%, var(--accent-2) 48%, #e4572e 100%); box-shadow: 0 18px 44px rgba(242,143,59,.34), 0 0 0 8px rgba(242,143,59,.10); transform: rotate(-8deg); }
.surgical-lightning::after { content: ""; position: absolute; inset: -10px; border-radius: 30px; border: 1px solid rgba(242,143,59,.34); opacity: .75; }
.surgical-lightning i { font-size: clamp(1.45rem, 3vw, 2.1rem); filter: drop-shadow(0 3px 5px rgba(122,63,0,.28)); }
.pitch-subtitle { max-width: 720px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.55; letter-spacing: .04em; }
.hero-pitch, .pitch p, .values p, .contact p { color: var(--muted); font-size: 1.18rem; line-height: 1.75; }
.hero-actions, .social-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-3px); }
.primary { color: white; background: linear-gradient(135deg, var(--accent), #0a5f70); box-shadow: 0 18px 40px rgba(15,139,141,.28); }
.ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.38); }
.social-links { list-style: none; padding: 22px 0 0; margin: 0; }
.social-links a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--line); text-decoration: none; font-size: 1.15rem; font-weight: 900; transition: transform .25s ease, color .25s ease; }
.social-links a:hover { transform: translateY(-3px); color: var(--accent); }
.hero-visual { min-height: 560px; display: grid; place-items: center; position: relative; }
.profile-card { position: relative; width: min(380px, 86vw); margin: 0; padding: 18px; border-radius: 44px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(233,246,243,.82)); border: 1px solid rgba(255,255,255,.86); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.profile-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 32px; filter: saturate(.96) contrast(1.02); }
.profile-card figcaption { position: absolute; left: 34px; right: 34px; bottom: 34px; padding: 12px 14px; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 12px 30px rgba(23,32,31,.12); text-align: center; font-weight: 850; backdrop-filter: blur(12px); }
.orbit { position: absolute; border: 1px dashed rgba(15,139,141,.28); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit-a { width: 520px; height: 260px; transform: rotate(-25deg); } .orbit-b { width: 440px; height: 440px; animation-duration: 28s; }
.floating-card { position: absolute; padding: 14px 18px; border-radius: 18px; background: rgba(255,250,240,.82); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 18px 50px rgba(23,32,31,.12); font-weight: 850; }
.card-a { top: 16%; right: 0; } .card-b { bottom: 18%; left: 0; }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glass-card, .values-card, .contact { border: 1px solid rgba(255,255,255,.72); background: rgba(255,250,240,.70); backdrop-filter: blur(18px); border-radius: 34px; padding: 34px; box-shadow: 0 20px 70px rgba(48,61,59,.1); }
.glass-card h3, .timeline-item h3 { font-size: 1.45rem; margin-bottom: 12px; }
.badge { display: inline-flex; margin-bottom: 20px; color: #7a3f00; background: rgba(242,143,59,.18); padding: 8px 12px; border-radius: 999px; font-weight: 900; font-size: .8rem; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 24px 0; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { display: inline-flex; align-items: center; min-height: 74px; padding: 0 26px; border-radius: 24px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 12px 35px rgba(23,32,31,.08); font-weight: 900; font-size: 1.1rem; }
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.timeline-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px; border-radius: 28px; background: rgba(255,255,255,.68); border: 1px solid var(--line); overflow: hidden; }
.timeline-icon { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-3)); box-shadow: 0 16px 34px rgba(15,139,141,.2); font-size: 1.65rem; }
.timeline-item::before { content: ""; position: absolute; width: 120px; height: 120px; right: -46px; top: -46px; border-radius: 50%; background: rgba(15,139,141,.12); }
.timeline-item span { color: var(--accent); font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.timeline-item p { color: var(--muted); line-height: 1.65; margin: 0; }
.values-card { max-width: 920px; margin: auto; }
.value-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.value-list span { padding: 12px 16px; border-radius: 999px; background: rgba(15,139,141,.1); font-weight: 800; }
.contact { text-align: center; }
.reveal { opacity: 0; transform: translateY(38px) scale(.985); filter: blur(10px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.reveal.visible { opacity: 1; transform: none; filter: blur(0); }
.delay-1 { transition-delay: .12s; } .delay-2 { transition-delay: .24s; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes float { 50% { transform: translateY(-18px) rotate(1deg); } }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero { padding-top: 104px; }
  .surgical-title { align-items: flex-start; gap: 14px; }
  .hero, .pitch-grid, .timeline, .timeline-item { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .orbit-a, .orbit-b { width: 330px; height: 330px; }
  .timeline-icon { width: 52px; height: 52px; }
  .section-shell { padding: 95px 0; }
}
.marquee i { margin-right: 10px; color: var(--accent); font-size: 1.45rem; }
.tech-icon { display: inline-block; flex: 0 0 auto; margin-right: 10px; vertical-align: -0.12em; }
.openwrt-icon { width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0px !important; background: var(--accent) !important; mask: url("assets/openwrt.svg") center / contain no-repeat; -webkit-mask: url("assets/openwrt.svg") center / contain no-repeat;  border-radius: 0px !important; }
.uboot-icon { width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0px !important; background: var(--accent) !important; mask: url("assets/uboot.svg") center / contain no-repeat; -webkit-mask: url("assets/uboot.svg") center / contain no-repeat; }
.stm-icon { width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0px !important; background: var(--accent) !important; mask: url("assets/stm.svg") center / contain no-repeat; -webkit-mask: url("assets/stm.svg") center / contain no-repeat; }
.avr-icon { width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0px !important; background: var(--accent) !important; mask: url("assets/avr.svg") center / contain no-repeat; -webkit-mask: url("assets/avr.svg") center / contain no-repeat; }
.buildroot-icon { width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0px !important; background: var(--accent) !important; mask: url("assets/buildroot.png") center / contain no-repeat; -webkit-mask: url("assets/buildroot.png") center / contain no-repeat; }
.kicad-icon { width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0px !important; background: var(--accent) !important; mask: url("assets/kicad.png") center / contain no-repeat; -webkit-mask: url("assets/kicad.png") center / contain no-repeat;  border-radius: 0px !important; }
.comminter-icon { width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0px !important; background-image: url("assets/comminter.png");  border-radius: 0px !important; }


.lien-neutre {
  color: inherit;
  text-decoration: none;
  display: block;
}
