/* ============================================================
   Omnis Web — feuille de style vitrine
   Palette identique à creaconnect.world (blanc + vert), avec
   l'indigo (déjà présent dans la charte CREA) comme touche de
   différenciation propre à Omnis Web.
   ============================================================ */

:root {
  --bg-primary:   #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary:  #ececec;
  --border:       #e5e5e5;
  --border-hov:   #d4d4d4;
  --t-primary:    #0d0d0d;
  --t-secondary:  #4b4b4b;
  --t-muted:      #6e6e6e;
  --t-dim:        #8a8a8a;
  --green:        #10a37f;
  --green-d:      #0a7a5e;
  --green-l:      #1db992;
  --indigo:       #5c7cfa;
  --indigo-d:     #4c6ef5;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-primary);
  color: var(--t-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.001em;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Icônes SVG (style trait, cohérent avec l'iconographie CREA) --- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2; }
.btn .icon-sm { margin: 0 -2px; }

/* --- Bandeau promo (lien vers CREA) --- */
.omnis-banner {
  background: linear-gradient(90deg, var(--indigo-d), var(--indigo));
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
}
.omnis-banner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* --- Header --- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--t-primary); }
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--indigo));
  box-shadow: 0 0 12px rgba(16,163,127,.4);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--t-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--t-primary); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--green);
  color: #fff !important; font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(16,163,127,.3);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--green-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,163,127,.4); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--t-primary); width: 38px; height: 38px; cursor: pointer; font-size: 18px;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  background: radial-gradient(60% 60% at 50% 0%, rgba(92,124,250,.08), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--indigo-d);
  background: rgba(92,124,250,.08); border: 1px solid rgba(92,124,250,.22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 0 0 20px;
  letter-spacing: -.02em;
}
.hero h1 .grad {
  background: linear-gradient(130deg, var(--green), var(--indigo));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
  max-width: 620px; margin: 0 auto 36px; font-size: 18px; color: var(--t-muted);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Hero product mockup (aperçu de fenêtre, sans capture réelle) --- */
.hero-mock {
  margin: 64px auto 0; max-width: 760px; text-align: left;
  border-radius: 18px; border: 1px solid var(--border); overflow: hidden;
  background: var(--bg-primary);
  box-shadow: 0 40px 80px -30px rgba(16,24,40,.18), 0 8px 20px -10px rgba(16,24,40,.08);
}
.hero-mock .mock-bar {
  height: 40px; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-hov); }
.mock-tabs { display: flex; gap: 8px; }
.mock-tab {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--t-muted);
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px;
}
.mock-tab.active { color: var(--t-primary); border-color: var(--border-hov); }
.hero-mock .mock-body { display: grid; grid-template-columns: 220px 1fr; min-height: 240px; }
.mock-side {
  border-right: 1px solid var(--border); padding: 16px 14px; background: var(--bg-secondary);
  display: flex; flex-direction: column; gap: 10px;
}
.mock-side-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t-muted); }
.mock-side-item.active { color: var(--t-primary); font-weight: 600; }
.mock-main { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.mock-line { height: 9px; border-radius: 5px; background: var(--bg-tertiary); }
.mock-ai-bubble {
  margin-top: 8px; display: flex; gap: 10px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(16,163,127,.06), rgba(92,124,250,.06));
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.mock-ai-bubble .icon { color: var(--indigo-d); }
.mock-ai-bubble .mock-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
}
.btn-primary {
  background: var(--green);
  color: #fff; box-shadow: 0 4px 18px rgba(16,163,127,.3);
}
.btn-primary:hover { color: #fff; background: var(--green-d); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(16,163,127,.38); }
.btn-ghost { background: var(--bg-secondary); color: var(--t-primary); border-color: var(--border); }
.btn-ghost:hover { color: var(--t-primary); border-color: var(--border-hov); background: var(--bg-tertiary); }

/* --- Sections --- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--t-muted); font-size: 16px; margin: 0; }

/* --- Cards --- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--border-hov); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(92,124,250,.1); color: var(--indigo-d);
  font-size: 20px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin: 0 0 8px; color: var(--t-primary); }
.card p { font-size: 14.5px; color: var(--t-muted); margin: 0; }

/* --- Security list --- */
.sec-item {
  display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border);
}
.sec-item:last-child { border-bottom: none; }
.sec-item .ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(16,163,127,.1); color: var(--green-d);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.sec-item h3 { margin: 0 0 6px; font-size: 16px; }
.sec-item p { margin: 0; color: var(--t-muted); font-size: 14.5px; }

/* --- Download page --- */
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 760px) { .os-grid { grid-template-columns: 1fr; } }
.os-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-align: center;
}
.os-card.recommended { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo); }
.os-card .os-ic {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 13px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--t-secondary);
}
.os-card .os-ic .icon { width: 24px; height: 24px; }
.os-card h3 { margin: 4px 0 6px; }
.os-card .ver { color: var(--t-dim); font-size: 13px; margin-bottom: 18px; }
.tag-reco {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--indigo-d); background: rgba(92,124,250,.1);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.reqs {
  margin-top: 56px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
}
.reqs h3 { margin-top: 0; }
.reqs ul { margin: 0; padding-left: 20px; color: var(--t-muted); font-size: 14.5px; }
.reqs li { margin-bottom: 6px; }

/* --- CREA callout --- */
.crea-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(16,163,127,.06), rgba(92,124,250,.06));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.crea-callout h3 { margin: 0 0 6px; }
.crea-callout p { margin: 0; color: var(--t-muted); max-width: 480px; }

/* --- Footer --- */
footer.site-footer {
  border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--t-dim); font-size: 13.5px; }
.footer-links a:hover { color: var(--t-secondary); }
.copyright { color: var(--t-dim); font-size: 13px; }

/* --- Mobile nav --- */
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--bg-primary); border-bottom: 1px solid var(--border);
    padding: 18px 24px; gap: 16px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all .18s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   Barre : groupe d’actions à droite.

   Le bouton vert « Télécharger » a quitté la barre — il redevient
   un lien de navigation ordinaire, la page reste atteignable. À sa
   place, les deux gestes permanents : le lanceur d’applications et
   la connexion.

   Le groupe est un enfant direct de .nav, JAMAIS de .nav-links :
   sur écran étroit, .nav-links passe en opacity:0 tant que le menu
   hamburger est fermé, et tout ce qui s’y trouve devient invisible.
   ============================================================ */
.nav-links { margin-left: auto; }

.nav-actions {
  display: flex; align-items: center; gap: 6px;
  margin-left: 18px; position: relative;
}

.apps-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; flex-shrink: 0;
  background: none; border: none; border-radius: 50%;
  color: var(--t-dim); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.apps-toggle:hover { background: var(--bg-secondary); color: var(--t-secondary); }
.apps-toggle[aria-expanded="true"] { background: var(--bg-tertiary); color: var(--t-primary); }
.apps-icon { width: 20px; height: 20px; display: block; fill: currentColor; }

.account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-primary);
  color: var(--t-secondary) !important; font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.account-btn:hover {
  border-color: var(--border-hov); background: var(--bg-secondary);
  color: var(--t-primary) !important;
}
.account-btn svg, .account-icon {
  width: 17px; height: 17px; display: block; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Panneau du lanceur --- */
.apps-panel {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 60;
  /* Jamais plus large que l’écran : 312 px fixes débordaient sur
     téléphone et le panneau sortait du cadre. */
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px -14px rgba(16,24,40,.28), 0 2px 8px -2px rgba(16,24,40,.1);
}
.apps-panel[hidden] { display: none; }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.app-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border-radius: 12px; text-decoration: none;
  color: var(--t-secondary) !important; font-size: 11.5px; font-weight: 600;
  text-align: center; line-height: 1.25;
  transition: background .14s ease;
}
.app-tile:hover { background: var(--bg-secondary); color: var(--t-primary) !important; }
.app-tile .tile-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.apps-foot {
  margin: 12px 4px 2px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--t-dim); text-align: center;
}

@media (max-width: 760px) {
  /* Le groupe reste dans la barre, entre la marque et le hamburger. */
  .nav-links { margin-left: 0; }
  .nav-actions { order: 2; margin-left: auto; margin-right: 4px; position: static; }
  /* Le hamburger passe en dernier : sans ordre explicite, il restait
     colle a la marque, au milieu de rien. */
  .menu-toggle { order: 3; }
  /* Le panneau s’ancre sur la barre entière : aligné à droite d’un
     bouton de 38 px, il sortait de l’écran par la gauche. */
  .nav { position: relative; }
  .apps-panel { right: 16px; }
  /* Sur petit écran, l’icône du compte suffit. */
  .account-btn { padding: 0; width: 38px; justify-content: center; border-radius: 50%; }
  .account-btn span { display: none; }
}

/* Tuile d'une application dont l'interface n'est pas encore livrée :
   visible, pour annoncer ce qui arrive — mais jamais cliquable, pour
   ne conduire à aucune page blanche. */
.app-tile-bientot { cursor: default; opacity: .55; position: relative; }
.app-tile-bientot:hover { background: none; color: var(--t-secondary) !important; }
.tile-bientot {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--t-dim);
  background: var(--bg-tertiary); border-radius: 999px; padding: 1px 7px;
}
