/* =========================================================
   Digital Media Africa — Solutions (editorial card grid)
   Scoped page styles. Inherits site tokens from css/style.css
   (--ink, --paper, --accent, --line, --ease-out, .container, .eyebrow, .reveal, .reveal-group).
   ========================================================= */

:root {
  --font-solutions: "Inter", var(--font-body);
}

/* ---------- Lenis smooth scroll base (this page only) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body { background: var(--paper); }

/* ---------- Page intro ---------- */
.sol-intro {
  padding-block: clamp(4rem, 12vw, 7.5rem) clamp(3rem, 8vw, 5rem);
}
.sol-back {
  display: inline-block;
  font-family: var(--font-solutions);
  font-weight: 600;
  font-size: 0.741rem;
  color: var(--ink-70);
  text-decoration: none;
  margin-bottom: 1.6rem;
  transition: color 0.2s var(--ease-out);
}
.sol-back:hover { color: var(--ink); }
.sol-intro .eyebrow { display: block; margin-bottom: 1.4rem; }
.sol-intro-title {
  font-family: var(--font-solutions);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-size: clamp(2.028rem, 6.4vw,4.68rem);
  max-width: 16ch;
  margin: 0 0 1.8rem;
}
.sol-intro-desc {
  font-family: var(--font-solutions);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 42ch;
  margin: 0;
}

.sol-intro-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* ---------- SEA : mise en page deux colonnes (contenu à gauche, photo à droite) ---------- */
.sea-showcase {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.sea-showcase-left { flex: 1 1 42%; min-width: 0; }
.sea-showcase-right { flex: 1 1 50%; min-width: 0; }
.sea-showcase-img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 860px) {
  .sea-showcase { flex-direction: column-reverse; }
  .sea-showcase-left,
  .sea-showcase-right { flex: 1 1 auto; width: 100%; }
  .sea-showcase-right { max-width: 380px; margin: 0 auto; }
}

.sol-label-huge {
  display: block;
  font-family: var(--font-solutions);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(2.73rem, 10vw,6.63rem);
  color: var(--ink);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Solutions grid ---------- */
.sol-stage {
  position: relative;
  z-index: 2;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(5rem, 10vw, 8rem);
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}
.sol-group-heading {
  grid-column: 1 / -1;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.sol-group-heading .eyebrow {
  font-family: var(--font-solutions);
  font-size: 0.6084rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.sol-grid > .sol-group-heading:first-child {
  padding-top: 0;
  border-top: none;
}
@media (max-width: 560px) {
  .sol-group-heading { padding-top: 2rem; }
}

.sol-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: clamp(240px, 28vw, 340px);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: #fff;
}
.sol-card:hover,
.sol-card:focus-within {
  z-index: 10;
}

.sol-card-text { position: relative; z-index: 1; pointer-events: none; transition: opacity 0.35s var(--ease-out); }

.sol-title {
  font-family: var(--font-solutions);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(1.716rem, 4.6vw,2.925rem);
  color: var(--ink);
  margin: 0 0 0.6rem;
  overflow-wrap: break-word;
}

.sol-sub {
  font-family: var(--font-solutions);
  font-weight: 700;
  letter-spacing: normal;
  font-size: clamp(0.858rem, 1.8vw,1.0725rem);
  color: var(--ink-70);
  margin: 0;
}

.sol-card:hover .sol-card-text,
.sol-card:focus-within .sol-card-text { opacity: 0.3; }

/* -- Hover reveal: small portrait photo card that follows the cursor inside the cell -- */
.sol-card-reveal {
  position: absolute;
  z-index: 2;
  top: var(--my, 50%);
  left: var(--mx, 50%);
  width: 40%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.4s var(--ease-out), transform 0.3s var(--ease-out),
    top 0.15s linear, left 0.15s linear;
  pointer-events: none;
}
.sol-card:hover .sol-card-reveal,
.sol-card:focus-within .sol-card-reveal { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

.sol-card-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(11, 13, 16, 0.16);
}
.sol-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.sol-pill {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-solutions);
  font-weight: 700;
  font-size: 0.7176rem;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(11, 13, 16, 0.14);
  transition: transform 0.3s var(--ease-out);
}
.sol-card-reveal:hover .sol-pill { transform: scale(1.07); }

/* ---- Verre liquide (page d'accueil : grille des 6 solutions) ---- */
.sol-card {
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 42%),
    color-mix(in srgb, var(--frame, var(--accent)) 26%, color-mix(in srgb, var(--pastel, #fff) 60%, var(--glass-bg-soft, rgba(255,255,255,0.32))));
  backdrop-filter: blur(var(--glass-blur, 18px)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur, 18px)) saturate(180%);
  border: 1.5px solid color-mix(in srgb, var(--frame, #fff) 40%, var(--glass-border, rgba(255,255,255,0.65)));
  box-shadow:
    0 0 46px -8px color-mix(in srgb, var(--frame, var(--accent)) 50%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.sol-pill {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 50%),
    color-mix(in srgb, var(--frame, var(--accent)) 18%, var(--glass-bg, rgba(255,255,255,0.5)));
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1.5px solid color-mix(in srgb, var(--frame, var(--accent)) 35%, var(--glass-border, rgba(255,255,255,0.65)));
  box-shadow: 0 0 20px -4px color-mix(in srgb, var(--frame, var(--accent)) 45%, transparent);
}

/* ---------- Strategy board (sticky-note grid) ---------- */
.strat-board-section {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem);
  overflow: hidden;
}
.strat-head { text-align: left; }
.strat-title {
  font-family: var(--font-solutions);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(2.028rem, 6.2vw,4.212rem);
  max-width: 12ch;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.strat-lede {
  font-family: var(--font-solutions);
  font-size: clamp(0.819rem, 1.6vw,0.975rem);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 40ch;
  margin: 0;
}

.strat-stage {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

/* Soft floating color blobs behind the board */
.strat-blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}
.strat-blob--a { width: 340px; height: 340px; left: -6%; top: -8%; background: radial-gradient(circle, var(--accent-dim), transparent 70%); animation: strat-drift 14s ease-in-out infinite; }
.strat-blob--b { width: 260px; height: 260px; right: -4%; top: 30%; background: radial-gradient(circle, rgba(248,176,39,0.35), transparent 70%); animation: strat-drift 18s ease-in-out infinite reverse; }
.strat-blob--c { width: 220px; height: 220px; left: 30%; bottom: -10%; background: radial-gradient(circle, rgba(218,106,39,0.18), transparent 70%); animation: strat-drift 16s ease-in-out infinite; animation-delay: -4s; }
@keyframes strat-drift {
  0%, 100% { transform: translate(0, 0) translateY(var(--parallax, 0px)); }
  50% { transform: translate(18px, -22px) translateY(var(--parallax, 0px)); }
}

.strat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.strat-note {
  position: relative;
  background: var(--pastel, #fff);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.4vw, 2rem) clamp(1.4rem, 2.2vw, 1.8rem);
  box-shadow: 0 1px 2px rgba(11,13,16,0.04), 0 18px 34px -22px rgba(11,13,16,0.22);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  cursor: default;
}
.strat-note.reveal { transform: translateY(24px) rotate(var(--rot, 0deg)); }
.strat-note.reveal.is-visible { transform: translateY(0) rotate(var(--rot, 0deg)); }
.strat-note.reveal.is-visible:hover,
.strat-note.reveal.is-visible:focus-within {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 1px 2px rgba(11,13,16,0.05), 0 30px 48px -20px rgba(11,13,16,0.32);
}

.strat-note-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: var(--frame, var(--accent));
  margin-bottom: 1rem;
  animation: strat-bob 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.4s);
}
.strat-note-icon svg { width: 100%; height: 100%; }
@keyframes strat-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.strat-note h3 {
  font-family: var(--font-solutions);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(0.78rem, 1.5vw,0.936rem);
  color: var(--ink);
  margin: 0;
}

.strat-note--center {
  grid-column: 2;
  grid-row: 2;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: 0 1px 2px rgba(11,13,16,0.08), 0 26px 50px -20px rgba(11,13,16,0.4);
}
.strat-note--center .strat-note-icon { color: var(--logo-gold); width: 38px; height: 38px; }
.strat-note--center h3 { color: var(--paper); font-size: clamp(1.014rem, 2vw,1.326rem); }
.strat-note-tag {
  display: inline-block;
  font-family: var(--font-solutions);
  font-weight: 600;
  font-size: 0.5304rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--logo-gold);
  margin-bottom: 0.5rem;
}
.strat-note-pen {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(11,13,16,0.35);
  transform: rotate(-8deg);
}
.strat-note-pen svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .strat-grid { grid-template-columns: repeat(2, 1fr); }
  .strat-note--center { grid-column: auto; grid-row: auto; order: -1; }
}

@media (max-width: 560px) {
  .strat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .strat-note { padding: 1.2rem 1.1rem; border-radius: 12px; }
  .strat-note h3 { font-size: 0.741rem; }
  .strat-note--center { grid-column: span 2; }
  .strat-blob { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .strat-note, .strat-note-icon, .strat-blob, .term-card { animation: none !important; transition: none !important; }
}

/* ---------- Devices showcase (laptop/tablet/phone + terminal cards) ---------- */
.web-showcase {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem);
  text-align: center;
}
.web-showcase-title {
  font-family: var(--font-solutions);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(1.482rem, 4vw,2.34rem);
  max-width: 22ch;
  margin: 0 auto 1.1rem;
  color: var(--ink);
}
.web-showcase-title .accent { color: var(--accent); font-style: normal; }
.web-showcase-sub {
  font-family: var(--font-solutions);
  font-size: clamp(0.78rem, 1.3vw,0.897rem);
  color: var(--ink-70);
  max-width: 40ch;
  margin: 0 auto;
}

.web-stage {
  position: relative;
  max-width: 980px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  min-height: clamp(300px, 30vw, 380px);
}

/* -- Terminal-style feature cards -- */
.term-card {
  position: absolute;
  display: block;
  width: clamp(175px, 18vw, 230px);
  background: #14171A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 36px -18px rgba(11, 13, 16, 0.5);
  text-align: left;
  animation: term-float 5s ease-in-out infinite;
}
@keyframes term-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.term-bar { display: flex; gap: 4px; padding: 6px 9px; background: #1E2226; }
.term-bar i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.term-bar i:nth-child(1) { background: #E5544D; }
.term-bar i:nth-child(2) { background: #E5B74D; }
.term-bar i:nth-child(3) { background: #4DBE5A; }
.term-body {
  display: block;
  padding: 10px 12px 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.5928rem;
  line-height: 1.4;
  color: #7EE787;
}

.term-card--1 { top: 2%;  left: -2%;  animation-delay: 0s; }
.term-card--2 { top: 0%;  right: -4%; animation-delay: -0.8s; }
.term-card--3 { top: 30%; right: -8%; animation-delay: -1.6s; }
.term-card--4 { top: 34%; left: -8%;  animation-delay: -2.4s; }
.term-card--5 { bottom: 16%; right: -2%; animation-delay: -3.2s; }
.term-card--6 { bottom: 2%;  left: 2%;   animation-delay: -4s; }
.term-card--7 { bottom: 0%;  right: 14%; animation-delay: -4.6s; }

.web-showcase-cta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.web-showcase-cta p {
  font-family: var(--font-solutions);
  font-size: 0.702rem;
  color: var(--ink-70);
  margin: 0.9rem 0 0;
}

@media (max-width: 760px) {
  .term-card { position: static; width: auto; margin-bottom: 0.6rem; }
  .web-stage { display: flex; flex-direction: column; gap: 0.6rem; min-height: 0; }
}

/* ---------- Closing (quiet beat before the footer) ---------- */
.sol-close {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 10vw, 7rem);
}
.sol-close .eyebrow { display: block; margin-bottom: 1.2rem; }
.sol-close-title {
  font-family: var(--font-solutions);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(1.404rem, 3.6vw,2.496rem);
  max-width: 20ch;
  margin: 0 0 1.6rem;
}
.sol-close-link { font-size: 0.819rem; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .sol-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-card { transition: none; }
}

/* ---------- Schéma SEO : mind-map dessiné à la main ---------- */
.seo-explain {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem);
  text-align: center;
}
.seo-explain .web-showcase-title,
.seo-explain .web-showcase-sub { text-align: center; }

.seo-map {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1;
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
}
.seo-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seo-map-line { fill: none; stroke: #2B2E33; stroke-width: 0.6; stroke-linecap: round; opacity: 0.55; }

.seo-map-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  z-index: 2; text-align: center; width: 160px;
}
.seo-map-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.794rem, 5vw,2.418rem);
  color: #1F3B73;
}
.seo-map-sub {
  font-family: "Kalam", cursive;
  font-weight: 400;
  font-size: 0.624rem;
  line-height: 1.25;
  color: var(--ink-70);
}

.seo-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  width: 96px;
  z-index: 1;
}
.seo-node svg { width: 30px; height: 30px; }
.seo-node span {
  font-family: "Kalam", cursive;
  font-weight: 700;
  font-size: 0.6708rem;
  line-height: 1.15;
  color: #2B2E33;
}

.seo-node--1 { top: 8%;  left: 50%; }
.seo-node--2 { top: 19%; left: 82%; }
.seo-node--3 { top: 50%; left: 94%; }
.seo-node--4 { top: 81%; left: 82%; }
.seo-node--5 { top: 92%; left: 50%; }
.seo-node--6 { top: 81%; left: 18%; }
.seo-node--7 { top: 50%; left: 6%; }
.seo-node--8 { top: 19%; left: 18%; }

.seo-map-pencils {
  position: absolute; bottom: -4%; left: -8%; width: 90px; height: 60px; z-index: 0;
}

/* ---------- Grille Produits (hub /produits.html) ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(1.4rem, 2.6vw, 1.8rem);
}
.prod-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 46px -26px rgba(11, 13, 16, 0.28);
  border-color: transparent;
}
.prod-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.5616rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}
.prod-card h3 {
  font-family: var(--font-solutions);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 0.975rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.prod-card p {
  font-family: var(--font-solutions);
  font-size: 0.6864rem;
  line-height: 1.4;
  color: var(--ink-70);
  margin: 0 0 1.1rem;
}
.prod-card-cta {
  font-family: var(--font-solutions);
  font-weight: 700;
  font-size: 0.663rem;
  color: var(--accent);
}
@media (max-width: 560px) {
  .prod-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .prod-grid { grid-template-columns: 1fr; }
}

/* ---------- Blocs explicatifs NFC (produit-nfc.html) ---------- */
.nfc-blocks {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 4rem);
}
.nfc-block {
  padding-block: clamp(2.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.nfc-block:first-child { border-top: none; padding-top: 0; }
.nfc-block-num {
  display: block;
  font-family: var(--font-solutions);
  font-weight: 700;
  font-size: 0.585rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.nfc-block-title {
  font-family: var(--font-solutions);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(1.326rem, 3.2vw,1.872rem);
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.nfc-block-desc {
  font-family: var(--font-solutions);
  font-size: clamp(0.78rem, 1.3vw,0.858rem);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 62ch;
  margin: 0 0 1.3rem;
}

@media (max-width: 900px) {
  .seo-map { width: min(100%, 460px); }
  .seo-node { width: 78px; }
  .seo-node svg { width: 25px; height: 25px; }
  .seo-node span { font-size: 0.585rem; }
  .seo-map-word { font-size: clamp(1.482rem, 6vw,1.872rem); }
  .seo-map-sub { font-size: 0.546rem; }
  .seo-map-pencils { width: 66px; height: 44px; }
}
