/* Orbiq Studio : site vitrine (sites web et logiciels) */

:root {
  --ink: #101114;
  --text: #1c1d22;
  --muted: #5d6068;
  --line: #e2e2e8;
  --bg: #ffffff;
  --bg-alt: #f4f4f7;
  --accent: #5a3df0;
  --accent-dark: #4528d4;
  --accent-soft: #eeeaff;
  --radius: 18px;
  --maxw: 1320px;
  --header-h: 64px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --shadow: 0 12px 40px rgba(16, 17, 20, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b2d33; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f4; }
.btn-outline { border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: rgba(16, 17, 20, 0.06); }
.btn-outline.on-dark { color: #fff; }
.btn-outline.on-dark:hover { background: rgba(255, 255, 255, 0.14); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.on-dark .link-arrow, .link-arrow.on-dark { color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); }
.brand-mark img { width: 72%; height: 72%; filter: invert(1); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: background 0.2s ease;
}
.nav-link:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--bg-alt); }
.nav-link[aria-current="page"], .nav-toggle.is-current { color: var(--accent); }
.caret { width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.25s ease; }
[aria-expanded="true"] > .caret { transform: rotate(-135deg); margin-top: 3px; }
.bars i { display: block; width: 20px; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.burger[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-weight: 600; font-size: 14.5px; }
.header-phone:hover { color: var(--accent); }
.header-cta .btn { min-height: 40px; padding: 0 20px; font-size: 14.5px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; align-items: center; justify-content: center; font-size: 20px; }
.burger:hover { background: var(--bg-alt); }

/* Menus déroulants */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.25s var(--ease); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 32px; padding: 30px 0 36px; }
.mega h3 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mega li a { display: block; padding: 7px 0; font-size: 15.5px; color: var(--text); }
.mega li a:hover { color: var(--accent); }
.mega li small { display: block; font-size: 13px; color: var(--muted); }
.mega-promo { padding: 22px; border-radius: var(--radius); background: var(--accent-soft); }
.mega-promo h4 { margin-bottom: 8px; font-size: 18px; }
.mega-promo p { margin-bottom: 14px; font-size: 14.5px; color: var(--muted); }

/* Menu mobile */
.mobile-nav { display: none; }

/* ---------- Bannière d'accueil ---------- */
.hero { position: relative; margin: 20px auto 0; width: min(100% - 48px, var(--maxw)); min-height: clamp(460px, 62vh, 620px); border-radius: 28px; overflow: hidden; color: #fff; background: #0b0b10; isolation: isolate; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 14, 0.82) 0%, rgba(8, 8, 14, 0.55) 45%, rgba(8, 8, 14, 0.08) 100%); }
.hero-inner { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: inherit; padding: clamp(32px, 6vw, 80px); max-width: 780px; }
.eyebrow { margin-bottom: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #cfc6ff; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.9rem); }
.hero p.lead { margin-top: 18px; max-width: 580px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #e6e6ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero.small { min-height: clamp(320px, 42vh, 420px); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.section-head p { margin-top: 14px; font-size: 1.1rem; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* Tuiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: #0b0b10; transition: transform 0.6s var(--ease); }
.tile:hover .tile-img { transform: scale(1.04); }
.tile-media { overflow: hidden; }
.tile-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 22px 24px; }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile .link-arrow { margin-top: auto; padding-top: 8px; }

/* Blocs image / texte */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.split.reverse .split-media { order: 2; }
.split-media { overflow: hidden; border-radius: var(--radius); background: #0b0b10; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.split p.lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 20px; }
.checks { display: grid; gap: 12px; margin-bottom: 26px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; }
.checks b { color: var(--ink); }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section.alt .card { border-color: transparent; }
.card .icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 15.5px; }
.card ul.mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card ul.mini li { padding: 4px 11px; border-radius: 999px; background: var(--bg-alt); font-size: 13px; color: var(--text); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 14px; font-size: 2.2rem; font-weight: 300; letter-spacing: -0.03em; color: var(--accent); }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; margin: 0 auto; width: min(100% - 48px, var(--maxw)); padding: clamp(36px, 6vw, 72px); border-radius: 28px; overflow: hidden; color: #fff; background: #0b0b10 url("assets/poster.jpg") center / cover; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 14, 0.88), rgba(8, 8, 14, 0.5)); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 640px; }
.cta-band p { margin-top: 12px; max-width: 560px; color: #dcdce6; font-size: 1.08rem; }
.cta-band .hero-actions { margin-top: 26px; }

/* Catalogue de logiciels */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12.5px; font-weight: 600; }
.product-hero-art { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--radius); }
.empty { padding: 36px; border: 1px dashed #c9c9d4; border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.contact-list b { display: block; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
.panel-form { padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(16, 17, 20, 0.08); }

.form label { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form label span { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: #fff; color: var(--text); border: 1px solid #c9c9d4; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 400; transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90, 61, 240, 0.18); }
.form input.is-invalid, .form textarea.is-invalid { border-color: #d13b2a; background: #fff6f5; }
.form fieldset.choices { margin: 0 0 16px; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.form .choices legend { grid-column: 1 / -1; padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form .chip { position: relative; display: block; margin: 0; }
.form .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; pointer-events: none; }
.form .chip span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; text-align: center;
  font-size: 14.5px; font-weight: 500; line-height: 1.25; color: var(--text);
  border: 1px solid #c9c9d4; border-radius: 12px; background: #fff; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.form .chip:hover span { border-color: var(--accent); }
.form .chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.form .chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form .choices.is-invalid .chip span { border-color: #d13b2a; }
.form #org-label { font-weight: 600; color: var(--ink); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 6px; }
.status { min-height: 22px; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.status.is-error { color: #c5311f; }
.done { padding: 22px 0 8px; text-align: center; }
.done h2 { margin-bottom: 10px; font-size: 1.8rem; }
.done p { margin-bottom: 20px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 104px); background: var(--bg-alt); border-top: 1px solid var(--line); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding: 52px 0 36px; }
.footer-grid h4 { margin-bottom: 14px; font-size: 15px; }
.footer-grid li a { display: inline-block; padding: 5px 0; color: var(--muted); }
.footer-grid li a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { margin-top: 14px; max-width: 320px; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablettes et mobiles ---------- */
@media (max-width: 1080px) {
  .tiles, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .main-nav, .header-cta .btn, .header-phone { display: none; }
  .burger { display: inline-flex; }
  .mega { display: none; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: block; overflow-y: auto; padding: 12px 24px 40px; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
  .mobile-nav.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
  .m-item > a, .m-item > button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; text-align: left; }
  .m-sub { display: none; padding: 6px 0 12px 12px; }
  .m-sub.is-open { display: block; }
  .m-sub a { display: block; padding: 9px 0; color: var(--muted); }
  .m-actions { display: grid; gap: 12px; margin-top: 26px; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 8, 14, 0.5), rgba(8, 8, 14, 0.82)); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cards, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container, .hero, .cta-band { width: min(100% - 32px, var(--maxw)); }
  .tiles, .cards.four, .steps { grid-template-columns: 1fr; }
  .hero { border-radius: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .form fieldset.choices { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Vidéo de la bannière : apparaît en fondu quand elle est prête */
.hero video.hero-media { opacity: 0; transition: opacity 1.2s ease; }
.hero video.hero-media.ready { opacity: 1; }
.hero-actions .btn-outline.on-dark { border-color: rgba(255, 255, 255, 0.7); }
.product-detail-wrap { padding-top: clamp(32px, 5vw, 64px); }
