/*
Theme Name: HygroPilot
Theme URI: https://hygropilot.com
Author: HygroPilot
Description: Thème WordPress léger et responsive pour le lancement de HygroPilot, contrôleur intelligent de ventilation par point de rosée et humidité absolue.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: hygropilot
*/

:root {
  --hp-bg: #f5f8f9;
  --hp-surface: #ffffff;
  --hp-ink: #112328;
  --hp-muted: #60747a;
  --hp-line: #d9e4e7;
  --hp-primary: #0a7a79;
  --hp-primary-dark: #065e5d;
  --hp-primary-soft: #dff2f0;
  --hp-accent: #69bdb4;
  --hp-dark: #0e262b;
  --hp-shadow: 0 18px 55px rgba(17,35,40,.10);
  --hp-radius: 24px;
  --hp-radius-sm: 14px;
  --hp-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hp-ink);
  background: var(--hp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.hp-container { width: min(calc(100% - 40px), var(--hp-max)); margin: 0 auto; }
.hp-section { padding: 92px 0; }
.hp-section--white { background: var(--hp-surface); }
.hp-section--dark { background: var(--hp-dark); color: white; }
.hp-section--tight { padding: 64px 0; }
.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--hp-primary);
  margin-bottom: 16px;
}
.hp-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hp-section--dark .hp-eyebrow { color: #87d8cf; }
.hp-title { margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }
.hp-lead { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--hp-muted); max-width: 760px; }
.hp-section--dark .hp-lead { color: #bdd0d4; }

/* Header */
.hp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,248,249,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217,228,231,.8);
}
.hp-header__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hp-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; font-size: 1.25rem; letter-spacing: -.025em; }
.hp-brand__mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; background: var(--hp-primary); color: white; box-shadow: 0 8px 18px rgba(10,122,121,.22); }
.hp-brand__mark svg { width: 21px; height: 21px; }
.hp-nav { display: flex; align-items: center; gap: 28px; }
.hp-nav a { text-decoration: none; color: #30474d; font-weight: 650; font-size: .95rem; }
.hp-nav a:hover { color: var(--hp-primary); }
.hp-nav__cta { padding: 10px 16px; border: 1px solid var(--hp-primary); border-radius: 999px; color: var(--hp-primary)!important; }
.hp-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.hp-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--hp-ink); margin: 5px 0; }

/* Hero */
.hp-hero { padding: 82px 0 76px; overflow: hidden; position: relative; }
.hp-hero::before { content:""; position:absolute; width: 520px; height:520px; right:-170px; top:-180px; border-radius:50%; background: radial-gradient(circle, rgba(105,189,180,.28), rgba(105,189,180,0) 70%); pointer-events:none; }
.hp-hero__grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 70px; align-items: center; }
.hp-badge { display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px; background: white; border: 1px solid var(--hp-line); border-radius: 999px; font-size: .83rem; font-weight: 700; color: #446068; box-shadow: 0 6px 20px rgba(17,35,40,.05); }
.hp-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #40a66d; box-shadow: 0 0 0 5px rgba(64,166,109,.12); }
.hp-hero h1 { margin: 22px 0; max-width: 760px; font-size: clamp(3rem, 6.8vw, 5.8rem); line-height: .97; letter-spacing: -.06em; }
.hp-hero h1 span { color: var(--hp-primary); }
.hp-hero__copy { max-width: 650px; font-size: 1.18rem; color: var(--hp-muted); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hp-btn { display: inline-flex; align-items:center; justify-content:center; gap: 9px; min-height: 52px; padding: 0 22px; border-radius: 13px; text-decoration: none; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn--primary { background: var(--hp-primary); color: white; box-shadow: 0 12px 28px rgba(10,122,121,.22); }
.hp-btn--primary:hover { background: var(--hp-primary-dark); }
.hp-btn--ghost { background: white; border-color: var(--hp-line); color: var(--hp-ink); }
.hp-btn--light { background: white; color: var(--hp-dark); }
.hp-proof { display:flex; flex-wrap:wrap; gap: 18px 28px; margin-top: 30px; color: #536a70; font-size: .92rem; }
.hp-proof span { display:inline-flex; align-items:center; gap:8px; }
.hp-proof svg { width: 18px; height:18px; color: var(--hp-primary); }

.hp-device { position: relative; min-height: 520px; }
.hp-device__halo { position:absolute; inset:55px 0 0; border-radius: 40px; background: linear-gradient(145deg,#e8f5f3,#dfe9eb); transform: rotate(-3deg); }
.hp-panel { position: relative; margin: 30px 14px 0 38px; background: #102a30; border-radius: 30px; padding: 18px; box-shadow: 0 38px 80px rgba(14,38,43,.24); border: 1px solid rgba(255,255,255,.16); }
.hp-panel__screen { min-height: 370px; border-radius: 20px; padding: 26px; background: linear-gradient(145deg,#f9fbfb,#edf4f4); }
.hp-panel__top { display:flex; justify-content:space-between; gap:20px; align-items:center; padding-bottom:18px; border-bottom:1px solid #d9e4e7; }
.hp-panel__title { font-weight: 900; font-size: 1.05rem; }
.hp-state { display:inline-flex; align-items:center; gap:7px; padding:6px 9px; border-radius:999px; color:#216d49; background:#e1f3e8; font-size:.72rem; font-weight:800; }
.hp-state i { width:6px; height:6px; border-radius:50%; background:#40a66d; }
.hp-metrics { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0; }
.hp-metric { background:white; border:1px solid #dbe6e8; border-radius:14px; padding:14px; }
.hp-metric small { display:block; color:#6b7e83; font-weight:700; font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; }
.hp-metric strong { display:block; margin-top:4px; font-size:1.45rem; }
.hp-metric strong em { color:var(--hp-primary); font-style:normal; }
.hp-control { background:var(--hp-dark); color:white; border-radius:16px; padding:18px; }
.hp-control__row { display:flex; justify-content:space-between; align-items:end; gap:16px; }
.hp-control__level { font-size:2.6rem; font-weight:900; line-height:1; }
.hp-control__level span { font-size:.9rem; font-weight:700; color:#aac4c8; }
.hp-bars { display:flex; gap:4px; align-items:end; height:48px; }
.hp-bars i { display:block; width:7px; border-radius:5px; background:#a9c5c8; opacity:.35; }
.hp-bars i:nth-child(-n+6) { background:#68c8bd; opacity:1; }
.hp-bars i:nth-child(1){height:12px}.hp-bars i:nth-child(2){height:16px}.hp-bars i:nth-child(3){height:20px}.hp-bars i:nth-child(4){height:24px}.hp-bars i:nth-child(5){height:29px}.hp-bars i:nth-child(6){height:34px}.hp-bars i:nth-child(7){height:38px}.hp-bars i:nth-child(8){height:42px}.hp-bars i:nth-child(9){height:46px}.hp-bars i:nth-child(10){height:48px}
.hp-float-card { position:absolute; background:white; border:1px solid var(--hp-line); border-radius:16px; padding:13px 15px; box-shadow: var(--hp-shadow); font-size:.8rem; }
.hp-float-card strong { display:block; font-size:1.1rem; }
.hp-float-card--a { left:-4px; bottom:56px; }
.hp-float-card--b { right:-8px; top:8px; }

/* Problem / steps */
.hp-intro-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; align-items:start; }
.hp-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.hp-card { background:white; border:1px solid var(--hp-line); border-radius:var(--hp-radius); padding:28px; box-shadow:0 8px 30px rgba(17,35,40,.045); }
.hp-card__icon { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px; background:var(--hp-primary-soft); color:var(--hp-primary); }
.hp-card__icon svg { width:24px; height:24px; }
.hp-card h3 { margin:0 0 9px; font-size:1.15rem; }
.hp-card p { margin:0; color:var(--hp-muted); }
.hp-note { border-left:3px solid var(--hp-primary); padding:4px 0 4px 18px; margin-top:28px; color:#496268; font-weight:650; }

.hp-process { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:44px; }
.hp-step { position:relative; padding:25px 22px; border:1px solid rgba(255,255,255,.13); border-radius:20px; background:rgba(255,255,255,.055); }
.hp-step__num { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:11px; background:#8ad5cd; color:#0e3235; font-weight:900; font-size:.82rem; }
.hp-step h3 { margin:18px 0 8px; font-size:1.08rem; }
.hp-step p { margin:0; color:#b9cdd1; font-size:.92rem; }

/* Uses */
.hp-use-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:42px; }
.hp-use { border-radius:22px; min-height:220px; padding:26px; background:linear-gradient(145deg,#fff,#f0f5f6); border:1px solid var(--hp-line); display:flex; flex-direction:column; justify-content:space-between; }
.hp-use__icon { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:var(--hp-dark); color:white; }
.hp-use__icon svg { width:22px; height:22px; }
.hp-use h3 { margin:24px 0 7px; font-size:1.25rem; }
.hp-use p { margin:0; color:var(--hp-muted); }

/* Features */
.hp-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--hp-line); border:1px solid var(--hp-line); border-radius:24px; overflow:hidden; margin-top:44px; }
.hp-feature { background:white; padding:30px; min-height:200px; }
.hp-feature strong { display:block; font-size:1.08rem; margin-bottom:9px; }
.hp-feature p { margin:0; color:var(--hp-muted); }
.hp-feature__tag { display:inline-block; margin-bottom:20px; color:var(--hp-primary); font-weight:900; font-size:.76rem; letter-spacing:.07em; text-transform:uppercase; }

/* Status */
.hp-status { display:grid; grid-template-columns:1fr auto; gap:40px; align-items:center; padding:34px; border-radius:26px; background:#e4f3f1; border:1px solid #cde5e1; }
.hp-status h2 { margin:0 0 8px; font-size:clamp(1.6rem,3vw,2.4rem); }
.hp-status p { margin:0; color:#46656a; max-width:780px; }
.hp-status__pill { white-space:nowrap; padding:11px 14px; border-radius:999px; background:white; font-weight:850; color:var(--hp-primary-dark); border:1px solid #c9e4df; }

/* Waitlist */
.hp-waitlist { display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; align-items:start; }
.hp-list { margin:26px 0 0; padding:0; list-style:none; display:grid; gap:12px; }
.hp-list li { display:flex; gap:11px; color:#c2d3d6; }
.hp-list svg { flex:0 0 auto; width:19px; height:19px; margin-top:3px; color:#83d4ca; }
.hp-form { background:white; color:var(--hp-ink); border-radius:26px; padding:30px; box-shadow:0 24px 60px rgba(0,0,0,.18); }
.hp-form__grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hp-field { margin-bottom:14px; }
.hp-field--full { grid-column:1 / -1; }
.hp-field label { display:block; margin-bottom:7px; font-size:.82rem; font-weight:800; color:#3b5258; }
.hp-field input, .hp-field select, .hp-field textarea { width:100%; border:1px solid #ccdadd; background:#f9fbfb; border-radius:11px; min-height:46px; padding:10px 12px; outline:none; }
.hp-field textarea { min-height:96px; resize:vertical; }
.hp-field input:focus, .hp-field select:focus, .hp-field textarea:focus { border-color:var(--hp-primary); box-shadow:0 0 0 3px rgba(10,122,121,.09); }
.hp-form__privacy { font-size:.75rem; color:#73868b; margin:10px 0 18px; }
.hp-alert { margin-bottom:16px; padding:12px 14px; border-radius:12px; font-weight:700; font-size:.9rem; }
.hp-alert--success { background:#e5f5ea; color:#236544; }
.hp-alert--error { background:#fdeaea; color:#8e3434; }

/* Footer */
.hp-footer { background:#091b1f; color:#a9bec2; padding:34px 0; }
.hp-footer__inner { display:flex; justify-content:space-between; align-items:center; gap:30px; }
.hp-footer .hp-brand { color:white; }
.hp-footer__links { display:flex; flex-wrap:wrap; gap:18px; font-size:.86rem; }
.hp-footer__links a { text-decoration:none; }
.hp-footer__links a:hover { color:white; }

/* Generic content */
.hp-content { width:min(calc(100% - 40px), 840px); margin:0 auto; padding:70px 0 100px; }
.hp-content h1 { font-size:clamp(2.2rem,5vw,4rem); letter-spacing:-.04em; line-height:1.05; }
.hp-content h2 { margin-top:2em; }
.hp-content a { color:var(--hp-primary); }

@media (max-width: 960px) {
  .hp-hero__grid, .hp-intro-grid, .hp-waitlist { grid-template-columns:1fr; gap:46px; }
  .hp-device { max-width:640px; margin:0 auto; width:100%; }
  .hp-process { grid-template-columns:repeat(2,1fr); }
  .hp-use-grid { grid-template-columns:repeat(2,1fr); }
  .hp-feature-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px) {
  .hp-container { width:min(calc(100% - 28px), var(--hp-max)); }
  .hp-section { padding:72px 0; }
  .hp-header__inner { height:68px; }
  .hp-menu-toggle { display:block; }
  .hp-nav { position:absolute; left:14px; right:14px; top:68px; display:none; flex-direction:column; align-items:stretch; gap:0; padding:10px; background:white; border:1px solid var(--hp-line); border-radius:16px; box-shadow:var(--hp-shadow); }
  .hp-nav.is-open { display:flex; }
  .hp-nav a { padding:12px 11px; }
  .hp-nav__cta { margin-top:5px; text-align:center; }
  .hp-hero { padding-top:58px; }
  .hp-hero h1 { font-size:clamp(2.9rem,15vw,4.7rem); }
  .hp-cards, .hp-process, .hp-use-grid, .hp-feature-grid, .hp-form__grid { grid-template-columns:1fr; }
  .hp-field--full { grid-column:auto; }
  .hp-device { min-height:460px; }
  .hp-panel { margin-left:8px; margin-right:8px; }
  .hp-panel__screen { padding:18px; min-height:340px; }
  .hp-metrics { grid-template-columns:1fr 1fr; }
  .hp-float-card--a { left:0; bottom:18px; }
  .hp-float-card--b { right:0; top:-15px; }
  .hp-status { grid-template-columns:1fr; gap:20px; }
  .hp-status__pill { justify-self:start; white-space:normal; }
  .hp-footer__inner { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 460px) {
  .hp-metrics { grid-template-columns:1fr; }
  .hp-metric:nth-child(2) { display:none; }
  .hp-device { min-height:430px; }
  .hp-control__level { font-size:2rem; }
  .hp-panel__screen { min-height:315px; }
  .hp-float-card { font-size:.72rem; }
}
