@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --dng: #2d5596;
  --electric: #3b6cff;
  --cyan: #19c3e6;
  --violet: #7a5cfa;
  --ink: #12204a;
  --paper: #ffffff;
  --mist: #e7edfb;
  --frost: #f1f5fd;
  --text: #16223d;
  --muted: #4a5873;
  --line: #c9d4ec;
  --flow: #a3adc2;
  --g-web: linear-gradient(120deg, var(--cyan), var(--electric));
  --g-mobile: linear-gradient(120deg, var(--electric), var(--violet));
  --g-backend: linear-gradient(120deg, var(--violet), var(--dng) 60%, var(--ink));
  --g-action: linear-gradient(120deg, #142c66, var(--dng) 60%, #3a5fb8);
  --g-action-hover: linear-gradient(120deg, #0f2253, #24498a 60%, #2f54aa);
  --wrap: 1180px;
  --prose: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.65 "Jakarta", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--dng); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--electric); }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Jakarta", sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 0; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

/* Boutons d'action */
.btn, .nav .nav-mail { display: inline-block; color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; background: var(--g-action); }
.btn { padding: 15px 26px; box-shadow: 0 10px 26px -12px rgba(20, 44, 102, .8); }
.btn:hover, .nav .nav-mail:hover { color: #fff; background: var(--g-action-hover); }

/* Les ancres ne passent pas sous l'en-tête fixe */
[id] { scroll-margin-top: 92px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { display: block; width: 150px; }
.nav-list, .sub { list-style: none; margin: 0; padding: 0; }
.nav a, .sub-toggle { color: var(--text); text-decoration: none; font: 500 1rem/1.4 "Jakarta", sans-serif; background: none; border: 0; padding: 0; cursor: pointer; }
.nav a:hover, .sub-toggle:hover { color: var(--electric); }
/* Sous-menu « Offre » : <details>, utilisable au toucher et au clavier sans JavaScript */
.sub-toggle { display: block; list-style: none; }
.sub-toggle::-webkit-details-marker { display: none; }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 7px; vertical-align: 3px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; transition: transform .15s; }
.has-sub[open] > .sub-toggle::after { transform: rotate(180deg); }
.nav a[aria-current="page"], .sub-toggle.is-active { color: var(--electric); }
.nav .nav-mail { padding: 10px 18px; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; }

@media (min-width: 800px) {
  .menu-toggle { display: none; }
  .nav-list { display: flex; gap: 28px; align-items: center; }
  .has-sub { position: relative; }
  .sub { position: absolute; top: calc(100% + 12px); left: -16px; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 40px -20px rgba(18, 32, 74, .45); }
  .sub a { display: block; padding: 9px 12px; border-radius: 8px; }
  .sub a:hover { background: var(--frost); }
}

@media (max-width: 799px) {
  .burger { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
  .burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .burger span::before { position: absolute; top: -6px; }
  .burger span::after { position: absolute; top: 6px; }
  .menu-toggle:checked + .burger span { background: transparent; }
  .menu-toggle:checked + .burger span::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle:checked + .burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .menu-toggle:focus-visible + .burger { outline: 3px solid var(--electric); outline-offset: 2px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 76px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(18, 32, 74, .35); padding: 8px 16px 20px; }
  .menu-toggle:checked ~ .nav { display: block; }
  .nav-list > li > a, .sub-toggle { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--mist); font-size: 1.05rem; }
  .has-sub[open] > .sub-toggle { border-bottom: 0; padding-bottom: 6px; }
  .sub { padding-left: 14px; border-left: 3px solid; border-image: var(--g-mobile) 1; margin-bottom: 8px; }
  .sub a { display: block; padding: 10px 0; }
  .nav .nav-mail { display: block; margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* Fond commun du bandeau d'accueil et des en-têtes de page */
.hero, .page-head {
  background:
    radial-gradient(55% 70% at 88% 25%, rgba(25, 195, 230, .28), transparent 70%),
    radial-gradient(50% 60% at 70% 95%, rgba(122, 92, 250, .22), transparent 70%),
    var(--frost);
  border-bottom: 1px solid var(--line); }

/* Bandeau d'accueil */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 750; text-wrap: balance; }
@media (min-width: 960px) { .hero h1 { max-width: 15ch; } }
.hero-text p { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--muted); max-width: 46ch; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

/* La pile : trois plaques en perspective, dessinées dans un repère fixe 500 x 420
   puis mises à l'échelle, pour que les flèches restent alignées sur les plaques */
.stack-box { --s: 1; position: relative; width: calc(500px * var(--s)); height: calc(470px * var(--s)); justify-self: center; }
@media (min-width: 960px) { .stack-box { justify-self: end; } }
@media (min-width: 960px) and (max-width: 1199px) { .stack-box { --s: .82; } }
@media (max-width: 959px) { .stack-box { --s: .9; } }
@media (max-width: 559px) { .stack-box { --s: .66; } }
@media (max-width: 359px) { .stack-box { --s: .56; } }
.stack { position: absolute; top: 0; left: 0; width: 500px; height: 420px; perspective: 1400px; transform: scale(var(--s)); transform-origin: 0 0; }
.slab { position: absolute; left: 6%; right: 0; height: 150px; border-radius: 26px; transform: rotateX(58deg) rotateZ(-38deg);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 22px 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 0 -1px rgba(18, 32, 74, .28), 0 40px 60px -30px rgba(18, 32, 74, .5); }
.slab .art { position: absolute; left: 7%; top: 50%; height: 78%; width: auto; transform: translateY(-50%); filter: drop-shadow(0 6px 10px rgba(18, 32, 74, .25)); }
.slab span { font: 700 2.1rem/1 "Jakarta", sans-serif; color: #fff; letter-spacing: -.01em; }
.slab-web { top: 10px; background: var(--g-web); z-index: 3; }
.slab-mobile { top: 130px; background: var(--g-mobile); z-index: 2; }
.slab-backend { top: 250px; background: var(--g-backend); z-index: 1; }

/* Flèches Web -> Backend et Mobile -> Backend */
.flows { position: absolute; inset: 0; z-index: 4; overflow: visible; pointer-events: none; }
.flow { fill: none; stroke: var(--flow); stroke-width: 5; stroke-linecap: round; }
.flow-head { fill: var(--flow); }

@media (prefers-reduced-motion: no-preference) {
  .slab { animation: settle .9s cubic-bezier(.2, .8, .2, 1) both; }
  .slab-mobile { animation-delay: .12s; }
  .slab-backend { animation-delay: .24s; }
  @keyframes settle { from { opacity: 0; transform: rotateX(58deg) rotateZ(-38deg) translateZ(-140px) translateY(-60px); } }
}

/* Titres de section */
.section-title { font-size: clamp(1.55rem, 2.6vw, 2.1rem); max-width: 24ch; margin-bottom: 40px; }

/* Expertises en couches */
.layers { padding: clamp(64px, 9vw, 120px) 0; }
.layer { display: grid; gap: 12px 48px; padding: 32px 0 32px 30px; border-top: 1px solid var(--line); position: relative; }
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer::before { content: ""; position: absolute; left: 0; top: 32px; bottom: 32px; width: 6px; }
.layer-web::before { background: var(--g-web); }
.layer-mobile::before { background: var(--g-mobile); }
.layer-backend::before { background: var(--g-backend); }
@media (min-width: 820px) { .layer { grid-template-columns: 1fr 1.3fr; } }
.layer h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.tech { color: var(--muted); margin: 10px 0 0; }
.layer p:not(.tech) { margin: 0 0 12px; max-width: 58ch; }
.layer a { font-weight: 600; }

/* Offre et clients sur fond bleu brume */
.offer { background: var(--mist); padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.offer::after { content: ""; position: absolute; width: 560px; height: 560px; right: -200px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 92, 250, .28), transparent 65%); pointer-events: none; }
.offer .section-title { position: relative; }
.offer-grid { display: grid; gap: 20px; position: relative; }
@media (min-width: 700px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
.offer-item { background: #fff; border-radius: 18px; padding: 26px 26px 28px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.offer-item::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(120deg, var(--cyan), var(--violet)); }
.offer-item:nth-child(2)::before { background: var(--g-web); }
.offer-item:nth-child(3)::before { background: var(--g-mobile); }
.offer-item:nth-child(4)::before { background: var(--g-backend); }
.offer-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.offer-item p { margin: 0 0 14px; color: var(--muted); }
.offer-item a { font-weight: 600; }

.clients { margin-top: clamp(56px, 7vw, 88px); position: relative; }
.clients-title { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 22px; }
.clients ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; }
.clients img { display: block; height: 46px; width: auto; }
@media (max-width: 480px) { .clients ul { gap: 24px 36px; } .clients img { height: 38px; } }

/* En-tête des pages de contenu */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.breadcrumb a { color: inherit; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 750; text-wrap: balance; max-width: 22ch; }
.page-head .lead { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--muted); max-width: var(--prose); margin: 18px 0 0; }

/* Corps des pages de contenu */
.prose { max-width: var(--prose); padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 2.2em 0 .7em; padding-left: 22px; position: relative; clear: both; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; background: var(--g-mobile); }
.prose h2:nth-of-type(3n+1)::before { background: var(--g-web); }
.prose h2:nth-of-type(3n)::before { background: var(--g-backend); }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--electric); }
.prose figure { margin: 2em 0; }
.prose .wide { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.prose .logo-float { float: right; width: 132px; margin: .2em 0 1em 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
@media (max-width: 600px) { .prose .logo-float { width: 88px; padding: 8px; margin-left: 16px; } }

/* Étapes du workflow IA */
.workflow { background: var(--mist); border-block: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.workflow-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.workflow-steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 26px; }
.workflow-steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%;
  font-weight: 700; color: #fff; background: var(--g-web); }
.workflow-steps li:nth-child(2)::before { background: var(--g-mobile); }
.workflow-steps li:nth-child(3)::before { background: linear-gradient(120deg, var(--violet), var(--dng)); }
.workflow-steps li:nth-child(4)::before { background: var(--g-backend); }
.workflow-steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.workflow-steps p { margin: 0; color: var(--muted); }

/* Encart Dossardeur de l'accueil : un dossard */
.bib { position: relative; margin-top: clamp(40px, 5vw, 56px); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 20px 40px -30px rgba(18, 32, 74, .45); }
.bib-band { margin: 0; padding: 11px 24px; border-radius: 8px 8px 0 0; background: linear-gradient(120deg, #18384d, #244e74);
  color: #fff; font-weight: 600; font-size: .92rem; text-align: center; letter-spacing: .01em; }
.bib-body { display: grid; gap: 18px 32px; align-items: center; padding: 24px clamp(20px, 4vw, 40px); }
@media (min-width: 900px) { .bib-body { grid-template-columns: auto 1fr auto; } }
.bib-number { display: flex; align-items: center; gap: 14px; }
.bib-number img { width: 52px; height: auto; border-radius: 22%; }
.bib-number h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #18384d; }
.bib-body p { color: var(--muted); margin: 0; max-width: 62ch; }
.bib-body .btn { justify-self: start; }
.bib-sponsors { list-style: none; margin: 0; padding: 12px 24px 16px; border-top: 2px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bib-sponsors li { font-size: .8rem; font-weight: 600; color: #244e74; background: var(--frost); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* Page Dossardeur */
.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn-ghost { background: #fff; color: var(--dng); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--frost); color: var(--electric); }

.stack-sheet { padding: clamp(48px, 7vw, 80px) 0 0; }
.sheet { margin: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .sheet { grid-template-columns: repeat(2, 1fr); } }
.sheet-row { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-left: 0;
  border-radius: 0 14px 14px 0; padding: 16px 18px 16px 23px; position: relative; }
.sheet-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--g-mobile); }
.sheet-security::before { background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.sheet-backend::before, .sheet-data::before { background: var(--g-backend); }
.sheet-web::before { background: var(--g-web); }
.sheet-ops::before { background: linear-gradient(180deg, var(--dng), var(--ink)); }
.sheet dt { font-weight: 700; color: var(--ink); }
.sheet dd { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 480px) { .sheet-row { grid-template-columns: 1fr; gap: 4px; } }

.shots { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin: 0 0 clamp(8px, 2vw, 24px); }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 36px -24px rgba(18, 32, 74, .55); }
.shots figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.prose code { font-size: .9em; background: var(--frost); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; }


/* Contact (bas de toutes les pages) */
.contact { padding: clamp(64px, 9vw, 120px) 0; background: var(--frost); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); max-width: 26ch; }
.contact p { color: var(--muted); font-size: 1.05rem; margin: 18px 0 28px; }
.mail { display: inline-block; font: 700 clamp(1.1rem, 2.2vw, 1.45rem)/1.3 "Jakarta", sans-serif; letter-spacing: -.01em; text-decoration: none;
  background: var(--g-mobile); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; border-bottom: 2px solid var(--cyan); }
.mail:hover { color: transparent; border-color: var(--violet); }

.foot { background: var(--mist); color: var(--muted); padding: 28px 0; font-size: .95rem; border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot p { margin: 0; }
