/* Pivotech West-Africa · base, en-tête, pied de page et éléments communs */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--white);
  color: var(--ink);
  transition: top var(--t-fast) 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;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =======================================================
   Grille et sections
   ======================================================= */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

/* Lignes de contour dans deux angles des sections sombres */
.lines { isolation: isolate; overflow: hidden; }
.lines::before,
.lines::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(60vw, 700px);
  aspect-ratio: 700 / 460;
  background: url(../img/deco/lignes.svg) no-repeat center / contain;
  pointer-events: none;
}
.lines::before { top: 0; left: 0; }
.lines::after { right: 0; bottom: 0; transform: rotate(180deg); }

/* =======================================================
   Intitulé et titre de section
   ======================================================= */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue-ink);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 22px;
  height: 13px;
  background: var(--logo-bars);
}
.section--night .eyebrow,
.eyebrow--light { color: var(--blue-soft); }
.eyebrow--center { justify-content: center; }

.title { font-size: var(--fs-h2); text-wrap: balance; }
.title--center { text-align: center; }

.head { margin-bottom: clamp(32px, 4vw, 52px); }
.head--center { text-align: center; }

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--t-fast) ease-out;
}
.btn .ico { transition: transform var(--t-fast) ease-out; }
.btn:hover { background: var(--blue-deep); }
.btn:hover .ico { transform: translateX(4px); }

.btn--glass { background: rgba(255, 255, 255, .16); }
.btn--glass:hover { background: rgba(255, 255, 255, .28); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-ink);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 500;
}
.link-more .ico { transition: transform var(--t-fast) ease-out; }

/* =======================================================
   Carrousels : défilement natif, boutons ajoutés par le script
   ======================================================= */

.track {
  display: grid;
  grid-auto-flow: column;
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track img { -webkit-user-drag: none; user-select: none; }
.track.is-grab { cursor: grab; }
.track.is-sliding { scroll-snap-type: none; }
.track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.dots button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.dots button::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6cedd;
  transition: background var(--t-fast) ease-out, transform var(--t-fast) ease-out;
}
.dots button[aria-current="true"]::before { background: var(--blue); transform: scale(1.25); }
.dots[hidden] { display: none; }

/* Sous les cartes, au-dessus de la marge laissée à leurs ombres */
.dots--carousel {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}
.section--night .dots button::before { background: rgba(255, 255, 255, .34); }
.section--night .dots button[aria-current="true"]::before { background: var(--blue-bright); }

/* =======================================================
   Cartes de service : photo, pastille d'icône, angle arrondi
   ======================================================= */

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px 26px 54px 0;
  background: var(--white);
  color: var(--text);
}
.svc__photo { overflow: hidden; }
.svc__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.svc__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px 30px 34px;
}
.svc__icon {
  position: absolute;
  top: -28px;
  left: 30px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.25rem;
}
.svc__title { margin-bottom: 10px; color: var(--ink); font-size: var(--fs-h3); }
.section--night .svc__title { color: var(--ink); }
.svc__text { margin-bottom: 20px; font-size: 1rem; line-height: 1.55; }
.svc .link-more { margin-top: auto; }
.svc__title a::after { content: ''; position: absolute; inset: 0; }
.svc:focus-within { outline: 3px solid var(--blue-soft); outline-offset: -3px; }
.svc__title a:focus-visible { outline: 0; }
.svc:hover .svc__photo img { transform: scale(1.05); }
.svc:hover .link-more .ico { transform: translateX(4px); }

/* =======================================================
   Tuiles sombres
   ======================================================= */

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--night-soft);
  color: var(--white);
}
.tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 12, 29, .12), rgba(15, 12, 29, .9));
}
.tile__text {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 76px;
  bottom: 24px;
}
.tile__label {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-soft);
  font-size: var(--fs-sm);
}
.tile__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
}
.tile__go {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  transition: background var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}
a.tile:hover img { transform: scale(1.05); }
a.tile:hover .tile__go { background: var(--blue-bright); border-color: var(--blue-bright); }
a.tile:focus-visible { outline-offset: -4px; }

/* =======================================================
   Questions fréquentes
   ======================================================= */

.faq__item {
  margin-bottom: 14px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(15, 12, 29, .05);
}
.faq__item:last-child { margin-bottom: 0; }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item[open] .faq__q { color: var(--blue-ink); }
.faq__toggle {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--blue-tint);
  color: var(--blue);
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out;
}
.faq__toggle::before,
.faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__toggle { background: var(--blue); color: var(--white); }
.faq__item[open] .faq__toggle::after { display: none; }
.faq__a { padding: 0 22px 22px; font-size: 1rem; }

/* =======================================================
   En-tête
   ======================================================= */

.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
}
.js .header { position: fixed; }
.header.is-scrolled {
  background: var(--night);
  box-shadow: 0 8px 30px rgba(15, 12, 29, .28);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height var(--t-fast) ease-out;
}
.header.is-scrolled .header__inner { height: 76px; }

.header__logo { flex: none; }
.header__logo img {
  width: auto;
  height: 62px;
  transition: height var(--t-fast) ease-out;
}
.header.is-scrolled .header__logo img { height: 52px; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  transition: color var(--t-fast) ease-out;
}
.nav__link:hover { color: var(--blue-soft); }

.nav__item--menu { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__caret {
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.nav__caret .ico { width: 16px; height: 16px; transition: transform var(--t-fast) ease-out; }
.nav__caret[aria-expanded="true"] .ico { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 5;
  width: 270px;
  padding: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-fast) ease-out, transform var(--t-fast) ease-out, visibility var(--t-fast);
}
.nav__item--menu:hover .submenu,
.nav__item--menu:focus-within .submenu,
.submenu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 12px;
  font-size: 1rem;
}
.submenu a .ico { color: var(--blue); }
.submenu a:hover { background: var(--blue-tint); }

.header__cta { flex: none; }
.header__call {
  display: none;
  align-items: center;
  gap: 12px;
  flex: none;
  line-height: 1.3;
}
.header__call-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
}
.header__call small { display: block; font-size: .8125rem; opacity: .8; }
.header__call strong { font-family: var(--font-display); font-weight: 500; font-size: .9375rem; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: none;
  font-size: 1.1rem;
}

@media (min-width: 1280px) {
  .header__call { display: flex; }
}

@media (max-width: 1040px) {
  :root { --header-h: 80px; }
  .header__logo img { height: 52px; }
  .js .nav-toggle { display: grid; margin-left: auto; }
  .header__cta { display: none; }
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: var(--night);
  }
  .js .nav.is-open { display: block; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item--menu { flex-wrap: wrap; justify-content: space-between; }
  .submenu {
    position: static;
    width: 100%;
    display: none;
    padding: 0 0 8px;
    background: none;
    box-shadow: none;
    color: var(--white);
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .submenu.is-open { display: block; }
  .submenu a:hover { background: rgba(255, 255, 255, .08); }
  .submenu a .ico { color: var(--blue-soft); }
  /* Sans script, le menu reste dans le flux et se replie sur plusieurs lignes */
  html:not(.js) .header__inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
  html:not(.js) .nav__caret { display: none; }
  html:not(.js) :is(.hero, .page-hero) { padding-top: 240px; }
}

/* =======================================================
   Bandeau d'appel
   ======================================================= */

.cta-wrap {
  position: relative;
  z-index: 2;
  padding-top: clamp(40px, 5vw, 72px);
  background: linear-gradient(var(--white) 62%, var(--night) 62%);
}
.cta-wrap--night { background: var(--night); padding-top: 0; }

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 4.5vw, 60px) clamp(24px, 5vw, 64px);
  background: linear-gradient(95deg, var(--blue-bright), var(--blue-deep));
  color: var(--white);
}
.cta h2 {
  max-width: 17ch;
  color: var(--white);
  font-size: var(--fs-h2);
}
.cta .eyebrow { color: var(--white); }

/* =======================================================
   Pied de page
   ======================================================= */

.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--muted-dark);
  font-size: 1rem;
}
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 12%;
  width: clamp(44px, 6.4vw, 96px);
  aspect-ratio: 1 / 2;
  background: linear-gradient(135deg, var(--blue-bright), #162c70);
}
.footer::before { left: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.footer::after { right: 0; clip-path: polygon(100% 0, 0 50%, 100% 100%); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px clamp(28px, 4vw, 60px);
  padding-block: clamp(56px, 6vw, 84px);
}
.footer__logo img { width: auto; height: 74px; margin-bottom: 18px; }
.footer__about { max-width: 34ch; }
.footer h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 500;
}
.footer__links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  transition: color var(--t-fast) ease-out;
}
.footer__links a::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--blue-soft);
}
.footer__links a:hover { color: var(--white); }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}
.footer__contact .ico { color: var(--blue-soft); }
.footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  padding-block: 22px;
  background: radial-gradient(ellipse 50% 160% at 50% 100%, rgba(53, 106, 248, .24), transparent 72%);
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: var(--fs-sm);
}
.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
}
.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: var(--white);
  transition: background var(--t-fast) ease-out;
}
.to-top:hover { background: var(--blue); }

/* =======================================================
   Apparition à l'arrivée dans l'écran
   ======================================================= */

.js-anim [data-reveal] { opacity: 0; }
.anim-off [data-reveal] { opacity: 1 !important; transform: none !important; }

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

/* =======================================================
   Petits écrans
   ======================================================= */

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .head-row { align-items: flex-start; flex-direction: column; }
  .track { gap: 18px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer::before,
  .footer::after { display: none; }
}
