/* =========================================================
   SMART NT — Améliorations modernes (effets & micro-interactions)
   Chargé APRÈS main.css. Ne modifie pas le template d'origine.
   Palette : bleu #186799 / #2798CB — orange #FAAF3B
   ========================================================= */

:root {
  --snt-orange: #FAAF3B;
  --snt-blue: #186799;
  --snt-blue-light: #2798CB;
  --snt-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Rendu de police plus net */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sélection & barre de défilement aux couleurs de la marque */
::selection { background: rgba(39, 152, 203, .18); color: var(--snt-blue); }
html { scrollbar-color: var(--snt-blue-light) #eef3f7; }

/* ---------------------------------------------------------
   1) Header : effet verre dépoli + compactage au scroll
   --------------------------------------------------------- */
.header {
  background-color: rgba(255, 255, 255, .85) !important;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(24, 103, 153, .06);
}
body.scrolled .header {
  padding: 12px 0;
  background-color: rgba(255, 255, 255, .93) !important;
  box-shadow: 0 6px 30px rgba(24, 103, 153, .10);
}
.header .logo img { transition: max-height .4s var(--snt-ease); }
body.scrolled .header .logo img { max-height: 56px; }

/* Boutons du header (Assistance / Portail client) : dégradé + relief */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: linear-gradient(135deg, var(--snt-blue-light), var(--snt-blue));
  box-shadow: 0 6px 18px rgba(24, 103, 153, .28);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--snt-ease), box-shadow .3s;
}
.header .btn-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 103, 153, .42);
  background: linear-gradient(135deg, var(--snt-blue-light), var(--snt-blue));
}
/* effet de brillance qui traverse le bouton au survol */
.header .btn-getstarted::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--snt-ease);
}
.header .btn-getstarted:hover::after { left: 140%; }

/* ---------------------------------------------------------
   2) Hero : fond dégradé + halos + titre en dégradé
   --------------------------------------------------------- */
.hero {
  background:
    radial-gradient(45rem 45rem at 12% 18%, rgba(39, 152, 203, .12), transparent 55%),
    radial-gradient(40rem 40rem at 88% 28%, rgba(250, 175, 59, .12), transparent 55%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 70%) !important;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(90deg, var(--snt-blue) 0%, var(--snt-blue-light) 60%, var(--snt-orange) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.hero .btn-get-started {
  background: linear-gradient(135deg, var(--snt-blue-light), var(--snt-blue));
  border-radius: 10px;
}
.hero .btn-get-started:hover {
  background: linear-gradient(135deg, var(--snt-blue), var(--snt-blue));
}

/* Canvas du réseau 3D (hero) */
/* Réseau 3D = menu des services */
.hero-net-wrap {
  position: relative;
  width: 100%;
  height: 900px;
  max-width: 100%;
}
#hero-net {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* le canvas ne bloque jamais les liens */
}
@media (min-width: 1200px) {
  .hero .hero-img { overflow: visible; }
  .hero-net-wrap { height: 980px; }
}
@media (max-width: 992px) { .hero-net-wrap { height: 700px; } }
@media (max-width: 640px) { .hero-net-wrap { height: 520px; } }

/* Liens services superposés (icône + libellé) */
.net-node {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, .96);
  border: 1.5px solid rgba(250, 175, 59, .55);
  border-radius: 40px;
  box-shadow: 0 8px 22px rgba(24, 103, 153, .16);
  color: var(--snt-blue);
  font-family: var(--nav-font, "Poppins", sans-serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transform-origin: 23px 50%;
  opacity: 0;                       /* révélé par JS quand positionné */
  will-change: transform, opacity;
  transition: background-color .25s, color .25s, box-shadow .25s, border-color .25s;
}
.net-node.flip {
  flex-direction: row-reverse;
  padding: 6px 6px 6px 14px;
  transform-origin: calc(100% - 23px) 50%;
}
.net-node .net-ic {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--snt-orange), #f59e0b);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(250, 175, 59, .45);
}
.net-node .net-lb { padding-right: 2px; }
.net-node.flip .net-lb { padding-right: 0; padding-left: 2px; }

.net-node:hover {
  background: linear-gradient(135deg, var(--snt-orange), #f59e0b);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(250, 175, 59, .5);
}
.net-node:hover .net-ic {
  background: #fff;
  color: var(--snt-orange);
}

/* Variante bleue (services alternés) */
.net-node.blue { border-color: rgba(39, 152, 203, .55); }
.net-node.blue .net-ic {
  background: linear-gradient(135deg, var(--snt-blue-light), var(--snt-blue));
  box-shadow: 0 4px 10px rgba(24, 103, 153, .4);
}
.net-node.blue:hover {
  background: linear-gradient(135deg, var(--snt-blue-light), var(--snt-blue));
  box-shadow: 0 12px 30px rgba(24, 103, 153, .5);
}
.net-node.blue:hover .net-ic { color: var(--snt-blue); }

/* ---------------------------------------------------------
   3) Titres de section : soulignement dégradé animé
   --------------------------------------------------------- */
.section-title h2 {
  background: linear-gradient(135deg, rgba(39, 152, 203, .14), rgba(250, 175, 59, .14));
  box-shadow: 0 6px 18px rgba(24, 103, 153, .06);
}
.section-title p {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title p::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 64px; height: 4px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--snt-blue), var(--snt-orange));
}

/* ---------------------------------------------------------
   4) Cartes Services : élévation + icône dynamique
   --------------------------------------------------------- */
.services .service-item {
  border: 1px solid rgba(24, 103, 153, .06);
  box-shadow: 0 10px 30px rgba(24, 103, 153, .06);
  transition: transform .4s var(--snt-ease), box-shadow .4s, background .3s;
  overflow: hidden;
}
.services .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 50px rgba(24, 103, 153, .18);
}
.services .service-item .icon { transition: transform .4s var(--snt-ease), background .3s; }
.services .service-item:hover .icon { transform: translateY(-4px) scale(1.1) rotate(-5deg); }
.services .service-item .read-more i { transition: transform .3s var(--snt-ease); }
.services .service-item:hover .read-more i { transform: translateX(6px); }

/* ---------------------------------------------------------
   5) Cartes Valeurs : élévation + zoom image
   --------------------------------------------------------- */
.values .card {
  transition: transform .4s var(--snt-ease), box-shadow .4s;
  overflow: hidden;
}
.values .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(24, 103, 153, .15);
}
.values .card img { transition: transform .55s var(--snt-ease); }
.values .card:hover img { transform: scale(1.06); }

/* ---------------------------------------------------------
   6) Statistiques : léger rebond au survol
   --------------------------------------------------------- */
.stats .stats-item {
  transition: transform .3s var(--snt-ease), box-shadow .3s;
  padding: 10px;
  border-radius: 12px;
}
.stats .stats-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(24, 103, 153, .10);
}
.stats .stats-item i { transition: transform .3s var(--snt-ease); }
.stats .stats-item:hover i { transform: scale(1.15); }

/* ---------------------------------------------------------
   7) Logos partenaires : N&B -> couleur au survol
   --------------------------------------------------------- */
.clients .swiper-slide img {
  filter: grayscale(100%);
  opacity: .65;
  transition: filter .4s, opacity .4s, transform .4s var(--snt-ease);
}
.clients .swiper-slide img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

/* ---------------------------------------------------------
   8) Contact : cartes info + formulaire modernisés
   --------------------------------------------------------- */
.contact .info-item {
  transition: transform .3s var(--snt-ease), box-shadow .3s;
}
.contact .info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(24, 103, 153, .12);
}
.php-email-form .form-control {
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.php-email-form .form-control:focus {
  border-color: var(--snt-blue-light);
  box-shadow: 0 0 0 .2rem rgba(39, 152, 203, .16);
}
.php-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--snt-blue-light), var(--snt-blue));
  border: 0;
  border-radius: 8px;
  transition: transform .3s var(--snt-ease), box-shadow .3s;
  box-shadow: 0 6px 18px rgba(24, 103, 153, .28);
}
.php-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 103, 153, .42);
}

/* ---------------------------------------------------------
   9) Bannière des pages internes (page-title) : dégradé doux
   --------------------------------------------------------- */
.page-title .heading {
  background: linear-gradient(135deg, #f2f9fd 0%, #ffffff 60%);
  border-bottom: 1px solid rgba(24, 103, 153, .06);
  /* dégage le titre de sous le header fixe (≈112px) tout en gardant
     un espace haut/bas équilibré */
  padding-top: 165px;
  padding-bottom: 80px;
}
@media (max-width: 1199px) {
  .page-title .heading { padding-top: 140px; }
}
@media (max-width: 640px) {
  .page-title .heading { padding-top: 120px; padding-bottom: 55px; }
}

/* Illustrations des pages service : bannière large (pleine largeur du texte) */
.service-details .services-img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 22px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(24, 103, 153, .12);
  transition: transform .5s var(--snt-ease);
}
.service-details .services-img:hover { transform: scale(1.01); }

/* Liste latérale des services : glissement au survol */
.service-details .services-list a {
  transition: background .3s, transform .3s var(--snt-ease), color .3s;
}
.service-details .services-list a:hover {
  transform: translateX(5px);
}

/* ---------------------------------------------------------
   10) Bouton "retour en haut" + liens footer
   --------------------------------------------------------- */
.scroll-top {
  transition: transform .3s var(--snt-ease), background-color .3s, opacity .3s;
}
.scroll-top:hover { transform: translateY(-4px); }

.footer .footer-links a { transition: color .3s, padding-left .3s; }
.footer .footer-links a:hover { padding-left: 6px; }

.footer .social-links a {
  transition: transform .3s var(--snt-ease), background-color .3s, color .3s;
}
.footer .social-links a:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------
   Respect de l'accessibilité : coupe les animations si demandé
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
