/* IoTStore V3 – main.css */

:root {
      --blue: #1d61a1;
      --blue-dark-1: #050b18;
      --blue-dark-2: #0b1730;
      --blue-dark-3: #12223f;
      --green: #00c389;
      --text-main: #1c2540;
      --text-muted: #5f6c8a;
      --bg-page: #ffffff;
      --bg-light: #f7f9fc;
      --border-subtle: #e0e5f2;
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --shadow-soft: 0 18px 45px rgba(15, 35, 52, 0.16);
      --shadow-card: 0 10px 30px rgba(9, 30, 66, 0.08);
      --container-width: 1180px;
      --transition-fast: 0.18s ease-out;

      /* Couleurs des nœuds du logo */
      --accent-orange: #f7941d;
      --accent-purple: #9b5de5;
      --accent-cyan: #1cb5e0;
      --accent-lime: #8cc63f;

      --accent-orange-soft: rgba(247, 148, 29, 0.10);
      --accent-purple-soft: rgba(155, 93, 229, 0.12);
      --accent-cyan-soft: rgba(28, 181, 224, 0.14);
      --accent-lime-soft: rgba(140, 198, 63, 0.14);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
      color: var(--text-main);
      background: var(--bg-page);
      -webkit-font-smoothing: antialiased;
    }

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

    a {
      color: inherit;
      text-decoration: none;
    }

    main {
      background: #ffffff;
    }

    .preserve-newlines { white-space: pre-line; }

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

    /* HEADER – fond blanc, sticky */

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: #ffffff;
      backdrop-filter: none;
      border-bottom: 1px solid rgba(215, 221, 236, 0.9);
      box-shadow: 0 4px 12px rgba(15, 35, 52, 0.1);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 0;
      gap: 1.5rem;
    }

    .brand { display: inline-flex; align-items: center; gap: 0.6rem; }
    .brand img { height: 65px; }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 1.8rem;
      font-weight: 500;
      font-size: 0.95rem;
    }

    .main-nav a {
      position: relative;
      color: var(--text-main);
      padding-bottom: 0.15rem;
    }

    .main-nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -0.35rem;
      width: 0;
      height: 2px;
      background: var(--green);
      border-radius: 999px;
      transition: width var(--transition-fast);
    }

    .main-nav a:hover::after,
    .main-nav a:focus-visible::after { width: 100%; }

    .main-nav a.is-active::after { width: 100%; }

    .main-nav .cta-nav {
      padding: 0.45rem 1.2rem;
      border-radius: 999px;
      background: var(--green);
      color: #ffffff;
      border: 1px solid var(--green);
      box-shadow: 0 8px 20px rgba(0, 195, 137, 0.35);
    }

    .main-nav .cta-nav:hover {
      filter: brightness(1.05);
      box-shadow: 0 10px 26px rgba(0, 195, 137, 0.45);
    }

    /* ICON BUTTON */

    .icon-button {
      border: none;
      background: transparent;
      padding: 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .icon-button img {
      height: 20px;
      width: 20px;
    }

    /* BOUTONS GÉNÉRIQUES */

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.85rem 1.7rem;
      border-radius: 999px;
      font-size: 0.95rem;
      font-weight: 600;
      border: 1px solid transparent;
      cursor: pointer;
      transition: background var(--transition-fast), color var(--transition-fast),
      box-shadow var(--transition-fast), transform var(--transition-fast),
      border-color var(--transition-fast);
      text-decoration: none;
      white-space: nowrap;
    }

    .btn-primary {
      background: var(--green);
      color: #ffffff;
      border-color: var(--green);
      box-shadow: 0 10px 24px rgba(0, 195, 137, 0.5);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 40px rgba(0, 195, 137, 0.6);
    }

    .btn-secondary {
      background: transparent;
      color: var(--blue-dark-3);
      border-color: rgba(33, 66, 122, 0.25);
    }

    .btn-secondary:hover {
      background: rgba(0, 195, 137, 0.04);
      border-color: var(--green);
    }

    /* SECTIONS GÉNÉRIQUES */

    section {
      padding: 3.2rem 0;
    }

    .section-header {
      margin-bottom: 1.8rem;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
    }

    .section-title {
      font-size: 1.6rem;
      margin: 0;
      letter-spacing: -0.02em;
    }

    .section-subtitle {
      margin: 0.25rem 0 0;
      font-size: 0.95rem;
      color: var(--text-muted);
      max-width: 34rem;
    }

    /* HERO CATALOGUE / PAGES LITE */

    .page-hero-lite {
      background: radial-gradient(circle at 0 0, rgba(28, 181, 224, 0.18) 0, #ffffff 55%);
      border-bottom: 1px solid rgba(221, 227, 244, 0.9);
      padding: 2.6rem 0 3.1rem;
    }

    .page-hero-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 3rem;
    }

    .breadcrumb {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }

    .breadcrumb a {
      color: var(--text-muted);
      text-decoration: none;
    }

    .breadcrumb a:hover {
      text-decoration: underline;
    }

    .page-hero-content {
      flex: 1;
      max-width: 560px;
    }

    .page-hero-kicker {
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 0.75rem;
    }

    .page-hero-title {
      margin: 0 0 0.6rem;
      font-size: clamp(2rem, 2.2vw + 1rem, 2.4rem);
      letter-spacing: -0.03em;
    }

    .page-hero-lead {
      margin: 0 0 0.9rem;
      color: var(--text-muted);
      max-width: 70ch;
      line-height: 1.65;
      font-size: 0.98rem;
    }

    .page-hero-meta {
      margin: 0;
      color: rgba(95, 108, 138, 0.95);
      max-width: 72ch;
      line-height: 1.65;
      font-size: 0.93rem;
    }

    /* FOOTER */

    .site-footer {
      border-top: 1px solid rgba(215, 221, 236, 0.8);
      background: #ffffff;
    }

    .footer-inner {
      padding: 1rem 1.6rem 1.2rem;
      margin: 0 auto;
      max-width: var(--container-width);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.85rem;
      color: var(--text-muted);
      gap: 1rem;
    }

    .footer-inner a {
      color: var(--blue);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
    }

    .footer-socials {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .footer-socials a {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      border: 1px solid #d5dced;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background var(--transition-fast), border-color var(--transition-fast),
      transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .footer-socials a img {
      width: 14px;
      height: 14px;
    }

    .footer-socials a:hover {
      background: rgba(0, 195, 137, 0.06);
      border-color: var(--green);
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(15, 35, 52, 0.15);
    }

    /* ANIMATIONS DE RÉVÉLATION */

    .reveal {
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 0.45s ease-out, transform 0.45s ease-out;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* RESPONSIVE */

    @media (max-width: 960px) {
      .header-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .main-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
      }

      .brand img {
        height: 52px;
      }

      .page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    @media (max-width: 720px) {
      .header-inner {
        justify-content: space-between;
      }

      .main-nav {
        justify-content: flex-start;
      }

      section {
        padding: 2.4rem 0;
      }

      .page-hero-title {
        font-size: 1.8rem;
      }

      .footer-inner {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    /* iOS/Safari: éviter les effets reveal qui “apparaissent au scroll” */
    @media (max-width: 768px) {
      .reveal {
        opacity: 1 !important;
        transform: none !important;
      }
    }

/* ===============================
   HOME – HERO (dark) + modules
   (présents sur la Home)
   =============================== */

.hero {
  background: radial-gradient(circle at 0% 0%, #21427a 0, var(--blue-dark-1) 36%, #020617 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.1vw + 1rem, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero h1 span.highlight { color: var(--green); }

.hero p {
  margin: 0 0 1.8rem;
  font-size: 1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-stats {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1rem; font-weight: 700; }

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-visual-inner {
  max-width: 460px;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}

.hero-visual-inner::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 30% 0, rgba(0, 195, 137, 0.18), transparent 55%);
  z-index: -1;
}

.hero-visual-inner img {
  width: 100%;
  height: auto;
  display: block;
  animation: float 8s ease-in-out infinite;
}

/* Hero: secondary button in “inverse” mode (fond sombre) */
.hero .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Lien discret vers /diagnostic/ dans le hero */
.hero-diagnostic--subtle { margin-top: 14px; }
.diag-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #f6b26b;
}
.diag-link:hover { text-decoration: underline; }

/* ===============================
   HOME – sections colorées
   =============================== */

/* Section produits (home) – fond légèrement plus dynamique */
.section-products {
  background: radial-gradient(circle at top left, rgba(28, 181, 224, 0.14) 0, #ffffff 55%);
}

/* Cartes produits home – liseré couleur au survol */
.product-card { position: relative; overflow: hidden; }
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition-fast);
}
.product-card:hover::before { border-color: rgba(0, 195, 137, 0.55); }

/* Section cas d’usages / blog – dégradés légers */
.section-usecases {
  background: linear-gradient(
    to bottom right,
    rgba(0, 195, 137, 0.06),
    rgba(28, 181, 224, 0.06),
    #ffffff 70%
  );
}
.section-blog { background: linear-gradient(to bottom, #ffffff, rgba(155, 93, 229, 0.03)); }

/* Grille features – couleurs par item (logo nodes) */
.features-grid .feature-item:nth-child(2) {
  border-left: 4px solid var(--accent-purple);
  background: linear-gradient(120deg, var(--accent-purple-soft), #ffffff);
}
.features-grid .feature-item:nth-child(2) .feature-icon { background: var(--accent-purple-soft); }
.features-grid .feature-item:nth-child(2) .feature-title { color: var(--accent-purple); }

.features-grid .feature-item:nth-child(3) {
  border-left: 4px solid var(--accent-orange);
  background: linear-gradient(120deg, var(--accent-orange-soft), #ffffff);
}
.features-grid .feature-item:nth-child(3) .feature-icon { background: var(--accent-orange-soft); }
.features-grid .feature-item:nth-child(3) .feature-title { color: #c56a00; }

/* CTA – variante "brand" (Solutions, etc.) */
.section-cta.section-cta--brand {
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(28, 181, 224, 0.55), transparent 60%),
    radial-gradient(820px 480px at 88% 10%, rgba(155, 93, 229, 0.38), transparent 58%),
    radial-gradient(900px 600px at 45% 120%, rgba(0, 195, 137, 0.28), transparent 55%),
    linear-gradient(180deg, var(--blue-dark-2) 0%, #020617 100%);
}

.section-cta.section-cta--brand h2,
.section-cta.section-cta--brand p {
  color: #ffffff;
}

.section-cta.section-cta--brand p {
  opacity: 0.92;
}
