/* ===========================================================
   INNOVING SOLUTIONS – Feuille de style
   =========================================================== */
:root {
  --primary: #1aa24a;        /* vert INNOVING */
  --primary-dark: #137c39;
  --accent: #f5b51e;         /* jaune INNOVING */
  --accent-dark: #d99a08;
  --navy: #0e3a24;           /* vert foncé (fonds sombres) */
  --navy-2: #115232;
  --ink: #1b2436;
  --muted: #5b6678;
  --light: #f4f9f5;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 6px 20px rgba(14, 58, 36, .08);
  --shadow-md: 0 18px 45px rgba(14, 58, 36, .14);
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

* { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, h4, .navbar-brand { font-family: 'Poppins', sans-serif; }

a { text-decoration: none; }

/* ===== NAVBAR ===== */
#mainNav {
  background: transparent;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
  padding: 1.1rem 0;
}
#mainNav.scrolled {
  background: var(--navy);
  padding: .55rem 0;
  box-shadow: var(--shadow-sm);
}
.brand-logo {
  width: 46px; height: 46px;
  margin-right: 10px;
  padding: 5px;
  background: #fff;
  border-radius: 12px;
  object-fit: contain;
  flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.brand-text { font-weight: 800; letter-spacing: .5px; color: #fff; font-size: 1.15rem; white-space: nowrap; }
.brand-accent { color: var(--accent); }
/* La marque et le bouton hamburger restent sur la 1re ligne, mais le menu
   deroule peut passer en dessous (flex-basis:100% de Bootstrap) et s'afficher
   verticalement. On garde donc le wrap par defaut sur le conteneur. */
#mainNav .navbar-brand { min-width: 0; flex: 0 1 auto; }
#mainNav .navbar-toggler { flex: none; }
#mainNav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin: 0 .35rem;
  position: relative;
  transition: color .25s;
}
#mainNav .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent); transition: width .3s;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { width: 100%; }
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: #fff; }
.btn-contact {
  background: var(--grad);
  border-radius: 50px;
  padding: .5rem 1.4rem !important;
  color: #fff !important;
}
.btn-contact::after { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(245,181,30,.22), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0a2a4d 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 5rem; }
.hero-badge {
  display: inline-block;
  background: rgba(245,181,30,.15);
  border: 1px solid rgba(245,181,30,.45);
  color: var(--accent);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-title .dot { color: var(--accent); }
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.82);
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.hero-actions .btn { margin: .3rem .6rem .3rem 0; border-radius: 50px; padding: .75rem 1.8rem; font-weight: 600; }
.btn-primary { background: var(--grad); border: none; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hero-logo {
  max-width: 340px;
  width: 100%;
  background: #fff;
  padding: 1.4rem;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
}
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: 1.6rem; z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* ===== STATS ===== */
.stats-section {
  background: var(--navy);
  padding: 3rem 0;
  color: #fff;
}
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ===== SECTIONS GÉNÉRIQUES ===== */
.section { padding: 6rem 0; }
.section-alt { background: var(--light); }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  margin-bottom: .8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--navy);
}
.section-text { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li { margin-bottom: .7rem; color: var(--ink); font-weight: 500; }
.check-list i { color: var(--primary); margin-right: .5rem; }

/* ===== PILIERS ===== */
.pillars { display: grid; gap: 1.2rem; }
.pillar {
  background: var(--white);
  border: 1px solid #e9eef6;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.pillar:nth-child(2) { margin-left: 2rem; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar i {
  font-size: 1.8rem; color: #fff;
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad); margin-bottom: .9rem;
}
.pillar h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.pillar p { color: var(--muted); margin: 0; }

/* ===== CARTES SERVICES ===== */
.service-card {
  background: var(--white);
  border: 1px solid #e9eef6;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  font-size: 1.7rem; color: var(--primary);
  width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(26,162,74,.12);
  margin-bottom: 1.2rem;
  transition: background .3s, color .3s;
}
.service-card:hover .service-icon { background: var(--grad); color: #fff; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.service-presta { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.service-presta li {
  color: var(--ink); font-size: .9rem; padding: .28rem 0;
  border-bottom: 1px dashed #eef1f7; display: flex; align-items: flex-start; gap: .5rem;
}
.service-presta li:last-child { border-bottom: none; }
.service-presta i { color: var(--primary); margin-top: .15rem; }
.service-more {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--primary); font-weight: 600; font-size: .92rem; margin-top: auto;
}
.service-more i { transition: transform .3s; }
.service-card:hover .service-more i { transform: translateX(4px); }
.service-card { display: flex; flex-direction: column; }

/* ===== MODAL ===== */
.modal-content { border: none; border-radius: var(--radius); overflow: hidden; }
.modal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 2rem 2rem 1.6rem; position: relative;
}
.modal-hero .m-icon {
  font-size: 1.8rem; color: #fff;
  width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center; background: var(--grad); margin-bottom: 1rem;
}
.modal-hero h3 { font-weight: 700; margin: 0; }
.modal-hero .btn-close {
  position: absolute; top: 1.2rem; right: 1.2rem; filter: invert(1) grayscale(1) brightness(2);
}
.modal-body { padding: 1.8rem 2rem 2.2rem; }
.modal-body h5 { font-weight: 700; color: var(--navy); margin: 0 0 1rem; font-size: 1.05rem; }
.presta-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.presta-list li { padding: .45rem 0; border-bottom: 1px dashed #e4e9f2; color: var(--ink); }
.presta-list li i { color: var(--primary); margin-right: .6rem; }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.adv-grid .adv {
  background: rgba(26,162,74,.08);
  border: 1px solid rgba(26,162,74,.25);
  border-radius: 10px; padding: .7rem .9rem;
  color: var(--ink); font-weight: 500; font-size: .92rem;
}
.adv-grid .adv i { color: var(--primary); margin-right: .4rem; }

/* ===== POURQUOI ===== */
.why-card {
  background: var(--white);
  border: 1px solid #e9eef6;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card i {
  font-size: 2rem; color: #fff;
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1.1rem;
  background: var(--grad);
}
.why-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.why-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== CTA ===== */
.cta-band {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(245,181,30,.3), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4.5rem 0;
}
.cta-band h2 { font-weight: 700; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 1.6rem; }
.cta-band .btn { border-radius: 50px; padding: .8rem 2.2rem; font-weight: 600; color: var(--primary); }

/* ===== CONTACT ===== */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; color: var(--ink); }
.contact-list i {
  color: var(--primary); font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(26,162,74,.12);
}
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--primary); }
.social { display: flex; gap: .7rem; margin-top: 1.5rem; }
.social a {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 1.1rem; transition: transform .3s, background .3s;
}
.social a:hover { background: var(--accent); transform: translateY(-3px); }
.contact-form {
  background: var(--white);
  border: 1px solid #e9eef6;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form .form-label { font-weight: 600; color: var(--navy); font-size: .9rem; }
.contact-form .form-control, .contact-form .form-select { border-radius: 10px; padding: .7rem .9rem; border: 1px solid #dbe2ee; }
.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(26,162,74,.18);
}

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; }
.footer .brand-text { font-size: 1.2rem; }
.footer-tagline { color: var(--accent); font-weight: 600; letter-spacing: 1px; margin-bottom: .8rem; }
.footer-text { font-size: .92rem; line-height: 1.7; }
.footer-heading { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .92rem; transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-text a[href^="tel:"] { color: #fff; font-weight: 700; }
.footer-text a[href^="tel:"]:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 1.2rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--grad); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .3s; z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ===== REVEAL ON SCROLL ===== */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
}

/* ===== PAGE SERVICE (détail) ===== */
.service-hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(245,181,30,.22), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%);
  color: #fff;
  padding: 9rem 0 4rem;
  overflow: hidden;
}
.service-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}
.service-hero .container { position: relative; z-index: 2; }
.service-hero .s-icon {
  font-size: 2rem; color: #fff;
  width: 70px; height: 70px; border-radius: 16px;
  display: grid; place-items: center; background: var(--grad); margin-bottom: 1.2rem;
}
.service-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .8rem; }
.service-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 720px; margin: 0; }
.breadcrumb-bar { font-size: .9rem; margin-bottom: 1.4rem; }
.breadcrumb-bar a { color: var(--accent); }
.breadcrumb-bar span { color: rgba(255,255,255,.6); }

.detail-card {
  background: var(--white); border: 1px solid #e9eef6;
  border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); height: 100%;
}
.detail-card h2 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 1.4rem; }
.detail-presta { list-style: none; padding: 0; margin: 0; }
.detail-presta li {
  padding: .7rem 0; border-bottom: 1px dashed #e4e9f2;
  display: flex; align-items: flex-start; gap: .7rem; color: var(--ink);
}
.detail-presta li:last-child { border-bottom: none; }
.detail-presta i { color: var(--primary); font-size: 1.15rem; margin-top: .1rem; }
.detail-adv { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.detail-adv li {
  background: rgba(26,162,74,.08); border: 1px solid rgba(26,162,74,.25);
  border-radius: 12px; padding: .9rem 1.1rem; color: var(--ink); font-weight: 500;
  display: flex; align-items: center; gap: .6rem;
}
.detail-adv i { color: var(--primary); font-size: 1.2rem; }

/* Autres services */
.related-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--white); border: 1px solid #e9eef6; border-radius: 12px;
  padding: 1rem 1.2rem; color: var(--ink); height: 100%;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--ink); }
.related-card i {
  font-size: 1.2rem; color: var(--primary);
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: rgba(26,162,74,.12);
}
.related-card span { font-weight: 600; font-size: .92rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  #mainNav { background: var(--navy); }
  #mainNav .navbar-collapse { background: var(--navy); padding: .5rem 1rem; border-radius: 12px; margin-top: .6rem; }
  /* Menu mobile plus confortable : liens pleine largeur, espaces de frappe
     plus grands et separateurs discrets entre les entrees. */
  #mainNav .navbar-nav .nav-link { margin: 0; padding: .7rem .25rem; }
  #mainNav .navbar-nav .nav-item + .nav-item .nav-link { border-top: 1px solid rgba(255,255,255,.08); }
  #mainNav .nav-link::after { display: none; }
  .btn-contact { display: inline-block; margin: .6rem 0 .2rem; text-align: center; }
  .pillar:nth-child(2) { margin-left: 0; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Les grandes gouttières g-5 débordent du conteneur sur petit écran :
     on les ramène à une valeur qui s'aligne au conteneur (plus de contenu coupé) */
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 575px) {
  .section { padding: 4rem 0; }
  .adv-grid { grid-template-columns: 1fr; }
  /* En portrait, on reduit la marque pour qu'elle reste entierement visible. */
  .brand-text { font-size: 1rem; letter-spacing: .3px; }
  .brand-logo { width: 40px; height: 40px; margin-right: 8px; }
}
@media (max-width: 360px) {
  .brand-text { font-size: .9rem; }
  .brand-logo { width: 36px; height: 36px; }
}
