/* Next Services Informatiques
   One family (Archivo): expanded for headings, normal for text.
   Navy, cyan and violet come from the logo; four colours encode the service families. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #F4F7FA;
  --white: #FFFFFF;
  --ink: #0B2545;
  --ink-soft: #465A78;
  --rule: #D3DCE7;
  --navy: #004080;
  --rack: #062B55;
  --rack-2: #0D3D76;

  --blue: #62AEF5;   --blue-ink: #0A5AAE;
  --cyan: #56CCCC;   --cyan-ink: #08707B;
  --violet: #B094F2; --violet-ink: #4B2A85;
  --amber: #F7A823;  --amber-ink: #9A4F00;

  --c: var(--navy);
  --c-ink: var(--navy);
  --gutter: clamp(16px, 4vw, 32px);
}
.f-services     { --c: var(--violet); --c-ink: var(--violet-ink); }
.f-technologies { --c: var(--blue);   --c-ink: var(--blue-ink); }
.f-securite     { --c: var(--amber);  --c-ink: var(--amber-ink); }
.f-cloud        { --c: var(--cyan);   --c-ink: var(--cyan-ink); }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

h1, h2, h3 {
  margin: 0;
  font-stretch: 118%;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.15rem + 2.7vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem); }
h3 { font-size: 1.1875rem; font-stretch: 112%; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
address { font-style: normal; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }

.swatch {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: var(--c);
  vertical-align: middle;
}

.btn {
  display: inline-block;
  padding: 0.72em 1.2em;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-stretch: 108%;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--rack); }
.btn-small { padding: 0.55em 1em; font-size: 0.9375rem; }
.link { font-weight: 560; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; line-height: 0; }
.site-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 520; text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.nav-toggle { display: none; }

@media (max-width: 979px) {
  .header-row { flex-wrap: wrap; min-height: 64px; padding-block: 10px; }
  .js .nav-toggle {
    display: block;
    padding: 0.5em 0.9em;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 8px 12px; }
  .site-nav li { width: 100%; }
  .site-nav a:not(.btn) { display: block; padding: 10px 0; }
  .site-nav .btn { margin-top: 8px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--rack); color: #fff; }
.hero .wrap { position: relative; }
.hero-text { position: relative; z-index: 1; padding-top: clamp(40px, 7vw, 72px); }
.hero h1 { font-size: clamp(2.1rem, 1.1rem + 3.9vw, 3.75rem); line-height: 1.03; letter-spacing: -0.02em; }
.hero-lead { max-width: 46ch; margin: 24px 0 0; color: #C9D8EA; font-size: 1.1875rem; line-height: 1.5; }
.hero-hex { max-height: 250px; margin: 40px -8% 0; overflow: hidden; }
.hex svg { display: block; width: 100%; height: auto; }
.hex polygon { stroke-width: 0.7; stroke-linejoin: round; transition: fill 1.6s ease-out, stroke 1.6s ease-out; }
.hex polygon:hover { fill: #fff; stroke: #fff; transition-duration: 0s; }
@media (min-width: 860px) {
  .hero .wrap { display: grid; align-items: center; min-height: clamp(540px, 56vw, 700px); }
  .hero-text { max-width: 600px; padding-block: clamp(48px, 6vw, 88px); }
  .hero-hex { position: absolute; top: 50%; right: -7%; width: min(58%, 720px); max-height: none; margin: 0; overflow: visible; transform: translateY(-50%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hex polygon { opacity: 0; transform-box: fill-box; transform-origin: center; animation: facet 0.55s ease-out var(--d) forwards; }
  @supports (animation-timeline: scroll()) {
    .hero-hex svg { animation: hex-drift linear both; animation-timeline: scroll(); animation-range: 0 720px; }
  }
}
@keyframes facet { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes hex-drift { to { transform: translateY(70px) rotate(14deg); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-white { background: var(--white); }
.section-title { margin-bottom: clamp(28px, 4vw, 48px); }

.commit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 36px clamp(32px, 5vw, 64px); }
.commit { padding-top: 20px; border-top: 1px solid var(--rule); }
.commit h3 { margin-bottom: 10px; }
.commit p { margin: 0; font-size: 1rem; }

.services-home { padding-top: clamp(56px, 8vw, 112px); background: var(--white); }
.blocks { display: grid; }
.block { padding: clamp(36px, 6vw, 84px) var(--gutter); background: var(--c); color: var(--ink); scroll-margin-top: 0; }
.block h2, .block h3 { margin-bottom: 28px; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-stretch: 122%; font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
.block ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.block a { display: block; color: inherit; text-decoration: none; }
.block strong { display: block; font-size: 1.1875rem; font-stretch: 110%; font-weight: 680; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: text-decoration-color 0.15s; }
.block a:hover strong { text-decoration-color: currentColor; }
.block span { display: block; max-width: 46ch; font-size: 0.9688rem; line-height: 1.45; }
.block :focus-visible { outline-color: var(--ink); }
@media (min-width: 860px) {
  .blocks { grid-template-columns: 1fr 1fr; }
  .block:nth-child(odd) { padding-right: clamp(32px, 5vw, 72px); padding-left: max(var(--gutter), calc((100vw - 1180px) / 2)); }
  .block:nth-child(even) { padding-left: clamp(32px, 5vw, 72px); padding-right: max(var(--gutter), calc((100vw - 1180px) / 2)); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .services-home .block { animation: wipe-left linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .services-home .block:nth-child(even) { animation-name: wipe-right; }
  }
}
@keyframes wipe-left { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes wipe-right { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

/* ---------- approach steps ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .section-title { margin-bottom: 0; }
.steps { display: grid; gap: 36px clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.step { padding-top: 18px; border-top: 6px solid var(--s); }
@media (min-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step h3 { margin: 14px 0 8px; }
.step p { margin: 0; font-size: 1rem; }
.step-n { display: block; color: var(--s); font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); font-stretch: 125%; font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.approach { margin: 0; padding: 0; list-style: none; }
.approach-step { display: grid; gap: 12px 56px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.approach-step:first-child { border-top: 0; }
.approach-step .step-n { font-size: clamp(4rem, 2.5rem + 6vw, 8.5rem); }
.approach-text { max-width: 68ch; }
.approach-text h2 { margin-bottom: 16px; }
.approach-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 32px; margin: 24px 0; padding: 0; list-style: none; }
.approach-points li { padding-left: 22px; position: relative; font-size: 1rem; }
.approach-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 4px; border-radius: 2px; background: var(--s); }
.approach-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
@media (min-width: 860px) { .approach-step { grid-template-columns: 240px minmax(0, 1fr); } }

.cta-band { background: var(--navy); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: clamp(36px, 5vw, 56px); }
.cta-row h2 { margin-bottom: 8px; }
.cta-row p { margin: 0; color: #C9D8EA; }
.cta-band .btn { background: #fff; color: var(--rack); }
.cta-band .btn:hover { background: var(--cyan); }

.section-violet { background: #402070; color: #fff; }
.section-violet .partner-names { border-top-color: rgb(255 255 255 / 0.25); }
.section-violet .partner-names a { color: #fff; }
.section-violet .partner-names a:hover { color: var(--cyan); }

.help-grid { display: grid; gap: 0 64px; }
.help-text { max-width: 68ch; }
@media (min-width: 900px) { .help-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.partner-names { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); list-style: none; }
.partner-names a { color: var(--ink); font-size: 1.25rem; font-stretch: 122%; font-weight: 680; text-decoration: none; }
.partner-names a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- contact ---------- */
.contact { background: var(--white); border-top: 1px solid var(--rule); }
.section-white + .contact, .page + .contact { border-top: 1px solid var(--rule); }
.contact-grid { display: grid; gap: 40px 72px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.contact-info h2 { margin-bottom: 20px; }
.contact-phone { margin-bottom: 20px; }
.contact-phone a { color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-stretch: 116%; font-weight: 660; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.contact-phone a:hover { text-decoration: underline; }
.contact-vat { margin: 16px 0 8px; color: var(--ink-soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; }

.form { display: grid; gap: 18px; align-content: start; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: 0.9688rem; font-weight: 580; }
.optional { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #9AAAC0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 560; }
.form-status.is-error { color: #A4161A; }
.form-status.is-ok { color: #0A6B3D; }
.form-note { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }

/* ---------- inner pages ---------- */
.page { padding-bottom: clamp(56px, 8vw, 104px); }
.page-flush { padding-bottom: 0; }
.page-band { position: relative; overflow: hidden; background: var(--rack); color: #fff; }
.page-band-fam { background: var(--c); color: var(--ink); }
.page-head { position: relative; z-index: 1; padding-block: clamp(26px, 3.5vw, 44px) clamp(36px, 5.5vw, 76px); }
.page-head h1 { max-width: 20ch; font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.018em; }
.page-intro { max-width: 58ch; margin: 22px 0 0; color: #C9D8EA; font-size: 1.125rem; }
.page-intro + p { margin: 16px 0 0; }
.page-head .link { color: inherit; }
.page-band-fam :focus-visible { outline-color: var(--ink); }
.page-head-art { display: grid; gap: 4px 48px; }
.art { width: min(46vw, 180px); margin-top: 20px; }
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art polygon { stroke-width: 0.6; stroke-linejoin: round; }
@media (min-width: 760px) {
  .page-head-art { grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 290px); align-items: center; }
  .art { width: 100%; margin: -12px 0 -28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .art polygon { opacity: 0; transform-box: fill-box; transform-origin: center; animation: facet 0.5s ease-out var(--d) forwards; }
}
.band-hex { display: none; }
@media (min-width: 1100px) {
  .band-hex { display: block; position: absolute; top: 50%; right: -70px; width: 340px; transform: translateY(-50%); }
}
.crumbs { margin-bottom: clamp(24px, 3.5vw, 44px); font-size: 0.9375rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; opacity: 0.6; }
.crumbs a { color: inherit; }

.page-body { padding-top: clamp(32px, 5vw, 64px); }
.page-grid { display: grid; gap: 48px 72px; padding-top: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .page-grid { grid-template-columns: minmax(0, 1fr) 300px; } .aside { position: sticky; top: 24px; } }

.prose { max-width: 68ch; }
.prose h2 { margin: 1.7em 0 0.55em; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.625rem); line-height: 1.15; }
.prose h3 { margin: 1.5em 0 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.15em; }
.prose li { margin-bottom: 0.45em; padding-left: 0.2em; }
.prose li::marker { color: var(--c-ink); }
.prose .lead { font-size: 1.25rem; font-stretch: 106%; font-weight: 520; line-height: 1.4; }
.prose a { overflow-wrap: anywhere; }
.prose-large { font-size: 1.1875rem; }
.prose-legal { font-size: 1rem; }
.prose-legal h2 { font-size: 1.1875rem; font-stretch: 112%; letter-spacing: 0; }

.aside { display: grid; gap: 20px; }
.aside-block { padding: 24px; border: 1px solid var(--rule); border-radius: 6px; background: var(--white); font-size: 1rem; }
.aside-block h2 { margin-bottom: 10px; font-size: 1.125rem; font-stretch: 112%; line-height: 1.2; letter-spacing: 0; }
.aside-block p { margin: 0 0 6px; }
.aside-block p:last-child { margin-bottom: 0; }
.aside-call { border: 0; background: var(--rack); color: #fff; }
.aside-call a { color: #fff; }
.aside-title { display: flex; align-items: center; gap: 12px; }
.aside-list { margin: 0 0 14px; padding: 0; list-style: none; }
.aside-list a { display: block; padding: 7px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.aside-list li:first-child a { border-top: 0; }
.aside-list a:hover { color: var(--navy); text-decoration: underline; }
.aside-list a[aria-current="page"] { font-weight: 660; }

.partner-list { margin: 0; padding: 0; list-style: none; }
.partner-list a { display: grid; gap: 4px 48px; padding-block: 22px; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.partner-list li:first-child a { border-top: 0; padding-top: 0; }
.partner-list strong { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-stretch: 122%; font-weight: 680; line-height: 1.1; }
.partner-list a:hover strong { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; }
.partner-list span { color: var(--ink-soft); }
@media (min-width: 760px) { .partner-list a { grid-template-columns: 240px minmax(0, 1fr); align-items: baseline; } }

/* ---------- footer ---------- */
.site-footer { background: var(--rack); color: #D6E2F0; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 48px; padding-block: clamp(40px, 6vw, 72px) 32px; }
.footer-name { margin-bottom: 10px; color: #fff; font-size: 1.1875rem; font-stretch: 120%; font-weight: 660; line-height: 1.2; }
.footer-title { margin-bottom: 10px; color: #fff; font-stretch: 112%; font-weight: 640; }
.site-footer address { margin-bottom: 12px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 18px 24px; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: 0.9375rem; }
.footer-legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
