/* ==========================================================
   MELETA — style.css — Refonte
   Identité : graphite industriel + couleurs de statut réelles
   de l'application. Big Shoulders Display (titres) + IBM Plex
   Sans (texte) + IBM Plex Mono (repères techniques).
========================================================== */

:root{
  --graphite: #12161A;
  --steel: #1B2229;
  --steel-2: #242C35;
  --border: #313B46;
  --chalk: #EDF1F4;
  --chalk-dim: #9FACB8;
  --chalk-faint: #5C6975;
  --green: #3DAA5C;
  --amber: #E2932E;
  --red: #D64545;
  --blue: #5B8BB0;
  --blue-bright: #7FADD1;
  --display: 'Big Shoulders Display', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; color-scheme:dark; }
body{
  margin:0; background:var(--graphite); color:var(--chalk);
  font-family:var(--body); font-size:16px; line-height:1.5;
  overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
section{ padding:96px 0; }
section.tight{ padding:64px 0; }

h1,h2,h3{ font-family:var(--display); font-weight:700; line-height:1.05; margin:0; letter-spacing:0.002em; }
h2{ font-size:clamp(30px,3.6vw,44px); }
h3{ font-size:20px; font-weight:700; }
p{ margin:0; }
.lead{ font-size:17px; color:var(--chalk-dim); line-height:1.6; max-width:540px; }

.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:12px; color:var(--blue-bright); }
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--green); flex-shrink:0; }

/* ---------- Logo (badge trois pastilles + texte) ---------- */
.logo{ display:flex; align-items:center; gap:10px; text-decoration:none; font-family:var(--display); font-weight:700; font-size:19px; color:var(--chalk); letter-spacing:0.01em; }
.logo-badge{ width:27px; height:22px; flex-shrink:0; }

/* ---------- Nav ---------- */
header{ position:sticky; top:0; z-index:40; background:rgba(18,22,26,0.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:1180px; margin:0 auto; }
.nav-links{ display:flex; gap:32px; font-size:14.5px; }
.nav-links a{ text-decoration:none; color:var(--chalk-dim); transition:color .15s; }
.nav-links a:hover, .nav-links a.active{ color:var(--chalk); }
.nav-cta{ display:flex; align-items:center; gap:16px; }
.lang-switch{ display:flex; align-items:center; gap:2px; font-family:var(--mono); font-size:12.5px; }
.lang-switch a{ padding:5px 9px; border-radius:4px; color:var(--chalk-faint); text-decoration:none; transition:color .15s,background .15s; }
.lang-switch a.active{ color:var(--chalk); background:var(--steel-2); }
.lang-switch a:hover:not(.active){ color:var(--chalk-dim); }
.lang-switch .sep{ color:var(--border); }
.burger{ display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:6px; }
.burger span{ width:20px; height:2px; background:var(--chalk); }
.mobile-menu{ display:none; flex-direction:column; border-top:1px solid var(--border); }
.mobile-menu a{ padding:16px 32px; text-decoration:none; color:var(--chalk-dim); border-bottom:1px solid var(--border); font-size:15px; }
.mobile-menu a.active{ color:var(--chalk); }
.mobile-menu.show{ display:flex; }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 24px; border-radius:8px; font-family:var(--body); font-weight:600; font-size:14.5px; text-decoration:none; cursor:pointer; border:1px solid transparent; transition:filter .15s, background .15s, border-color .15s; }
.btn-primary{ background:var(--blue); color:#0d1216; }
.btn-primary:hover{ filter:brightness(1.08); }
.btn-ghost{ border-color:var(--border); color:var(--chalk); background:transparent; }
.btn-ghost:hover{ border-color:var(--chalk-faint); }

/* ---------- Hero ---------- */
.hero{ padding:88px 0 40px; position:relative; overflow:hidden; }
.hero::before{ content:""; position:absolute; inset:0; background-image:linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size:64px 64px; opacity:0.18; mask-image:radial-gradient(ellipse 700px 500px at 20% 20%, black, transparent); pointer-events:none; }
.hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:50px; align-items:center; position:relative; }
.hero h1{ font-size:clamp(38px,4.6vw,58px); margin-top:16px; }
.hero .lead{ margin-top:20px; max-width:480px; }
.hero-actions{ display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }

/* ---------- Device mockup ---------- */
.devices{ position:relative; height:440px; width:100%; }
.device{ position:absolute; background:#0d1013; border-radius:20px; box-shadow:0 30px 70px -20px rgba(0,0,0,0.6); border:1px solid #2a323b; }
.device.tablet{ width:100%; max-width:420px; top:0; left:0; padding:14px; }
.device.tablet .screen{ background:var(--steel); border-radius:10px; height:340px; padding:20px; overflow:hidden; }
.device.phone{ width:170px; bottom:-10px; right:-6px; padding:9px; border-radius:24px; }
.device.phone .screen{ background:var(--steel); border-radius:16px; height:300px; padding:14px; overflow:hidden; }
.screen-head{ display:flex; justify-content:space-between; align-items:center; font-family:var(--mono); font-size:10.5px; color:var(--chalk-faint); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:12px; }
.screen-head b{ color:var(--blue-bright); font-weight:600; }
.pick-row{ display:flex; align-items:center; justify-content:space-between; background:var(--steel-2); border-radius:8px; padding:11px 13px; margin-bottom:9px; font-size:13px; }
.pick-row .fam-name{ font-weight:600; }
.pick-row .fam-count{ font-family:var(--mono); font-size:11px; color:var(--chalk-faint); }
.pt-row{ display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:12.5px; }
.pt-row:last-child{ border-bottom:none; }
.pill{ display:inline-flex; align-items:center; gap:5px; font-family:var(--mono); font-size:10px; font-weight:600; padding:3px 9px; border-radius:12px; }
.pill.ok{ background:rgba(61,170,92,0.16); color:#5ec97e; }
.pill.warn{ background:rgba(226,147,46,0.16); color:#eba84f; }
.pill .d{ width:5px; height:5px; border-radius:50%; background:currentColor; }
.phone-title{ font-weight:700; font-size:14px; margin-bottom:10px; }

/* ---------- Trust strip ---------- */
.trust{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:22px 0; }
.trust .wrap{ display:flex; gap:40px; flex-wrap:wrap; font-size:13.5px; color:var(--chalk-dim); }
.trust b{ color:var(--chalk); }

/* ---------- Polyvalence chips ---------- */
.equip-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:40px; }
.equip-chip{ display:flex; align-items:center; gap:12px; background:var(--steel); border:1px solid var(--border); border-radius:10px; padding:16px 18px; }
.equip-chip .mark{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.equip-chip span{ font-size:14.5px; font-weight:600; }

/* ---------- Feature tag grid ---------- */
.tag-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:44px; }
.tag{ background:var(--steel); border:1px solid var(--border); border-radius:12px; padding:26px; }
.tag .mk{ width:10px; height:10px; border-radius:50%; margin-bottom:16px; }
.tag h3{ margin-bottom:10px; }
.tag p{ font-size:14px; color:var(--chalk-dim); line-height:1.55; }

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:44px; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.step{ padding:30px 28px; border-right:1px solid var(--border); }
.step:last-child{ border-right:none; }
.step-tag{ font-family:var(--mono); font-size:11.5px; color:var(--blue-bright); text-transform:uppercase; letter-spacing:0.05em; }
.step h3{ margin:12px 0 8px; }
.step p{ font-size:13.5px; color:var(--chalk-dim); line-height:1.55; }

/* ---------- Section head ---------- */
.section-head{ max-width:640px; }
.section-head h2{ margin-top:14px; }

/* ---------- CTA band ---------- */
.cta-band{ text-align:center; padding:90px 0; border-top:1px solid var(--border); }
.cta-band h2{ margin-top:14px; }
.cta-band .lead{ margin:18px auto 0; }
.cta-band .hero-actions{ justify-content:center; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding:52px 0 30px; }
.footer-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px; }
.footer-cols{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h4{ font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.05em; color:var(--chalk-faint); margin-bottom:14px; font-weight:600; }
.footer-col a{ display:block; text-decoration:none; color:var(--chalk-dim); font-size:14px; margin-bottom:10px; }
.footer-col a:hover{ color:var(--chalk); }
.footer-bottom{ margin-top:44px; padding-top:22px; border-top:1px solid var(--border); display:flex; justify-content:space-between; font-size:12.5px; color:var(--chalk-faint); flex-wrap:wrap; gap:8px; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:40px; align-items:start; }
.info-card{ background:var(--steel); border:1px solid var(--border); border-radius:12px; padding:22px 24px; margin-bottom:14px; }
.info-card .mk{ width:9px; height:9px; border-radius:50%; margin-bottom:12px; }
.info-card h3{ margin-bottom:6px; font-size:17px; }
.info-card p{ font-size:13.5px; color:var(--chalk-dim); line-height:1.5; }
.form-panel{ background:var(--steel); border:1px solid var(--border); border-radius:14px; padding:32px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.04em; color:var(--chalk-faint); margin-bottom:8px; }
.field input, .field textarea{ width:100%; background:var(--steel-2); border:1px solid var(--border); border-radius:8px; padding:12px 14px; color:var(--chalk); font-family:var(--body); font-size:14.5px; }
.field textarea{ resize:vertical; min-height:100px; }
.field input:focus, .field textarea:focus{ outline:2px solid var(--blue); outline-offset:1px; }
.confirm{ display:none; background:var(--steel-2); border:1px solid var(--green); border-left:4px solid var(--green); border-radius:6px; padding:16px 18px; margin-top:18px; font-size:13.5px; }
.confirm.show{ display:block; }
.confirm.erreur{ border-color:var(--red); border-left-color:var(--red); }

/* ---------- Feature blocks (page fonctionnalités) ---------- */
.fb{ display:grid; grid-template-columns:0.95fr 1.05fr; gap:56px; align-items:center; padding:64px 0; border-bottom:1px solid var(--border); }
.fb:last-of-type{ border-bottom:none; }
.fb.rev{ grid-template-columns:1.05fr 0.95fr; }
.fb.rev .fb-visual{ order:-1; }
.fb h2{ font-size:clamp(26px,3vw,36px); margin:14px 0 16px; }
.fb .lead{ max-width:none; }
.fb-list{ margin-top:20px; list-style:none; padding:0; }
.fb-list li{ display:flex; gap:11px; padding:11px 0; border-top:1px solid var(--border); font-size:14.5px; color:var(--chalk-dim); }
.fb-list li:first-child{ border-top:none; }
.fb-list li::before{ content:"—"; color:var(--blue-bright); font-family:var(--mono); flex-shrink:0; }
.fb-visual{ background:var(--steel); border:1px solid var(--border); border-radius:12px; padding:26px; }
.fb-visual .lbl{ font-family:var(--mono); font-size:11px; color:var(--chalk-faint); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:14px; }

.roles-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:40px; }

/* ---------- Page GMAO & Contrôle terrain ---------- */
.vs-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0; margin-top:44px; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.vs-col{ padding:34px 30px; }
.vs-col.gmao{ background:var(--steel); border-right:1px solid var(--border); }
.vs-col.meleta{ background:var(--steel-2); }
.vs-label{ font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.05em; color:var(--chalk-faint); margin-bottom:10px; }
.vs-col h3{ margin-bottom:18px; }
.vs-col.meleta h3{ color:var(--blue-bright); }
.vs-list{ list-style:none; padding:0; margin:0; }
.vs-list li{ display:flex; gap:10px; padding:10px 0; border-top:1px solid var(--border); font-size:14.5px; color:var(--chalk-dim); }
.vs-list li:first-child{ border-top:none; }
.vs-list li::before{ content:"—"; color:var(--chalk-faint); flex-shrink:0; }
.vs-col.meleta .vs-list li::before{ content:"✓"; color:var(--green); }
.together-band{ background:var(--steel); border:1px solid var(--border); border-radius:14px; padding:40px; margin-top:40px; text-align:center; }
.together-band .arrow{ font-family:var(--mono); color:var(--blue-bright); font-size:20px; margin:0 18px; }
.together-flow{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; font-family:var(--display); font-weight:700; font-size:22px; margin-bottom:18px; }

@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; }
  .devices{ height:380px; max-width:420px; margin:0 auto; }
  .tag-grid{ grid-template-columns:repeat(2,1fr); }
  .equip-grid{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:1fr; }
  .step{ border-right:none; border-bottom:1px solid var(--border); }
  .step:last-child{ border-bottom:none; }
  .contact-grid{ grid-template-columns:1fr; }
  .fb, .fb.rev{ grid-template-columns:1fr; gap:30px; padding:44px 0; }
  .fb.rev .fb-visual{ order:0; }
  .device.phone{ right:10px; }
  .vs-grid{ grid-template-columns:1fr; }
  .vs-col.gmao{ border-right:none; border-bottom:1px solid var(--border); }
  .together-flow{ font-size:17px; }
}
@media (max-width:680px){
  .nav-links,.nav-cta{ display:none; }
  .burger{ display:flex; }
  .hero{ padding:56px 0 32px; }
  section{ padding:64px 0; }
  .tag-grid, .equip-grid{ grid-template-columns:1fr; }
  .footer-grid{ flex-direction:column; }
  .devices{ height:340px; }
  .device.tablet{ max-width:100%; }
  .device.phone{ width:140px; right:0; }
  .device.phone .screen{ height:250px; }
}

/* ---------- Animations — rendre le site plus vivant ---------- */
.eyebrow .dot{ animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot{
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61,170,92,0.35); }
  50% { opacity: 0.75; box-shadow: 0 0 0 5px rgba(61,170,92,0); }
}

.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

.tag, .equip-chip, .step{ transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.tag:hover, .equip-chip:hover{ transform: translateY(-4px); border-color: var(--chalk-faint); }

.pill{ transition: background .5s ease, color .5s ease; }
.pill.pending{ background: rgba(159,172,184,0.1); color: var(--chalk-faint); }
.pill.pending .d{ background: currentColor; animation: pulse-pending 1s ease-in-out infinite; }
@keyframes pulse-pending{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }

.devices{ animation: float-devices 5s ease-in-out infinite; }
@keyframes float-devices{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce){
  .eyebrow .dot, .devices, .pill.pending .d{ animation: none !important; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---------- Schéma GMAO + Meleta (frise du cycle) ---------- */
.flow-diagram{ margin-top:48px; }
.flow-gmao-bracket{ text-align:center; font-family:var(--mono); font-size:12px; color:var(--chalk-faint); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:8px; }
.flow-gmao-line{ height:1px; background:var(--border); position:relative; margin-bottom:28px; }
.flow-gmao-line::before, .flow-gmao-line::after{ content:""; position:absolute; top:-4px; width:1px; height:9px; background:var(--border); }
.flow-gmao-line::before{ left:0; } .flow-gmao-line::after{ right:0; }
.flow-track{ display:flex; align-items:center; gap:0; }
.flow-step{ flex:1; background:var(--steel); border:1px solid var(--border); border-radius:10px; padding:22px 18px; text-align:center; position:relative; }
.flow-step-label{ font-weight:600; font-size:14.5px; }
.flow-step-sub{ font-size:12px; color:var(--chalk-faint); margin-top:4px; }
.flow-arrow{ font-family:var(--mono); color:var(--chalk-faint); padding:0 10px; font-size:16px; flex-shrink:0; }
.flow-step.flow-meleta{ background:var(--steel-2); border:1.5px solid var(--blue); transform:scale(1.12); z-index:2; animation: flow-pulse-ring 2.6s ease-in-out infinite; }
@keyframes flow-pulse-ring{ 0%,100%{ box-shadow:0 0 0 0 rgba(91,139,176,0.35); } 50%{ box-shadow:0 0 0 10px rgba(91,139,176,0); } }
.flow-meleta-badge{ display:inline-block; font-family:var(--mono); font-size:10px; font-weight:600; letter-spacing:0.05em; color:var(--blue-bright); background:rgba(91,139,176,0.14); padding:3px 9px; border-radius:12px; margin-bottom:10px; }
.flow-meleta .flow-step-label{ color:var(--chalk); font-size:15.5px; }
.flow-caption{ text-align:center; margin-top:26px; color:var(--chalk-dim); font-size:14.5px; max-width:560px; margin-left:auto; margin-right:auto; }

@media (prefers-reduced-motion: reduce){
  .flow-step.flow-meleta{ animation:none !important; }
}
@media (max-width:680px){
  .flow-track{ flex-direction:column; gap:14px; }
  .flow-arrow{ transform:rotate(90deg); padding:4px 0; }
  .flow-step.flow-meleta{ transform:scale(1.06); }
}
