/* ===================================================================
   LinkMyLabs — Site vitrine statique
   Palette : bleus / teal (labo / eau) + accent corail
   =================================================================== */

:root {
  --teal-900: #084752;
  --teal-800: #0b5c6b;
  --teal-700: #0b7285;
  --teal-600: #0e8a9f;
  --teal-500: #1098ad;
  --teal-300: #6ee7df;
  --teal-50:  #e6f7f9;
  --accent:   #ff6b4a;
  --accent-dark: #e8502e;

  --ink:      #0f2833;
  --ink-soft: #3c535d;
  --muted:    #6b7f87;
  --line:     #e2ebee;
  --bg:       #ffffff;
  --bg-alt:   #f3f9fa;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 10px 30px -12px rgba(8, 71, 82, 0.25);
  --shadow-lg:0 24px 60px -20px rgba(8, 71, 82, 0.35);

  --maxw:     1140px;
  --font:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

a { color: var(--teal-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-600); }

img, svg { max-width: 100%; }

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

/* skip-to-content accessibility helper is implicit via header */
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(255,107,74,.6); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-300); }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-800); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px -10px rgba(8,71,82,.3); border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); }
.brand-name { font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-name strong { color: var(--teal-600); font-weight: 800; }
.brand-mark { flex: none; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.main-nav a:hover { color: var(--teal-700); }
.nav-cta { color: #fff; }
.nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(16,152,173,.18), transparent 60%),
              linear-gradient(180deg, #f6fcfd 0%, #ffffff 100%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700; color: var(--teal-600);
  background: var(--teal-50); padding: .4rem .8rem; border-radius: 999px; margin: 0 0 1.1rem;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.8rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.hero-badges li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23084752' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Hero mockup */
.hero-visual { display: flex; justify-content: center; }
.mock-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.25rem; transform: rotate(-1.2deg);
}
.mock-head { display: flex; align-items: center; gap: .4rem; padding-bottom: .9rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.mock-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-head .dot:nth-child(1){ background:#ff6b6b;} .mock-head .dot:nth-child(2){ background:#ffd43b;} .mock-head .dot:nth-child(3){ background:#51cf66;}
.mock-title { margin-left: auto; font-weight: 700; font-size: .9rem; color: var(--ink); }
.mock-row {
  display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-soft);
  padding: .65rem .7rem; border-radius: var(--radius-sm); margin-bottom: .4rem; background: var(--bg-alt);
}
.mock-row em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--muted); }
.mock-row.active { background: var(--teal-50); color: var(--teal-800); }
.mock-row.active em { color: var(--teal-600); }
.mock-ic { font-size: .9rem; color: var(--teal-600); }
.mock-sync { margin-top: .8rem; font-size: .8rem; color: var(--teal-700); background: var(--teal-50); padding: .6rem .7rem; border-radius: var(--radius-sm); text-align: center; }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 30c240 40 480 40 720 20s480-40 720-20v30H0z'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 1.5rem; }
.features { grid-template-columns: repeat(4, 1fr); }
.targets  { grid-template-columns: repeat(4, 1fr); margin-bottom: 3rem; }

/* ---------- Feature cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal-300); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; position: relative;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.6rem 1.6rem; position: relative; text-align: center; box-shadow: var(--shadow);
}
.step-num {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 16px -6px rgba(255,107,74,.6);
}
.step-icon { color: var(--teal-600); margin-bottom: .8rem; display: flex; justify-content: center; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Targets ---------- */
.target {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--teal-500);
  transition: transform .2s ease, box-shadow .2s ease;
}
.target:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.target p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff;
  border-radius: var(--radius); padding: 1.8rem 1.4rem;
}
.benefit-k { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.benefit-v { font-size: .95rem; opacity: .92; }

/* ---------- Domains ---------- */
.domains {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
}
.domains li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.3rem; font-weight: 600; color: var(--teal-800); font-size: .98rem;
  box-shadow: var(--shadow); transition: transform .18s ease, background .18s ease, color .18s ease;
}
.domains li:hover { transform: translateY(-3px); background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* ---------- Contact ---------- */
.section-contact { background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.contact-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-points li { display: flex; align-items: center; gap: .7rem; color: var(--ink-soft); font-weight: 500; }
.contact-points svg { color: var(--teal-600); flex: none; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-lg);
}
.contact-form h3 { margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfeff; transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(16,152,173,.15); }
.form-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #c6dde1; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.25rem 2.5rem; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name strong { color: var(--teal-300); }
.footer-tag { margin: 1rem 0 0; font-size: .95rem; max-width: 24rem; color: #a8c7cd; }
.footer-nav h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-nav a { color: #c6dde1; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.3rem 1.25rem; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #9fbec4; }
.footer-legal a { color: #9fbec4; }
.footer-legal a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .targets  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* mobile nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .3s ease; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: .9rem 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 1rem; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .mock-card { transform: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .features, .targets { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .benefits { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ---- Pages légales (mentions légales, confidentialité) ---- */
.legal-main { padding-top: 120px; padding-bottom: 72px; }
.legal-main .legal-head { margin-bottom: 32px; }
.legal-main .legal-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 10px; }
.legal-main .legal-head p { color: var(--muted, #5b6b70); margin: 0; }
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1.25rem; margin: 32px 0 10px; color: #0b7285; }
.legal-content h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal-content p, .legal-content li { line-height: 1.7; color: #33454a; }
.legal-content ul { margin: 8px 0 8px 1.1rem; }
.legal-content a { color: #0b7285; }
.legal-content .placeholder { background: #fff6e6; border: 1px dashed #e0a93b; border-radius: 6px; padding: 2px 6px; color: #8a5a00; font-size: .92em; }
.legal-content .updated { color: #5b6b70; font-size: .92rem; font-style: italic; }
