/* ============================================================
   IoT-Tech.net — Feuille de style
   Thème « tech / IoT » : navy profond + accent cyan/vert.
   ============================================================ */

:root {
  --bg: #0a0f1c;
  --bg-2: #0d1322;
  --panel: #121b30;
  --panel-2: #0f1728;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #e8eef9;
  --muted: #93a1bd;
  --muted-2: #6f7e9c;
  --cyan: #22d3ee;
  --green: #34d399;
  --cyan-soft: #67e8f9;
  --grad: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.18), rgba(52,211,153,.18));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --maxw: 1180px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fond subtil : grille + lueur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(800px 600px at 0% 10%, rgba(52, 211, 153, .08), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #04121a; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------- Header */
header.site {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 28, .72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 70px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #04121a; flex: 0 0 auto;
}
.brand .mark svg { width: 20px; height: 20px; }
.brand b { color: var(--text); }
.brand .tld { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 13px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .95rem;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.on { color: var(--text); background: var(--grad-soft); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.langs a { padding: 4px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; color: var(--muted-2); }
.langs a.on { background: var(--grad); color: #04121a; }

.nav-cta {
  background: var(--grad); color: #04121a; font-weight: 700; padding: 9px 17px; border-radius: 10px;
  font-size: .92rem; white-space: nowrap; transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(34, 211, 238, .5); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px; color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 11px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--grad); color: #04121a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(34, 211, 238, .55); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--cyan); }
.btn-outline { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn-outline:hover { background: rgba(34, 211, 238, .12); }

/* ---------------------------------------------------- Hero */
.hero { position: relative; padding: 78px 0 60px; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.aurora .b1 { width: 420px; height: 420px; background: #22d3ee; top: -120px; right: -60px; }
.aurora .b2 { width: 360px; height: 360px; background: #34d399; bottom: -140px; left: -80px; opacity: .35; }
.aurora .b3 { width: 300px; height: 300px; background: #3b82f6; top: 40%; left: 50%; opacity: .22; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); font-size: .85rem;
  color: var(--muted); margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 52ch; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 13px; }

.hero-visual { position: relative; }
.device-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.device-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.device-head .title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.device-head .live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--green); }
.device-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.tile { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.tile .k { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 9px; }
.tile .k .ico { font-size: 1rem; }
.tile .v { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.tile .v small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.tile.wide { grid-column: 1 / -1; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.switch { width: 44px; height: 25px; border-radius: 999px; background: var(--grad); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%; background: #04121a; }
.switch.off { background: rgba(255,255,255,.12); }
.switch.off::after { right: auto; left: 3px; background: var(--muted); }

/* Bandeau défilant (ticker) */
.ticker { margin-top: 48px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: inline-flex; gap: 42px; white-space: nowrap; animation: scroll 26s linear infinite; }
.track span { color: var(--muted); font-family: var(--font-head); font-weight: 500; display: inline-flex; align-items: center; gap: 42px; }
.track span::after { content: "•"; color: var(--cyan); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------------------------------------------------- Sections */
.block { padding: 78px 0; }
.block.tight { padding: 56px 0; }
.head-center { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.block h2, .page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* Grille de cartes services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card .ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 1.6rem; background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 700; color: rgba(255, 255, 255, .06); font-size: 1.5rem; }

/* Lignes de services détaillés */
.service-row { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-row:last-child { border-bottom: none; }
.service-row .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; background: var(--grad-soft); border: 1px solid var(--line-strong); }
.service-row h3 { font-size: 1.3rem; margin-bottom: 7px; }
.service-row p { color: var(--muted); max-width: 70ch; }

/* Étapes / processus */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; position: relative; }
.step .n { font-family: var(--font-head); font-weight: 700; font-size: 1rem; width: 34px; height: 34px; border-radius: 9px; background: var(--grad); color: #04121a; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* Valeurs / à propos */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose p strong { color: var(--text); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value .ico { font-size: 1.8rem; margin-bottom: 12px; }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .96rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.stat { text-align: center; padding: 22px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat .big { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* Page hero (pages intérieures) */
.page-hero { position: relative; padding: 64px 0 40px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .inner { max-width: 62ch; }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; margin-top: 14px; }
.crumbs { font-size: .85rem; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }

/* Bandeau contact / CTA */
.contact-band { position: relative; overflow: hidden; border-radius: 24px; padding: 48px; text-align: center; background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(52,211,153,.12)); border: 1px solid var(--line-strong); }
.contact-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-band .sub { max-width: 54ch; margin: 12px auto 26px; }
.cbtns { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.cbtns a { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 11px; font-weight: 600; border: 1px solid var(--line-strong); background: rgba(10,15,28,.5); color: var(--text); transition: border-color .2s, transform .15s; }
.cbtns a:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 42px; align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: 22px; }
.info-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.info-item .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.3rem; background: var(--grad-soft); border: 1px solid var(--line-strong); }
.info-item .lbl { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.info-item .val { font-weight: 600; }
.info-item .val:hover { color: var(--cyan); }

.contact-form { background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 7px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: rgba(10, 15, 28, .6); color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.form-status.ok { background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .4); color: var(--green); }
.form-status.err { background: rgba(248, 113, 113, .14); border: 1px solid rgba(248, 113, 113, .4); color: #fca5a5; }

/* ---------------------------------------------------- Footer */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 20px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; margin-bottom: 14px; }
.foot-brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #04121a; display: grid; place-items: center; }
.foot-brand .mark svg { width: 19px; height: 19px; }
footer.site p { color: var(--muted); }
.foot-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.foot-col a, .foot-col span { display: block; color: var(--muted); padding: 5px 0; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: .88rem; }
.foot-bottom .domain { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; font-family: var(--font-head); }

/* ---------------------------------------------------- Révélation au scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------- Dashboard privé */
.dash-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 22px 70px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.dash-head h1 { font-size: 1.9rem; }
.dash-note { color: var(--muted); margin-bottom: 30px; max-width: 70ch; }
.dash-note code { background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px; font-size: .9em; color: var(--cyan-soft); }
.dash-section-title { font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 32px 0 14px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.dash-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); transition: transform .15s, border-color .2s; }
.dash-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.dash-card .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.4rem; background: var(--grad-soft); border: 1px solid var(--line-strong); flex: 0 0 auto; }
.dash-card .t { font-family: var(--font-head); font-weight: 600; }
.dash-card .d { font-size: .82rem; color: var(--muted); }
.dash-card .st { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

/* ---------------------------------------------------- Responsive */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; }
  .cards, .value-grid { grid-template-columns: 1fr 1fr; }
  .steps, .stat-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .cards, .value-grid, .steps, .stat-row, .foot-grid { grid-template-columns: 1fr; }
  .contact-band { padding: 32px 22px; }
  .block { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Lien « Espace client » dans le header */
.nav-portal { display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, .4); border-radius: 999px;
  padding: 6px 14px; transition: .15s; }
.nav-portal:hover { background: rgba(34, 211, 238, .12); border-color: var(--cyan); }

/* Lien légal dans le bas de page */
.foot-legal a { color: var(--muted); }
.foot-legal a:hover { color: var(--cyan); }

/* Page légale (politique de confidentialité) */
.legal-updated { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.legal { max-width: 760px; line-height: 1.75; color: var(--ink); }
.legal h2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
  color: var(--cyan-soft); margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; color: #c7d2e1; }
.legal ul { margin: 0 0 14px; padding-left: 20px; color: #c7d2e1; }
.legal li { margin: 6px 0; }
.legal a { color: var(--cyan); }
.legal a:hover { color: var(--cyan-soft); }
