/* ==========================================================================
   Inosense — feuille de style principale
   Les couleurs de marque sont centralisées ci-dessous : remplacez-les par
   votre charte graphique (logo : assets/img/logo.svg / logo-white.svg).
   ========================================================================== */

:root {
  /* Marque */
  --brand: #0a5bd3;          /* bleu principal (boutons, liens) */
  --brand-dark: #0842a0;     /* survol */
  --brand-light: #e8f0fd;    /* fonds teintés */
  --accent: #19c3b2;         /* touche secondaire (data / IA) */
  --ink: #0f1b2d;            /* bleu nuit (hero, footer) */
  --ink-2: #1b2b44;

  /* Neutres */
  --text: #1d2433;
  --text-muted: #5b6475;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;

  /* Typographie : pile système (aucun appel à un service tiers) */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --shadow-lg: 0 20px 50px rgba(15, 27, 45, .14);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #c9d3e3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 760px; }
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-more::after { content: "→"; transition: transform .2s; }
.link-more:hover::after { transform: translateX(3px); }

/* En-tête ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .98rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.has-mega:hover .chev, .has-mega.open .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(860px, 92vw); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-col h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.mega-col ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mega-col a { display: block; padding: 7px 0; color: var(--ink); font-weight: 500; font-size: .95rem; }
.mega-col a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-weight: 700; font-size: .85rem; color: var(--text-muted); letter-spacing: .05em; }
.lang-switch a { color: var(--text-muted); padding: 4px; }
.lang-switch a[aria-current="true"] { color: var(--brand); }
.header-actions .btn { padding: 11px 20px; font-size: .95rem; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #c9d3e3;
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(10,91,211,.45), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(25,195,178,.22), transparent 60%),
    var(--ink);
  padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 10vw, 130px);
}
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: #c9d3e3; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-grid { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.hero .container { position: relative; }

.page-hero {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(10,91,211,.45), transparent 60%),
    var(--ink);
  color: #c9d3e3; padding: clamp(70px, 9vw, 110px) 0 clamp(60px, 7vw, 90px);
}
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: #c9d3e3; }
.breadcrumb { font-size: .88rem; margin-bottom: 18px; color: #8fa0bb; }
.breadcrumb a { color: #c9d3e3; }

/* Blocs split ---------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.visual {
  border-radius: 18px; background: linear-gradient(145deg, var(--ink) 0%, var(--ink-2) 100%);
  aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.visual svg { width: 100%; height: 100%; }
.checklist { list-style: none; padding: 0; margin: 24px 0 30px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a5bd3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--dark .checklist li::before { background-color: rgba(255,255,255,.1); }

/* Tuiles de services ----------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile::before {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.tile:hover::before { transform: scaleX(1); }
.tile-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px;
}
.tile-icon svg { width: 26px; height: 26px; }
.tile p { color: var(--text-muted); font-size: .98rem; flex: 1; }
.tile .link-more { margin-top: 8px; }

/* Piliers (bandeau sombre) ----------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; }
.pillar { background: var(--ink); padding: 34px 28px; }
.pillar .num { font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.pillar h3 { margin-top: 10px; }
.pillar p { font-size: .96rem; margin: 0; }

/* Étapes de la démarche ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.step::after { content: ""; position: absolute; top: 23px; left: 58px; right: -12px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step p { color: var(--text-muted); font-size: .97rem; }

/* Chips technologies ------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink); }

/* Atouts ---------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.feature { display: flex; gap: 18px; }
.feature .tile-icon { flex: none; margin: 0; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: .97rem; margin: 0; }

/* Détail des expertises --------------------------------------------------- */
.service-detail { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 70px); padding: 56px 0; border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: 0; }
.service-detail .tile-icon { margin-bottom: 16px; }
.service-detail h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.service-detail .kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 30px; }
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 16px 12px; font-weight: 600; font-size: .92rem; color: var(--text-muted); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* Bandeau CTA --------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 60%, var(--ink) 100%);
  color: #dfe8f7; padding: clamp(60px, 8vw, 96px) 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band .btn--primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn--primary:hover { background: var(--ink); color: #fff; }

/* Contact --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-card { background: var(--bg-alt); border-radius: 14px; padding: 32px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: 20px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cdd3de; border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-muted); }
.form .consent input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--text-muted); }

/* Pages légales ---------------------------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text); }

/* Pied de page ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #9fb0c8; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9d3e3; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.social a:hover { background: var(--brand); border-color: var(--brand); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Animation d'apparition ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pillars, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 16px 24px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 1.05rem; }
  .mega {
    position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 12px;
    grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none;
  }
  .has-mega:hover .mega, .has-mega:focus-within .mega { transform: none; }
  .has-mega.open .mega { display: grid; transform: none; }
  .header-actions { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 18px; }
  .header-actions .btn { justify-content: center; padding: 15px; }
  .lang-switch { text-align: center; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .service-detail { grid-template-columns: 1fr; gap: 10px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .tiles, .pillars, .steps, .deliverables, .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* Méthode CONVERGE ----------------------------------------------------------- */
.section--tight { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.method-figure { margin: 0; }
.method-figure img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); }
.method-figure figcaption { margin-top: 14px; font-size: .92rem; color: var(--text-muted); }
.method-figure figcaption a { font-weight: 600; margin-left: 6px; white-space: nowrap; }
.phase-group { margin-top: 48px; }
.phase-group:first-of-type { margin-top: 0; }
.phase-group-title { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.phase-group-title span { color: var(--brand); margin-right: 8px; }
.phase-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.phase-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.phase-letter { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.phase-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.phase-card p { color: var(--text-muted); font-size: .97rem; margin-bottom: 10px; }
.phase-card .phase-deliv { margin: 0; font-size: .9rem; color: var(--text); padding-top: 10px; border-top: 1px dashed var(--line); }
.pillars--3 { grid-template-columns: repeat(3, 1fr); }
.principles { list-style: none; padding: 0; margin: 0; counter-reset: pr; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.principles li { counter-increment: pr; position: relative; padding-left: 60px; }
.principles li::before { content: counter(pr, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.principles h3 { font-size: 1.1rem; margin-bottom: 6px; padding-top: 10px; }
.principles p { color: var(--text-muted); font-size: .97rem; margin: 0; }
@media (max-width: 960px) {
  .phase-list, .principles, .pillars--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .phase-card { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
}

/* Formulaire : anti-spam et messages d'état ---------------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.cf-turnstile { min-height: 65px; }
.form button[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 14px 0 0; padding: 12px 16px; border-radius: 8px; font-size: .95rem; background: var(--bg-alt); color: var(--text); }
.form-status.is-ok { background: #e6f7ef; color: #0f6b3f; }
.form-status.is-error { background: #fdecec; color: #a12323; }
