/* ============================================================
   MORITGEST — Design system
   Même famille visuelle que MoritSoft (encre + laiton), thème
   clair orienté "catalogue produits", un accent par logiciel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --ink:        #14202F;
  --ink-2:      #1E3350;
  --paper:      #F7F8F4;
  --paper-2:    #EEF1EC;
  --line:       rgba(20,32,47,0.12);
  --line-2:     rgba(20,32,47,0.08);
  --text-lo:    #56657A;
  --brass:      #C6963C;

  /* accents par logiciel */
  --c-commerciale: #1F8A6F;
  --c-restauration:#C6763C;
  --c-ecoles:      #3D5A9E;
  --c-medical:     #2D8FA0;

  --radius-s: 4px;
  --radius-m: 12px;
  --maxw: 1180px;
  --font-d: 'Space Grotesk', sans-serif;
  --font-b: 'IBM Plex Sans', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
body{ margin:0; background:var(--paper); color:var(--ink); font-family:var(--font-b); line-height:1.6; -webkit-font-smoothing:antialiased; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-d); font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
:focus-visible{ outline:2px solid var(--brass); outline-offset:3px; }

.btn{ display:inline-flex; align-items:center; gap:10px; padding:13px 24px; border-radius:var(--radius-s);
  font-family:var(--font-b); font-weight:600; font-size:15px; border:1.5px solid transparent; cursor:pointer;
  transition:transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:var(--ink-2); }
.btn-ghost{ border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--brass); }

/* Header */
header.site{ position:sticky; top:0; z-index:50; background:rgba(247,248,244,0.9); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 28px; max-width:var(--maxw); margin:0 auto; }
.logo{ display:flex; align-items:center; gap:12px; font-family:var(--font-d); font-weight:700; font-size:19px; }
.logo img{ height:36px; width:auto; display:block; }
.logo .sep{ width:1px; height:26px; background:var(--line); }
.logo .product{ color:var(--ink); }
.navlinks{ display:flex; align-items:center; gap:30px; }
.navlinks a.top{ color:var(--text-lo); font-size:15px; font-weight:500; }
.navlinks a.top:hover{ color:var(--ink); }
.burger{ display:none; background:none; border:0; color:var(--ink); cursor:pointer; }
@media (max-width:820px){ .navlinks{ display:none; } .burger{ display:block; } }

/* Hero */
.hero{ padding:80px 0 60px; }
.hero .wrap{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center; }
.eyebrow{ color:var(--c-commerciale); font-weight:600; font-size:14px; margin-bottom:16px; }
.hero h1{ font-size:clamp(32px,4.4vw,52px); line-height:1.08; }
.hero p.lead{ margin-top:20px; max-width:48ch; color:var(--text-lo); font-size:17px; }
.hero-cta{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero-anim{ animation:rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-anim.d1{ animation-delay:.08s; } .hero-anim.d2{ animation-delay:.18s; } .hero-anim.d3{ animation-delay:.28s; }
@keyframes rise{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

.suite-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.suite-tile{ border-radius:var(--radius-m); padding:22px; border:1px solid var(--line); background:#fff; }
.suite-tile svg{ width:26px; height:26px; margin-bottom:30px; }
.suite-tile h4{ font-size:15px; }
.suite-tile:nth-child(1){ color:var(--c-commerciale); }
.suite-tile:nth-child(2){ color:var(--c-restauration); }
.suite-tile:nth-child(3){ color:var(--c-ecoles); }
.suite-tile:nth-child(4){ color:var(--c-medical); }
.suite-tile h4{ color:var(--ink); }
@media (max-width:900px){ .hero .wrap{ grid-template-columns:1fr; } }

/* Section shell */
section{ padding:0; }
.section-head{ max-width:620px; margin:0 auto 50px; text-align:center; }
.section-tag{ font-weight:600; font-size:14px; margin-bottom:10px; }
.section-head h2{ font-size:clamp(26px,3vw,36px); }
.section-head p{ margin-top:14px; color:var(--text-lo); font-size:16px; }
.intro{ padding:70px 0 30px; }

/* Product sections (alternating) */
.product{ padding:70px 0; border-top:1px solid var(--line-2); }
.product .wrap{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:center; }
.product.reverse .wrap{ direction:rtl; }
.product.reverse .wrap > *{ direction:ltr; }
.product-badge{ display:inline-flex; align-items:center; gap:10px; font-size:13.5px; font-weight:600; padding:7px 14px; border-radius:20px; margin-bottom:20px; }
.product-visual{ aspect-ratio:1/0.85; border-radius:var(--radius-m); display:flex; align-items:center; justify-content:center; }
.product-visual svg{ width:56%; height:56%; }
.product h3{ font-size:clamp(22px,2.6vw,30px); margin-bottom:14px; }
.product p.desc{ color:var(--text-lo); font-size:16px; max-width:52ch; margin-bottom:22px; }
.feat-list{ display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; margin-bottom:26px; }
.feat-list li{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; color:var(--ink); }
.feat-list svg{ width:17px; height:17px; flex:none; margin-top:2px; }
@media (max-width:860px){
  .product .wrap{ grid-template-columns:1fr; }
  .product.reverse .wrap{ direction:ltr; }
  .feat-list{ grid-template-columns:1fr; }
}

/* Contact */
.contact{ background:var(--ink); color:#fff; padding:90px 0; margin-top:20px; }
.contact-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:60px; }
.contact .section-tag{ color:#7FD6BB; }
.contact h2{ color:#fff; }
.info-item{ display:flex; gap:14px; padding:16px 0; border-top:1px solid rgba(255,255,255,0.14); font-size:14.5px; }
.info-item:last-of-type{ border-bottom:1px solid rgba(255,255,255,0.14); }
.info-item svg{ width:19px; height:19px; color:#7FD6BB; flex:none; margin-top:2px; }
.info-item b{ display:block; margin-bottom:3px; }
.info-item span, .info-item a{ color:rgba(255,255,255,0.72); }

.social-row{ display:flex; gap:12px; margin-top:24px; }
.social-row a{
  width:40px; height:40px; border-radius:50%; border:1.5px solid currentColor;
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.04);
  transition:transform .15s ease, background-color .15s ease;
}
.social-row a:hover{ transform:translateY(-2px); background:currentColor; }
.social-row a:hover svg{ color:var(--ink); }
.social-row svg{ width:17px; height:17px; color:inherit; transition:color .15s ease; }

.map-block{ max-width:760px; margin:56px auto 0; text-align:center; }
.map-frame{ border-radius:var(--radius-m); overflow:hidden; border:1px solid rgba(255,255,255,0.14); height:300px; }
.map-frame iframe{ width:100%; height:100%; border:0; filter:grayscale(0.15) contrast(1.05); }
.map-btn{ margin-top:20px; background:#1F8A6F; }
.map-btn svg{ width:17px; height:17px; }

form.contact-form{ background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.14); border-radius:var(--radius-m); padding:32px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13.5px; color:rgba(255,255,255,0.65); margin-bottom:7px; }
.field select, .field input, .field textarea{
  width:100%; padding:12px 14px; background:rgba(255,255,255,0.06); border:1.5px solid rgba(255,255,255,0.18);
  border-radius:var(--radius-s); color:#fff; font-family:var(--font-b); font-size:14.5px;
}
.field select option{ color:#111; }
.field input:focus, .field textarea:focus, .field select:focus{ border-color:#7FD6BB; outline:none; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.captcha-box{ display:flex; align-items:center; gap:14px; background:rgba(255,255,255,0.06); border:1.5px dashed rgba(255,255,255,0.25); border-radius:var(--radius-s); padding:14px 16px; margin-bottom:20px; }
.captcha-q{ font-family:var(--font-d); font-size:18px; color:#7FD6BB; white-space:nowrap; }
.captcha-box input{ max-width:110px; }
.hp{ position:absolute; left:-9999px; opacity:0; height:0; }
.form-msg{ font-size:14px; padding:12px 14px; border-radius:var(--radius-s); margin-bottom:18px; }
.form-msg.ok{ background:rgba(127,214,187,0.16); color:#7FD6BB; border:1px solid #2D8F6E; }
.form-msg.err{ background:rgba(198,120,60,0.16); color:#E3A874; border:1px solid #7a4a24; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
@media (max-width:520px){ .two-col{ grid-template-columns:1fr; } }

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-float{
  position:fixed; right:24px; bottom:24px; z-index:80;
  width:58px; height:58px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(37,211,102,0.45);
  transition:transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover{ transform:translateY(-3px) scale(1.05); box-shadow:0 14px 30px rgba(37,211,102,0.55); }
.whatsapp-float svg{ width:28px; height:28px; }
@media (max-width:600px){
  .whatsapp-float{ right:16px; bottom:16px; width:52px; height:52px; }
  .whatsapp-float svg{ width:25px; height:25px; }
}

/* Footer */
footer.site{ background:#fff; border-top:1px solid var(--line); padding:40px 0 26px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:32px; }
.foot-grid h4{ font-size:14px; margin-bottom:14px; }
.foot-grid ul li{ margin-bottom:9px; }
.foot-grid ul a{ font-size:14px; color:var(--text-lo); }
.foot-grid ul a:hover{ color:var(--ink); }
.foot-bottom{ border-top:1px solid var(--line); padding-top:20px; font-size:13px; color:var(--text-lo); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
@media (max-width:700px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .foot-grid{ grid-template-columns:1fr; } }
