/* ====================================================================
   RewoLink — feuille de style
   Thème : bleu tech / blanc, moderne, épuré (cf. maquette rewoLink.png)
   ==================================================================== */

:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-700:    #1e40af;
  --navy:        #0b1220;
  --navy-2:      #111a2e;
  --ink:         #0f172a;
  --slate:       #475569;
  --slate-2:     #64748b;
  --line:        #e6eaf2;
  --bg:          #ffffff;
  --bg-alt:      #f6f8fc;
  --white:       #ffffff;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg:   0 24px 60px rgba(15, 23, 42, .14);
  --maxw:        1140px;
  --grad:        linear-gradient(135deg, #3b82f6, #2563eb 55%, #4f46e5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
a  { color: inherit; text-decoration: none; }

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, .45); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.25rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 14px rgba(37, 99, 235, .4);
}
.brand-name { letter-spacing: -.02em; }
.brand-accent { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links > a { font-weight: 500; color: var(--slate); transition: color .15s; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a.btn-primary { color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; background: var(--bg-alt); }
.hero-glow {
  position: absolute; inset: -20% 30% auto -10%; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.badge {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  color: var(--blue-700); font-weight: 600; font-size: .85rem;
  padding: .45rem .9rem; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero-copy h1 { margin-bottom: 18px; }
.lead { font-size: 1.18rem; color: var(--slate); max-width: 34ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { list-style: none; display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--slate-2); font-weight: 500; font-size: .92rem; }
.hero-trust li { color: var(--slate); }

/* Fenêtre / mockup stylisé */
.hero-visual { position: relative; }
.window { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; gap: 7px; padding: 13px 16px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd6e6; }
.window-bar span:first-child { background: #ff5f57; } .window-bar span:nth-child(2) { background: #febc2e; } .window-bar span:nth-child(3) { background: #28c840; }
.window-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.wl { height: 12px; border-radius: 6px; background: #eef1f7; }
.wl.short { width: 60%; }
.wl-title { height: 26px; width: 70%; border-radius: 8px; background: var(--grad); opacity: .85; }
.wl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0; }
.wl-card { height: 64px; border-radius: 10px; background: #f1f4fa; border: 1px solid var(--line); }
.wl-btn { height: 38px; width: 140px; border-radius: 999px; background: var(--grad); margin-top: 4px; }
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: .55rem .9rem; border-radius: 12px; font-weight: 600; font-size: .85rem; color: var(--ink);
}
.chip-1 { top: 18px; right: -10px; animation: floaty 4s ease-in-out infinite; }
.chip-2 { bottom: 22px; left: -16px; animation: floaty 4s ease-in-out infinite .8s; }
@keyframes floaty { 50% { transform: translateY(-9px); } }

/* ── Sections génériques ─────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.eyebrow.light { color: #8ab4ff; }
.muted { color: var(--slate); font-size: 1.05rem; }
.muted.center { text-align: center; margin-top: 10px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col h2 { margin-bottom: 16px; }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.checklist .check { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* Cards (services + réalisations) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d6e0f5; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #eaf1ff, #dbe7ff); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .96rem; }

/* Réalisations */
.work { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-thumb { height: 160px; }
.thumb-1 { background: linear-gradient(135deg, #c8923a, #5c3d2e); }
.thumb-2 { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.thumb-3 { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.work-body { padding: 20px 22px; }
.work-body h3 { margin-bottom: 6px; }
.work-body p { color: var(--slate); font-size: .94rem; }

/* Section sombre + stats */
.section-dark { background: var(--navy); color: #cdd7ea; }
.section-dark h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.stat-num { display: block; font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, #60a5fa, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat-label { color: #9fb0cc; font-size: .92rem; }

/* Méthode (steps) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--blue); opacity: .35; }
.step h3 { margin: 8px 0; }
.step p { color: var(--slate); font-size: .95rem; }

/* Témoignages */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.quote blockquote { font-size: 1.08rem; color: var(--ink); margin-bottom: 14px; }
.quote figcaption { color: var(--slate-2); font-weight: 600; font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; text-align: center; padding: 76px 0; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { font-size: 1.1rem; opacity: .95; margin-bottom: 26px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-700); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.cta-band .btn-primary:hover { transform: translateY(-2px); }
.cta-note { font-size: .9rem; opacity: .9; margin-top: 16px; }

/* Footer */
.footer { background: var(--navy); color: #9fb0cc; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .brand { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .92rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #9fb0cc; font-size: .92rem; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .85rem; color: #7e8eaa; }
.footer-bottom a:hover { color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid h2 { margin: 12px 0 14px; }
.contact-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.contact-list span {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  display: grid; place-items: center; background: linear-gradient(135deg, #eaf1ff, #dbe7ff);
  font-size: .9rem; font-weight: 700; color: var(--blue-700);
}
.contact-list a { color: var(--slate); }
.contact-list a:hover { color: var(--blue); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fbfcfe; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok  { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ── Pages légales ───────────────────────────────────────────────────── */
.legal-body { background: var(--bg-alt); }
.legal-top { background: #fff; border-bottom: 1px solid var(--line); }
.legal-top .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.legal-back { color: var(--slate); font-weight: 500; font-size: .92rem; }
.legal-back:hover { color: var(--blue); }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 46px 24px 80px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 5vw, 48px); box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 6px; }
.legal-updated { color: var(--slate-2); font-size: .88rem; margin-bottom: 26px; }
.legal-card h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.legal-card p, .legal-card li { color: var(--slate); margin-bottom: 10px; }
.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--blue); }
.legal-card a:hover { text-decoration: underline; }
.todo { background: #fff4cc; border-bottom: 1px dashed #d9a400; padding: 0 .25em; font-style: italic; color: #7a5c00; }

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

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cards, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid, .two-col, .quotes, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .footer-grid { gap: 26px; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: .4rem;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links > a { padding: 12px 4px; }
  .nav-links > a.btn-primary { text-align: center; }
  .burger { display: flex; }
}
@media (max-width: 520px) {
  .cards, .stats, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
