/* =========================================================
   AFRICATEL S.A — Feuille de style (Mobile-First)
   Palette dérivée de l'identité visuelle du PDF
   ========================================================= */

:root {
  /* Couleurs de marque */
  --orange:      #F07C1E;
  --orange-dark: #d96a10;
  --green-dark:  #0A4D2E;
  --green:       #1BA35C;
  --teal:        #1B9B9B;
  --navy:        #16305B;
  --slate:       #3E4E5E;

  /* Neutres */
  --ink:      #1c2733;
  --muted:    #5f6b78;
  --line:     #e5e9ee;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fb;
  --white:    #ffffff;

  /* Système */
  --radius:   14px;
  --radius-sm: 8px;
  --shadow:   0 10px 30px rgba(22, 48, 91, .10);
  --shadow-sm: 0 4px 14px rgba(22, 48, 91, .08);
  --maxw:     1180px;
  --header-h: 68px;
  --ease:     cubic-bezier(.22, .61, .36, 1);

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

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

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: 600 .95rem/1 var(--font);
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* =========================================================
   EN-TÊTE / NAVBAR
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 40px; width: auto; }
.brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--orange);
  letter-spacing: .5px;
}
.brand-text sup { font-size: .55em; color: var(--slate); margin-left: 2px; }

/* Navigation (mobile: panneau coulissant) */
.main-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-120%);
  transition: transform .35s var(--ease);
  z-index: 999;
}
.main-nav.open { transform: translateY(0); }
.main-nav ul { display: flex; flex-direction: column; padding: 8px 0; }
.main-nav a {
  display: block;
  padding: 14px 24px;
  font-weight: 600;
  color: var(--slate);
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--teal); border-left-color: var(--teal); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 50px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: .8rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* Hamburger */
.hamburger {
  width: 42px; height: 42px;
  border: none; background: transparent;
  display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 60px;
  background:
    radial-gradient(120% 80% at 50% 0%, #7ec4f0 0%, #4aa6e6 45%, #2e93de 100%);
  overflow: hidden;
}
.hero-clouds {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background:
    radial-gradient(60px 40px at 15% 90%, #fff 60%, transparent 62%),
    radial-gradient(90px 55px at 32% 100%, #fff 60%, transparent 62%),
    radial-gradient(70px 45px at 55% 92%, #fff 60%, transparent 62%),
    radial-gradient(100px 60px at 78% 100%, #fff 60%, transparent 62%),
    radial-gradient(60px 40px at 92% 90%, #fff 60%, transparent 62%),
    linear-gradient(to top, #fff 22%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-logo { height: 90px; width: auto; margin: 0 auto 18px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.hero-title {
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 1px;
  text-shadow: 0 3px 14px rgba(0,0,0,.15);
}
.hero-title span { color: var(--slate); font-size: .5em; vertical-align: super; }
.hero-tagline {
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  font-weight: 600;
  color: var(--slate);
  margin-top: 6px;
}
.hero-sub {
  color: rgba(255,255,255,.95);
  font-weight: 500;
  margin-top: 14px;
  font-size: clamp(.9rem, 2.6vw, 1.05rem);
}
.hero-cta {
  margin-top: 30px;
  display: flex; flex-wrap: wrap;
  gap: 14px; justify-content: center;
}

/* =========================================================
   SECTIONS GÉNÉRIQUES
   ========================================================= */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { margin-bottom: 42px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

/* =========================================================
   À PROPOS
   ========================================================= */
.about-grid { display: grid; gap: 36px; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.about-stats li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.about-stats strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--orange);
}
.about-stats span { font-size: .85rem; color: var(--muted); }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--teal), var(--navy));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.service-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.service-card p  { color: var(--muted); font-size: .96rem; }

/* =========================================================
   ATOUTS
   ========================================================= */
.atouts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.atout {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.atout span { font-size: 1.4rem; line-height: 1; }
.atout p { font-weight: 600; color: var(--slate); }
.atouts-note {
  margin-top: 34px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 780px;
}

/* =========================================================
   RÉFÉRENCES
   ========================================================= */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.refs-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), color .2s;
  font-size: .95rem;
}
.refs-grid li:hover { transform: translateY(-4px); color: var(--orange); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; gap: 34px; }

.info-item {
  display: flex; gap: 16px;
  margin-bottom: 26px;
}
.info-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 1.3rem;
}
.info-item h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.info-item p  { color: var(--muted); }
.info-item a  { color: var(--teal); font-weight: 600; }
.info-item a:hover { text-decoration: underline; }

.contact-cta {
  background: var(--navy);
  color: #eaf0f7;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.contact-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.contact-cta p  { color: #b9c6d8; margin-bottom: 24px; }
.contact-cta-actions { display: grid; gap: 14px; }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: #cdd7e5;
  padding: 44px 0 30px;
}
.footer-inner {
  display: grid;
  gap: 20px;
  text-align: center;
}
.footer-brand { display: grid; justify-items: center; gap: 10px; }
.footer-logo { height: 54px; width: auto; }
.footer-tag { color: var(--orange); font-weight: 600; }
.footer-copy { font-size: .88rem; color: #97a6ba; }

/* =========================================================
   ANIMATIONS AU DÉFILEMENT
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   MEDIA QUERIES (progressive enhancement)
   ========================================================= */

/* ---- Tablette (≥ 720px) ---- */
@media (min-width: 720px) {
  .container { padding-inline: 32px; }

  .about-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .atouts-grid { grid-template-columns: repeat(2, 1fr); }

  .refs-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
  }
  .footer-brand { justify-items: start; }
  .footer-copy { text-align: right; }
}

/* ---- Desktop (≥ 960px) : nav horizontale ---- */
@media (min-width: 960px) {
  .hamburger { display: none; }

  .main-nav {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;
  }
  .main-nav ul { flex-direction: row; padding: 0; gap: 4px; }
  .main-nav a {
    padding: 8px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    color: var(--slate);
    font-size: .92rem;
  }
  .main-nav a:hover {
    background: transparent;
    color: var(--teal);
    border-left-color: transparent;
    border-bottom-color: var(--teal);
  }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .atouts-grid   { grid-template-columns: repeat(3, 1fr); }
  .refs-grid     { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Grand écran (≥ 1280px) ---- */
@media (min-width: 1280px) {
  .section { padding: 90px 0; }
}
