/* Pivotech West-Africa · base, typographie et éléments communs */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--pv-ink);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pv-blue-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--pv-ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =======================================================
   Grille
   ======================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--surface { background: var(--surface); }
.section--night { background: var(--night-700); color: var(--muted-dark); }
.section--night h2,
.section--night h3 { color: var(--white); }

/* =======================================================
   En-tête de section : « // intitulé », mot fantôme, titre
   ======================================================= */

.sec-head { position: relative; margin-bottom: clamp(32px, 4vw, 56px); }

.sec-head__eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pv-blue-ink);
  margin-bottom: 12px;
}
.section--night .sec-head__eyebrow { color: var(--pv-blue); }

.sec-head__title { font-size: var(--fs-h2); max-width: 20ch; }
.sec-head__title em { font-style: normal; color: var(--pv-blue-ink); }
.section--night .sec-head__title em { color: var(--pv-blue); }

.sec-head__lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: var(--fs-lead);
  color: var(--muted);
}
.section--night .sec-head__lead { color: var(--muted-dark); }

.sec-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.sec-head--center { text-align: center; }
.sec-head--center .sec-head__eyebrow { justify-content: center; }
.sec-head--center .sec-head__title { margin-inline: auto; }
.sec-head--center .sec-head__lead { margin-inline: auto; }

/* =======================================================
   Boutons
   ======================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .975rem;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary { background: var(--pv-blue-ink); color: var(--white); }
.btn--primary:hover { background: var(--pv-blue-deep); }

.btn--light { background: var(--white); color: var(--pv-ink); }
.btn--light:hover { background: var(--pv-blue-soft); }

.btn--ghost { border-color: var(--line); background: transparent; color: var(--pv-ink); }
.btn--ghost:hover { border-color: var(--pv-ink); }

.btn--ghost-light { border-color: var(--line-dark); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pv-blue-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-underline .ico { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.link-underline:hover .ico { transform: translateX(3px); }

/* =======================================================
   Icônes
   ======================================================= */

.ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--fill { fill: currentColor; stroke: none; }

/* =======================================================
   Filet aux six couleurs du logo
   ======================================================= */

.spectrum-rule {
  height: 4px;
  background: var(--spectrum);
  border: 0;
  margin: 0;
}

/* =======================================================
   Bandeau défilant entre les sections
   ======================================================= */

.marquee {
  background: var(--pv-blue-ink);
  color: var(--white);
  overflow: hidden;
  padding-block: 18px;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 34s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.5rem);
  white-space: nowrap;
}
.marquee__star { width: 18px; height: 18px; opacity: .75; }

/* Logos des constructeurs dans le bandeau : rendus en blanc sur le bleu */
.marquee__logo {
  display: flex;
  align-items: center;
}
.marquee__logo img {
  --logo-h: clamp(20px, 1.4vw, 26px);
  height: var(--logo-h);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
/* Les cinq marques n'ont pas les mêmes proportions : on égalise à l'œil. */
.marquee__logo img[src*="hp"] { height: calc(var(--logo-h) * 1.5); }
.marquee__logo img[src*="kyocera"] { height: calc(var(--logo-h) * 1.1); }
.marquee__logo img[src*="ricoh"] { height: calc(var(--logo-h) * 1.25); }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* =======================================================
   Cartes
   ======================================================= */

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}
.card::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent, var(--pv-blue-ink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::after,
.card:focus-within::after { transform: scaleX(1); }

.card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent, var(--pv-blue-ink));
  color: var(--white);
  margin-bottom: 20px;
}
.d-documents .card__icon { color: var(--pv-ink); }
.d-impression .card__icon { color: var(--pv-ink); }

.card__title { font-size: var(--fs-h3); margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: var(--fs-sm); }

/* =======================================================
   Réglages d'accessibilité
   ======================================================= */

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