/* AFRITECH : feuille de style du site (couleurs tirées du logo) */
:root {
  --bleu: #005894;        /* bleu circuit du logo */
  --bleu-fonce: #00406E;
  --rouge: #E31B23;       /* rouge du mot AFRITECH */
  --encre: #0D2238;       /* texte principal, bleu nuit */
  --gris: #4E5F72;        /* texte secondaire */
  --brume: #F2F6FA;       /* fonds de section */
  --trait: #D9E2EC;
  --blanc: #FFFFFF;
  --wa: #128C4A;          /* vert WhatsApp assombri pour le contraste */
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--blanc); color: var(--encre);
  font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 100;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Titres : Archivo élargi pour les titres, normal pour le texte ---------- */
h1, h2, h3 { font-stretch: 112%; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 780; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 740; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.small-h { font-size: 1rem; font-weight: 600; color: var(--gris); font-stretch: 100%; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.lead { font-size: 1.2rem; color: var(--gris); max-width: 34em; margin: 22px 0 0; }
.section-lead { font-size: 1.1rem; color: var(--gris); max-width: 40em; margin: 14px 0 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(.97); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(18, 140, 74, .28); }
.btn-wa:hover { background: #0F7A40; }
.btn-line { color: var(--encre); box-shadow: inset 0 0 0 2px var(--trait); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--bleu); color: var(--bleu); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Barre de navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: box-shadow .25s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--trait); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.brand img { width: 46px; height: auto; }
.brand-name { font-weight: 800; font-size: 1.32rem; letter-spacing: .02em; font-variation-settings: "wdth" 125; font-stretch: 125%; color: var(--rouge); }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { color: var(--encre); text-decoration: none; font-weight: 550; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.links a:hover { color: var(--bleu); border-color: var(--bleu); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--encre); border-radius: 2px; transition: transform .25s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { padding: 8px 20px 20px; border-top: 1px solid var(--trait); background: #fff; }
.menu a { display: block; padding: 14px 4px; font-size: 1.15rem; font-weight: 600; color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--trait); }

/* ---------- Héros et circuit ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-note { color: var(--gris); font-size: .95rem; margin: 18px 0 0; }
.circuit { position: relative; aspect-ratio: 560 / 520; width: 100%; }
.traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.traces .t { stroke: var(--bleu); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1s var(--ease) forwards; }
.traces .t:nth-child(1) { animation-delay: .35s; } .traces .t:nth-child(2) { animation-delay: .45s; } .traces .t:nth-child(3) { animation-delay: .55s; }
.traces .t:nth-child(4) { animation-delay: .65s; } .traces .t:nth-child(5) { animation-delay: .75s; } .traces .t:nth-child(6) { animation-delay: .85s; }
.pads circle { fill: #fff; stroke: var(--rouge); stroke-width: 4; opacity: 0; animation: pad .35s var(--ease) forwards; animation-delay: 1.1s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes pad { to { opacity: 1; } }
.mark { position: absolute; left: 51.8%; top: 51%; width: 43%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 30px rgba(0, 64, 110, .14)); }
.node {
  position: absolute; left: var(--x); top: var(--y); white-space: nowrap; font-weight: 650; font-size: .95rem; color: var(--encre);
  background: #fff; padding: 7px 14px; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--trait), 0 6px 16px rgba(13, 34, 56, .06);
  opacity: 0; animation: label .45s var(--ease) forwards; animation-delay: var(--d);
}
.node.up { transform: translate(-50%, calc(-100% - 16px)); }
.node.down { transform: translate(-50%, 16px); }
.node.edge-r.up, .node.edge-r.down { transform: translate(-88%, calc(-100% - 16px)); }
.node.edge-r.down { transform: translate(-88%, 16px); }
.node.edge-l.down { transform: translate(-12%, 16px); }
@keyframes label { to { opacity: 1; } }

/* ---------- Clients et partenaires ---------- */
.clients { padding: 28px 0 56px; border-top: 1px solid var(--trait); }
.logos { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logos li { height: 84px; display: grid; place-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--brume); }
.logos img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.logos-p { grid-template-columns: repeat(7, 1fr); }
.logos-p li { background: transparent; box-shadow: inset 0 0 0 1px var(--trait); }
.logos-p img { max-height: 34px; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos-p li:hover img { filter: none; opacity: 1; }

/* ---------- Services ---------- */
.services { padding: 88px 0; background: var(--brume); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.feature.reverse > img { order: 2; }
.feature p { color: var(--gris); margin: 12px 0 0; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-top: 8px; font-weight: 550; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--rouge); background: #fff; }
.more { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--encre); }
.more-item { padding: 22px 22px 0 0; }
.more-item + .more-item { padding-left: 22px; border-left: 1px solid var(--trait); }
.more-item p { color: var(--gris); font-size: .98rem; margin: 10px 0 0; }

/* ---------- Logiciels ---------- */
.soft { padding: 96px 0; }
.soft-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; }
.apps { margin: 30px 0 32px; }
.apps div { padding: 16px 0; border-bottom: 1px solid var(--trait); display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.apps dt { font-weight: 750; color: var(--bleu); }
.apps dd { margin: 0; color: var(--gris); }
.phone { margin: 0; justify-self: center; width: min(300px, 100%); }
.phone img { width: 100%; border-radius: 38px; box-shadow: 0 0 0 10px #0D2238, 0 30px 70px rgba(13, 34, 56, .25); }
.phone figcaption { text-align: center; color: var(--gris); font-size: .9rem; margin-top: 24px; }

/* ---------- Méthode (séquence réelle, donc numérotée) ---------- */
.method { padding: 88px 0; background: var(--encre); color: #fff; }
.method h2 { color: #fff; }
.steps { list-style: none; counter-reset: etape; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: etape; padding: 0 26px 0 0; position: relative; }
.steps li::before {
  content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--rouge); font-weight: 800; margin-bottom: 18px; background: var(--encre); position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.steps p { color: rgba(255, 255, 255, .72); margin: 8px 0 0; }

/* ---------- Partenaires, contact, pied de page ---------- */
.partners { padding: 64px 0; }
.contact { padding: 88px 0; background: var(--brume); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.coords { margin: 0; display: grid; gap: 0; background: #fff; border-radius: 22px; padding: 8px 28px; box-shadow: 0 0 0 1px var(--trait); }
.coords div { padding: 18px 0; border-bottom: 1px solid var(--trait); }
.coords div:last-child { border-bottom: 0; }
.coords dt { font-size: .9rem; color: var(--gris); }
.coords dd { margin: 2px 0 0; font-weight: 650; font-size: 1.1rem; }
.coords a { text-decoration: none; }
.foot { padding: 32px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.credits { color: var(--gris); font-size: .85rem; margin: 0; text-align: right; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(18, 140, 74, .4); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 980px) {
  .links, .nav-cta { display: none; }
  .burger { display: block; }
  .hero { padding: 28px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .circuit { max-width: 520px; margin: 8px auto 0; width: 100%; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logos-p { grid-template-columns: repeat(4, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; }
  .feature.reverse > img { order: 0; }
  .more { grid-template-columns: 1fr 1fr; }
  .more-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .soft-in, .contact-in { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-in { height: 66px; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1.15rem; }
  .cta .btn { width: 100%; justify-content: center; }
  .node { font-size: .78rem; padding: 5px 10px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos-p { grid-template-columns: repeat(3, 1fr); }
  .more { grid-template-columns: 1fr; }
  .more-item, .more-item + .more-item { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
  .apps div { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .credits { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .traces .t { animation: none; stroke-dashoffset: 0; }
  .pads circle, .node { animation: none; opacity: 1; }
}

/* Corrections après relecture visuelle */
.feature img, .phone img, .logos img { height: auto; }
.feature img { aspect-ratio: 3 / 2; }
h1, h2 { text-wrap: balance; }
.lead, .section-lead, .feature p { text-wrap: pretty; }
