@import "tailwindcss";

:root {
  --paper: #f7f8fa;
  --paper-2: #edf1f5;
  --ink: #304060;
  --muted: #69748a;
  --brand-purple: #504080;
  --brand-purple-deep: #403060;
  --brand-blue: #3070a0;
  --brand-cyan: #3080b0;
  --accent: var(--brand-purple);
  --line: rgba(48, 64, 96, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--brand-purple); color: white; }

.site-header {
  position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 78px; padding: 0 4vw; border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 250, 0.94); backdrop-filter: blur(14px);
}
.brand-logo { display: inline-flex; width: 184px; max-width: 34vw; }
.brand-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.site-header nav { display: flex; gap: 34px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.site-header nav a, .text-link, .footer-links a { transition: color .2s ease; }
.site-header nav a:hover, .text-link:hover, .footer-links a:hover { color: var(--brand-cyan); }
.header-cta { justify-self: end; display: flex; gap: 22px; align-items: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.header-cta span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--brand-purple); color: white; transition: transform .25s ease, background .25s ease; }
.header-cta:hover span { background: var(--brand-cyan); }
.header-cta:hover span { transform: rotate(45deg); }

.hero { min-height: 760px; display: grid; grid-template-columns: 58% 42%; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-copy { padding: clamp(70px, 9vw, 140px) 4vw 75px; border-right: 1px solid var(--line); }
.eyebrow { margin: 0 0 28px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.eyebrow span { color: var(--brand-purple); }
.eyebrow.light { color: #aaa79f; }
.hero h1, .section-heading h2, .arksoft h2, .services-intro h2, .presence h2, .contact h2 {
  margin: 0; font-size: clamp(62px, 8vw, 126px); font-weight: 900; line-height: .83; letter-spacing: -.075em; text-transform: uppercase;
}
h1 em, h2 em { display: inline-block; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; text-transform: none; letter-spacing: -.06em; }
.hero-intro { max-width: 620px; margin: 42px 0 0; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.5; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 38px; margin-top: 38px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 48px; min-width: 245px; padding: 19px 21px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--brand-purple); color: white; }
.button-primary:hover { background: var(--brand-blue); }
.text-link { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--ink); padding: 8px 0; }
.text-link span { margin-left: 14px; }

.hero-art { position: relative; min-height: 760px; background: var(--paper-2); overflow: hidden; }
.hero-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity: .35; }
.paper { position: absolute; width: min(63%, 410px); aspect-ratio: .72; box-shadow: 0 30px 55px rgba(32,32,29,.13); }
.paper-back { top: 12%; left: 12%; background: #cbd3df; transform: rotate(-7deg); }
.paper-front { top: 15%; left: 21%; z-index: 3; display: flex; flex-direction: column; padding: 42px; background: #fbfcfd; transform: rotate(4deg); }
.paper-label { font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.paper-front strong { margin-top: auto; font-size: clamp(90px, 10vw, 160px); line-height: .8; letter-spacing: -.1em; }
.paper-front small { margin-top: 20px; font-size: 13px; line-height: 1.4; text-transform: uppercase; font-weight: 800; }
.paper-rule { height: 1px; background: var(--ink); margin: 28px 0 14px; }
.paper-footer { font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.red-disc { position: absolute; z-index: 4; right: 5%; bottom: 7%; width: clamp(135px, 12vw, 190px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple) 72%); mix-blend-mode: multiply; animation: breathe 7s ease-in-out infinite; }
.registration-mark { position: absolute; z-index: 5; top: 7%; right: 8%; width: 43px; height: 43px; border: 1px solid var(--ink); border-radius: 50%; }
.registration-mark::before, .registration-mark::after { content: ""; position: absolute; background: var(--ink); }
.registration-mark::before { left: 50%; top: -10px; width: 1px; height: 61px; }
.registration-mark::after { top: 50%; left: -10px; width: 61px; height: 1px; }
@keyframes breathe { 50% { transform: scale(.94) translate(-8px, -5px); } }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.proof-strip p { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 27px 4vw; border-right: 1px solid var(--line); }
.proof-strip p:last-child { border-right: 0; }
.proof-strip strong { font-size: 24px; letter-spacing: -.05em; }
.proof-strip span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }

.section { padding: 120px 4vw; }
.section-heading { display: grid; grid-template-columns: 1fr 2.25fr 1fr; align-items: end; gap: 4vw; margin-bottom: 75px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2, .arksoft h2, .services-intro h2, .presence h2, .contact h2 { font-size: clamp(48px, 6.3vw, 98px); }
.section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.solution-card { min-height: 370px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, color .25s ease, transform .25s ease; }
.solution-card:hover { background: var(--ink); color: white; transform: translateY(-5px); }
.card-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--muted); }
.solution-card h3 { margin: auto 0 18px; font-size: clamp(30px, 3vw, 48px); letter-spacing: -.055em; }
.solution-card p { margin: 0 0 26px; max-width: 390px; color: var(--muted); line-height: 1.55; }
.solution-card:hover p, .solution-card:hover .card-top { color: #b8b5ae; }
.solution-card small { padding-top: 16px; border-top: 1px solid currentColor; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }

.arksoft { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(135deg, var(--brand-purple-deep), var(--brand-blue)); color: white; }
.arksoft-mark { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 6vw; overflow: hidden; border-right: 1px solid rgba(255,255,255,.3); font-size: clamp(68px, 10vw, 170px); font-weight: 900; letter-spacing: -.09em; line-height: .76; }
.arksoft-mark span:last-child { margin-left: 8%; }
.arksoft-mark i { position: absolute; right: 9%; top: 10%; font-family: Georgia, serif; font-size: 70px; font-weight: 400; }
.arksoft-mark::after { content: ""; position: absolute; right: -9%; bottom: -19%; width: 46%; aspect-ratio: 1; border: 2px solid white; border-radius: 50%; opacity: .5; }
.arksoft-copy { align-self: center; max-width: 720px; padding: 7vw; }
.arksoft-copy p:not(.eyebrow) { margin: 40px 0; max-width: 590px; font-size: 18px; line-height: 1.7; color: #dce9f2; }
.arksoft-copy ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.4); }
.arksoft-copy li { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 800; }

.services-section { display: grid; grid-template-columns: .85fr 1.4fr; gap: 9vw; background: var(--ink); color: white; }
.services-intro > p:last-child { margin-top: 40px; max-width: 440px; color: #aaa79f; line-height: 1.65; }
.services-list { border-top: 1px solid #5a5954; }
.services-list article { display: grid; grid-template-columns: 50px .9fr 1.1fr; gap: 30px; align-items: start; padding: 32px 0; border-bottom: 1px solid #5a5954; }
.services-list span { color: var(--brand-cyan); font-size: 10px; }
.services-list h3 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.services-list p { margin: 0; color: #aaa79f; line-height: 1.55; }

.partners { padding: 90px 4vw; border-bottom: 1px solid var(--line); }
.partner-row { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; margin-top: 55px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-row strong { display: grid; place-items: center; min-height: 115px; padding: 20px; border-right: 1px solid var(--line); text-align: center; font-size: 13px; letter-spacing: -.02em; }
.partner-row strong:last-child { border-right: 0; }
.partner-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; }

.presence { display: grid; grid-template-columns: .75fr 1.25fr; min-height: 650px; border-bottom: 1px solid var(--line); }
.presence-copy { padding: 110px 4vw; border-right: 1px solid var(--line); }
.presence-map { position: relative; min-height: 650px; background: var(--paper-2); overflow: hidden; }
.presence-map::before { content: "AFRIQUE"; position: absolute; right: -4%; bottom: -6%; font-size: clamp(100px, 18vw, 280px); font-weight: 900; color: rgba(32,32,29,.055); letter-spacing: -.08em; }
.route-line { position: absolute; left: 28%; top: 32%; width: 42%; height: 48%; border-left: 1px dashed var(--brand-cyan); border-bottom: 1px dashed var(--brand-cyan); transform: skew(-16deg); }
.location { position: absolute; display: grid; grid-template-columns: 22px auto; column-gap: 11px; }
.location i { grid-row: 1 / 3; width: 14px; height: 14px; margin-top: 3px; border: 4px solid var(--brand-purple); border-radius: 50%; background: var(--paper-2); }
.location span { font-size: 17px; font-weight: 800; }
.location small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 8px; margin-top: 4px; }
.location-casa { left: 22%; top: 23%; }
.location-rabat { left: 43%; top: 38%; }
.location-dakar { left: 66%; top: 72%; }

.contact { padding: 120px 4vw; background: linear-gradient(120deg, var(--brand-purple-deep), var(--brand-purple) 48%, var(--brand-blue)); color: white; text-align: center; }
.contact h2 { font-size: clamp(58px, 9vw, 140px); }
.contact-actions { display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 60px; }
.button-light { background: white; color: var(--brand-purple); }
.phone-link { padding-bottom: 7px; border-bottom: 1px solid white; font-size: 14px; font-weight: 800; }

footer { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr .7fr; gap: 6vw; padding: 75px 4vw 110px; background: #202a42; color: white; }
.footer-logo-plate { max-width: 205px; padding: 10px 11px; border-radius: 4px; background: white; }
.footer-brand p, footer > div p { color: #aeb8c9; line-height: 1.6; font-size: 13px; }
footer h3 { margin: 0 0 15px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.footer-links { display: flex; flex-direction: column; gap: 13px; font-size: 12px; font-weight: 700; }
.copyright { position: absolute; left: 4vw; bottom: 30px; margin: 0; color: #66645f; font-size: 10px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; }
  .hero-art { min-height: 650px; border-top: 1px solid var(--line); }
  .paper-front { left: 29%; }
  .paper-back { left: 22%; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip p:nth-child(2) { border-right: 0; }
  .proof-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .arksoft { grid-template-columns: 1fr; }
  .arksoft-mark { min-height: 520px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.3); }
  .services-section, .presence { grid-template-columns: 1fr; }
  .services-intro { margin-bottom: 30px; }
  .presence-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
  .partner-row strong:nth-child(3) { border-right: 0; }
  .partner-row strong:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; flex-direction: row; }
}

@media (max-width: 680px) {
  .site-header { min-height: 66px; padding: 0 20px; }
  .header-cta { font-size: 0; gap: 0; }
  .hero-copy { padding: 70px 20px 60px; }
  .hero h1 { font-size: clamp(52px, 17vw, 88px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-art { min-height: 510px; }
  .paper { width: 64%; }
  .paper-back { left: 12%; }
  .paper-front { left: 22%; padding: 26px; }
  .paper-front strong { font-size: 90px; }
  .red-disc { right: 2%; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 85px 20px; }
  .section-heading { display: block; margin-bottom: 50px; }
  .section-heading h2 { margin-bottom: 30px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 330px; }
  .arksoft-mark { min-height: 390px; padding: 45px 20px; }
  .arksoft-copy { padding: 85px 20px; }
  .services-section { gap: 30px; }
  .services-list article { grid-template-columns: 34px 1fr; gap: 14px; }
  .services-list article p { grid-column: 2; }
  .partners { padding: 75px 20px; }
  .partner-row { grid-template-columns: repeat(2, 1fr); }
  .partner-row strong { border-bottom: 1px solid var(--line); }
  .partner-row strong:nth-child(odd) { border-right: 1px solid var(--line); }
  .partner-row strong:nth-child(even) { border-right: 0; }
  .presence-copy { padding: 85px 20px; }
  .presence-map { min-height: 510px; }
  .location-casa { left: 12%; }
  .location-rabat { left: 42%; }
  .location-dakar { left: 59%; }
  .contact { padding: 90px 20px; text-align: left; }
  .contact h2 { font-size: clamp(50px, 16vw, 80px); }
  .contact-actions { align-items: flex-start; flex-direction: column; gap: 25px; }
  .button { width: 100%; min-width: 0; }
  footer { grid-template-columns: 1fr; padding: 70px 20px 110px; }
  .footer-links { grid-column: auto; flex-direction: column; }
  .copyright { left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
