/* Afriq'com — bleu marine et rouge du logo, mise en page claire et aérée */
:root {
  --navy: #1c3b8f;
  --navy-2: #142c6e;
  --deep: #0b1640;
  --deep-2: #101d52;
  --red: #e4151a;
  --red-2: #c10f14;
  --ink: #141a33;
  --ink-2: #4a5170;
  --muted: #6f7590;
  --line: #e3e6f0;
  --soft: #f4f6fb;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-h: 'Montserrat', system-ui, sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(20, 26, 51, .05), 0 12px 32px rgba(20, 26, 51, .08);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink); background: var(--white); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-h); margin: 0; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 .95rem/1 var(--font); text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 17px 28px; font-size: 1rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .ic { width: 1.1em; height: 1.1em; }

/* Bandeau et navigation */
.topbar { background: var(--deep); color: rgba(255,255,255,.78); font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar__links { gap: 20px !important; }
.topbar a:hover { color: #fff; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20,26,51,.06); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav__logo img { height: 50px; width: auto; }
.nav__menu { display: flex; gap: 4px; margin-left: auto; }
.nav__menu a { font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink-2); padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav__menu a:hover, .nav__menu a.is-active { background: var(--soft); color: var(--navy); }
.nav__burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav__burger .ic { width: 22px; height: 22px; }
.mmenu { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); background: #fff; }
.mmenu[hidden] { display: none; }
.mmenu a:not(.btn) { padding: 14px 6px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mmenu .btn { margin-top: 12px; }

/* Ouverture */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 0%, #24409a 0%, transparent 55%), linear-gradient(160deg, var(--deep-2), var(--deep) 60%); padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero__glow { position: absolute; z-index: -1; width: 560px; height: 560px; left: -160px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(228,21,26,.35), transparent 65%); filter: blur(10px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.9); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(228,21,26,.25); }
.hero h1 { margin-top: 22px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 800; text-wrap: balance; }
.hero h1 span { color: #ff5a5e; }
.hero__lead { margin-top: 20px; max-width: 56ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255,255,255,.8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: rgba(255,255,255,.82); font-size: .92rem; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .ic { color: #4ade80; }
.hero__media { position: relative; }
.hero__photo { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); aspect-ratio: 4 / 4.2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: 0 18px 40px rgba(11,22,64,.28); }
.hero__card--a { left: -24px; top: 28px; flex-direction: column; align-items: flex-start; gap: 0; }
.hero__card--a strong { font: 800 2rem/1 var(--font-h); color: var(--navy); }
.hero__card--a sup { color: var(--red); font-size: .55em; }
.hero__card--a span { font-size: .85rem; color: var(--ink-2); }
.hero__card--b { right: -18px; bottom: 32px; }
.hero__card-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fde8e8; color: var(--red); }
.hero__card b { display: block; font-size: .95rem; }
.hero__card small { color: var(--muted); font-size: .8rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 6vw, 72px) 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.stats div { padding: 26px 8px 0; }
.stats dt { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-h); }
.stats sup { color: #ff5a5e; font-size: .5em; }
.stats dd { margin: 8px 0 0; color: rgba(255,255,255,.72); font-size: .95rem; }

/* Références qui défilent */
.trust { padding: 36px 0; border-bottom: 1px solid var(--line); }
.trust__title { text-align: center; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.marquee { margin-top: 20px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 48px; padding-right: 48px; }
.marquee li { font: 700 1.05rem/1 var(--font-h); color: #8a90a8; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: linear-gradient(170deg, var(--deep-2), var(--deep)); color: #fff; }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.head--row > div { max-width: 620px; }
.head h2, .agence h2, .contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; text-wrap: balance; }
.head h2 span, .agence h2 span, .contact h2 span { color: var(--red); }
.head--light h2 span { color: #ff5a5e; }
.head p { margin-top: 14px; font-size: 1.08rem; color: var(--ink-2); }
.head--light p { color: rgba(255,255,255,.75); }
.head a { color: var(--navy); font-weight: 700; }

/* Expertises : onglets */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px; background: var(--soft); border-radius: 24px; width: fit-content; max-width: 100%; margin: 0 auto 28px; }
.tab { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem/1 var(--font); color: var(--ink-2); background: transparent; border: 0; padding: 12px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.tab[aria-selected="true"] .ic { color: var(--red); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); animation: fade .45s var(--ease); }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.panel__body { padding: clamp(4px, 2vw, 20px); }
.panel__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fde8e8; color: var(--red); }
.panel__ic .ic { width: 26px; height: 26px; }
.panel h3 { margin-top: 20px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; }
.panel p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
.checks { display: grid; gap: 12px; margin: 24px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { margin-top: 3px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #e6f6ec; color: #16a34a; stroke-width: 3; }
.panel__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--soft); }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }

/* Réalisations */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .88rem/1 var(--font); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work[hidden] { display: none; }
.work figure { aspect-ratio: 3 / 2; overflow: hidden; background: #e9ecf5; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work__body { padding: 20px 22px 24px; }
.work__sector { font-size: .8rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.work h3 { margin-top: 8px; font-size: 1.15rem; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font-size: .8rem; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.steps__n { font: 800 .9rem/1 var(--font-h); color: #ff5a5e; letter-spacing: .08em; }
.steps h3 { margin-top: 18px; font-size: 1.25rem; }
.steps p { margin-top: 10px; color: rgba(255,255,255,.72); }

/* L'agence */
.agence { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.agence__media { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.agence__media img { width: 100%; height: 100%; object-fit: cover; }
.agence .lead { margin-top: 18px; font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.agence__text > p:not(.lead) { margin-top: 14px; color: var(--ink-2); }
.person { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--soft); }
.person__ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .95rem/1 var(--font-h); }
.person strong { display: block; }
.person small { color: var(--muted); font-size: .88rem; }

/* Questions */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--soft); color: var(--navy); transition: transform .25s var(--ease), background .2s; }
.faq details[open] .faq__ic { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: radial-gradient(120% 120% at 100% 0%, #24409a, transparent 55%), linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff; }
.contact h2 span { color: #ff5a5e; }
.contact__text > p { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.contact__list { display: grid; gap: 10px; margin-top: 28px; }
.contact__list a, .contact__list div { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-decoration: none; transition: background .2s; }
.contact__list a:hover { background: rgba(255,255,255,.12); }
.contact__list span { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); }
.contact__list small { color: rgba(255,255,255,.72); }
.form { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; align-content: start; }
.form h3 { font-size: 1.4rem; }
.form__hint { color: var(--muted); font-size: .9rem; margin-top: -8px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: 400 1rem/1.4 var(--font); color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(28,59,143,.12); }
.form__error { color: var(--red-2); font-size: .9rem; font-weight: 600; }

/* Pied de page */
.footer { background: var(--deep); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 16px; padding: 12px 16px; }
.footer__logo img { height: 52px; width: auto; }
.footer__grid > div > p { margin-top: 16px; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer__bottom a { color: #fff; }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ic { width: 26px; height: 26px; }

/* Apparitions au défilement */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: grid; }
}
@media (max-width: 960px) {
  .hero__grid, .panel, .agence, .faq, .contact { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__card--a { left: 12px; }
  .hero__card--b { right: 12px; }
  .works { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; margin-left: 0; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
}
@media (max-width: 640px) {
  .topbar__in > span:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__links a:last-child { display: none; }
  .nav__in { height: 66px; }
  .nav__logo img { height: 42px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .works, .steps, .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__card--b { display: none; }
  .head--row { display: block; }
  .head--row .chips { margin-top: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .chip { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
