/* STI — Senegal Technologie Industriel — stylesheet
   Brand colors per "Charte STI" (Sept. 2021): navy #0a5577, red #dc0000, blue #0274b3.
   Rule from the brand guide: the color logo is for white backgrounds only — the white
   monochrome logo variant (logo-white.png) must be used on the navy footer/hero. */

:root {
  --navy-dark: #06344a;
  --navy: #0a5577;
  --blue: #0274b3;
  --blue-light: #4fa8d8;
  --red: #dc0000;
  --red-dark: #a30000;
  --bg: #f7f9fb;
  --white: #ffffff;
  --text: #1a2530;
  --muted: #5b6b7b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(10, 85, 119, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 85, 119, 0.14);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75em 1.25em;
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; color: var(--text); }
.lead { font-size: 1.15rem; color: var(--muted); }

.section { padding: 72px 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--red);
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
.lang-switch a {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--muted);
}
.lang-switch a[aria-current="true"] {
  background: var(--navy);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-right { gap: 12px; }
  .brand img { height: 32px; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
  color: var(--white);
  padding: 96px 0 88px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p { color: rgba(255,255,255,0.94); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 32px;
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-stats .stat-num { font-size: 1.9rem; font-weight: 800; color: var(--blue-light); }
.hero-stats .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.94); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.88); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.96); }

/* Photo-style hero band */
.photo-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.photo-hero-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 280px;
}
.photo-hero-media > div {
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.photo-hero-media > div:last-child { border-right: none; }
.photo-hero-media svg { width: 42%; height: 42%; color: rgba(255,255,255,0.9); }
.photo-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.photo-hero-band {
  background: var(--navy-dark);
  padding: 40px 0;
}
.photo-hero-band h1 { color: var(--white); margin-bottom: 12px; }
.photo-hero-band p { color: rgba(255,255,255,0.78); max-width: 720px; margin: 0; }
@media (max-width: 700px) {
  .photo-hero-media { height: 160px; }
}
.photo-hero-media--single {
  grid-template-columns: 1fr;
  height: 380px;
}
.photo-hero-media--single > div { border-right: none; }
@media (max-width: 700px) {
  .photo-hero-media--single { height: 220px; }
}

/* Product / solution tiles */
.product-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.product-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-tile-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-tile-media svg { width: 46%; height: 46%; color: rgba(255,255,255,0.92); }
.product-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-tile-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-tile-body h2 { font-size: 1.2rem; margin-bottom: 8px; }
.product-tile-body p { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.product-tile-body .spec-line { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; margin-bottom: 16px; flex: none; }
.product-category-intro { max-width: 860px; margin-bottom: 28px; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(10, 85, 119, 0.08);
  color: var(--navy);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Cards / grids */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(220, 0, 0, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  background: rgba(2, 116, 179, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Values / about */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-dot {
  flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  margin-top: 8px;
}

/* Timeline (about) */
.timeline { border-left: 3px solid var(--border); padding-left: 24px; display: grid; gap: 28px; }
.timeline-year { color: var(--red); font-weight: 800; font-size: 0.9rem; }

/* Partners / logos */
.partner-group { margin-bottom: 36px; }
.partner-group:last-child { margin-bottom: 0; }
.partner-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.logo-wall .logo-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--muted);
  overflow: hidden;
}
.logo-tile-img {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
}
.logo-tile-name {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--navy);
  background: var(--bg);
}
.logo-tile img { max-height: 40px; width: auto; max-width: 100%; }
.logo-wall .logo-tile--dark .logo-tile-img { background: var(--navy); }
@media (max-width: 600px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

.testimonial {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial p { font-style: italic; color: var(--text); }
.testimonial-author { font-weight: 700; color: var(--navy); font-style: normal; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(10,85,119,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2,116,179,0.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; }

/* Footer — uses the white logo variant only (brand rule: color logo is white-bg only) */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 56px 0 24px; }
/* La regle globale `p { color: var(--text) }` empeche l'heritage du blanc :
   il faut donc redonner explicitement la couleur claire ici. */
.site-footer p { color: rgba(255,255,255,0.82); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--blue-light); }
.footer-brand { margin-bottom: 14px; }
.footer-brand img { height: 36px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.placeholder-note {
  background: #eaf4fb;
  border: 1px solid #b8dcef;
  color: #05486b;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* WhatsApp floating chat widget */
.sti-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  font-family: inherit;
}
.sti-chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  border: none;
  animation: sti-chat-pulse 2.4s infinite;
}
.sti-chat-fab svg { width: 32px; height: 32px; fill: #fff; }
@keyframes sti-chat-pulse {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0); }
}
.sti-chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  display: none;
}
.sti-chat-widget.open .sti-chat-panel { display: block; }
.sti-chat-header {
  background: #25D366;
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sti-chat-header svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.sti-chat-header strong { display: block; font-size: 0.95rem; }
.sti-chat-header span { display: block; font-size: 0.78rem; opacity: 0.9; }
.sti-chat-body { padding: 16px 18px; background: #ECE5DD; }
.sti-chat-bubble {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.sti-chat-cta {
  display: block;
  text-align: center;
  background: #25D366;
  color: #fff !important;
  font-weight: 600;
  padding: 12px;
  margin: 14px 18px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.sti-chat-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 480px) {
  .sti-chat-widget { right: 14px; bottom: 14px; }
  .sti-chat-panel { width: calc(100vw - 28px); }
}
