/* ══════════════════════════════════════════
   SMART ENTREPRISE SMD — style2.css
   ══════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0d1b2e;
  --navy-mid:   #142236;
  --gold:       #b8952a;
  --gold-light: #c9a84c;
  --text-muted: #6b7a8d;
  --bg:         #f4f5f7;
  --white:      #ffffff;
  --border:     #e2e5ea;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #f4f5f7;
  color: #0d1b2e;
  line-height: 1.6;
}

/* ── LOGO (définition unique) ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.logo-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ── NAVBAR ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.btn-nav {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-nav:hover { background: #1a2f4a !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
  transition: all 0.3s;
}

/* ── HERO ── */
#accueil {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
  background: var(--bg);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow span {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.gold-divider {
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tag {
  border: 1px solid #c8cdd6;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-primary:hover { background: #1a2f4a; }

.btn-link {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-link:hover { color: var(--gold); }

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.project-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.project-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.progress-bar {
  height: 4px;
  background: #e2e5ea;
  border-radius: 2px;
  position: relative;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0;
  transition: width 1.4s ease 0.5s;
}

.progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  margin-top: 6px;
}

/* ── STATS ── */
#stats {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Correctif : les stats sont toujours visibles même sans JS */
#stats .stat {
  opacity: 1;
  transform: none;
}

.stat {
  padding: 60px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -1px;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  text-transform: uppercase;
}

/* ── SERVICES ── */
#nos-services {
  padding: 100px 80px;
  background: var(--bg);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-top: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: var(--white);
}

.service-card {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}

.service-card:last-child { border-right: none; }

.service-card:hover { background: var(--navy); }

.service-card:hover .service-cat  { color: var(--gold-light) !important; }
.service-card:hover .service-title,
.service-card:hover .service-text,
.service-card:hover .service-link  { color: var(--white) !important; }

.service-cat {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.service-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.service-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-link {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--navy);
  transition: all 0.2s;
}

/* ── À PROPOS ── */
#a-propos {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-left { padding: 100px 80px; }

.about-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.about-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-desc-mt { margin-top: 24px; }

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.about-right {
  padding: 100px 80px 60px 60px;
  display: flex;
  flex-direction: column;
}

.pillar {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
}

.pillar-num {
  font-size: 22px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
}

.pillar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.pillar-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.about-img { margin-top: 32px; }

.about-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

/* ── CONTACT ── */
#contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  padding: 100px 80px;
  background: var(--bg);
}

.contact-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.contact-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--navy);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 100%;
  padding: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-submit:hover { background: #1a2f4a; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 72px 80px 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Logo dans le footer : texte en blanc */
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span   { color: rgba(255, 255, 255, 0.4); }

.footer-tagline {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-top: 18px;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-location {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
}

.footer-email {
  color: var(--gold-light);
  font-size: 13px;
  text-decoration: none;
  display: block;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy,
.footer-location-bottom {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Correctif : forcer la visibilité si JS désactivé */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 200;
  }

  .nav-links.open { display: flex; }
  .btn-nav        { display: none; }
  .hamburger      { display: flex; }

  #accueil { grid-template-columns: 1fr; min-height: auto; }
  .hero-left  { padding: 60px 24px; }
  .hero-right { height: 340px; }

  #stats { grid-template-columns: repeat(2, 1fr); }
  .stat  { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  #nos-services   { padding: 60px 24px; }
  .section-header { grid-template-columns: 1fr; gap: 20px; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .service-card   { border-bottom: 1px solid var(--border); }

  #a-propos    { grid-template-columns: 1fr; }
  .about-left  { padding: 60px 24px 40px; }
  .about-right { padding: 0 24px 60px; }

  #contact { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }

  footer        { padding: 60px 24px 32px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
}