/* =========================================================
   PMEPLUS — Atelier tech
   Fonts: Clash Display (display) + Satoshi (texte) via Fontshare
   ========================================================= */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg:        #06080d;
  --bg-2:      #0a0e16;
  --surface:   #0f141f;
  --surface-2: #141a28;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #eaf0fb;
  --muted:     #9aa6bd;
  --muted-2:   #6b7790;
  --accent:    #45d0ff;   /* cyan électrique */
  --accent-2:  #6f7bff;   /* indigo */
  --accent-3:  #ff7a59;   /* corail chaud */
  --glow:      0 0 60px rgba(69,208,255,.35);
  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.2,.7,.2,1);
  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Atmosphère : mesh + grain ---- */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 50% at 18% 12%, rgba(69,208,255,.18), transparent 60%),
    radial-gradient(45% 45% at 85% 8%,  rgba(111,123,255,.16), transparent 60%),
    radial-gradient(60% 60% at 70% 95%, rgba(255,122,89,.10), transparent 60%),
    var(--bg);
  animation: meshFloat 22s var(--ease) infinite alternate;
}
@keyframes meshFloat {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0; filter: saturate(1); }
  100% { background-position: 4% 3%, -3% 2%, 2% -3%, 0 0; filter: saturate(1.15); }
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .6; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.3rem); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: clamp(1rem,1.6vw,1.18rem); max-width: 620px; }

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap;
}
.btn-primary {
  color: #04121a;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(69,208,255,.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(69,208,255,.42); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,8,13,.72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line); padding: 12px 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand-term {
  font-family: var(--font-mono); font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  color: var(--text); display: inline-flex; align-items: center; line-height: 1;
}
.brand-term .prompt { color: var(--accent); margin-right: .45ch; font-weight: 700; }
.brand-term .cursor {
  display: inline-block; width: .5ch; height: 1.05em; background: var(--accent);
  margin-left: .12ch; transform: translateY(.06em); border-radius: 1px;
  animation: termBlink 1.1s steps(1) infinite; box-shadow: 0 0 8px rgba(69,208,255,.6);
}
@keyframes termBlink { 50% { opacity: 0; } }
.brand:hover .brand-term { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .25s; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a.btn-primary { color: #04121a; }
.nav-links a.btn-ghost { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---- Hero ---- */
.hero { padding: 180px 0 120px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; color: var(--muted);
  margin-bottom: 30px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 600; margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero p.lead { font-size: clamp(1.05rem,2vw,1.35rem); color: var(--muted); max-width: 640px; margin: 0 auto 38px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 70px; }
.hero-stat .num { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 600; }
.hero-stat .lbl { color: var(--muted-2); font-size: 14px; letter-spacing: .02em; }

/* ---- Marquee logos / plateformes ---- */
.platforms { padding: 0 0 40px; }
.platforms .wrap { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: .7; }
.platforms span { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 500; font-size: 15px; }
.platforms svg { width: 19px; height: 19px; opacity: .85; }

/* ---- Services grid ---- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, transparent, rgba(69,208,255,.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(69,208,255,.1); border: 1px solid rgba(69,208,255,.2);
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---- Capacités (vulgarisé) ---- */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.cap {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.cap:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.cap-ic { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(69,208,255,.1); border: 1px solid rgba(69,208,255,.2); }
.cap-ic svg { width: 20px; height: 20px; stroke: var(--accent); }
.cap b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; color: var(--text); }
.cap span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.caps-foot { text-align: center; color: var(--muted); margin-top: 40px; font-size: 15.5px; }
.caps-foot b { color: var(--text); font-weight: 700; }

/* ---- Process ---- */
.steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 50px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 30px 30px 84px;
}
.step-num {
  position: absolute; left: 26px; top: 28px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step-highlight { border-color: rgba(69,208,255,.4); box-shadow: var(--glow); }

/* ---- Réalisations ---- */
.works { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 50px; }
.work {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 32px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform .4s var(--ease), border-color .4s; overflow: hidden; position: relative;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-2); }
.work-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.work-logo {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff;
  border: 1px solid var(--line); background: #000;
}
.work-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.work { text-decoration: none; color: inherit; display: block; }
.work-store {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
}
.work-store svg { width: 16px; height: 16px; }
.work-store.soon { color: var(--muted-2); font-weight: 500; }
.work-arrow { transition: transform .3s var(--ease); display: inline-block; }
a.work:hover .work-arrow { transform: translateX(4px); }
.work-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
  border: 1px solid var(--line-2); padding: 5px 12px; border-radius: 100px; }
.work-tag.client { color: var(--accent); border-color: rgba(69,208,255,.3); }
.work-tag.studio { color: var(--accent-3); border-color: rgba(255,122,89,.3); }
.work h3 { font-size: 1.5rem; margin-bottom: 8px; }
.work p { color: var(--muted); font-size: 15px; }
.work-meta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.work-meta span { font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 5px 11px; border-radius: 100px; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 50px; align-items: stretch; max-width: 880px; margin-left: auto; margin-right: auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border-color: rgba(69,208,255,.45); background: linear-gradient(180deg, rgba(69,208,255,.07), var(--surface));
  box-shadow: var(--glow); position: relative;
}
.price-card.featured::after {
  content: "Le plus choisi"; position: absolute; top: 18px; right: 18px; font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: #04121a; background: var(--accent); padding: 5px 11px; border-radius: 100px; font-weight: 700;
}
.price-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; min-height: 42px; }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.price-amount small { font-size: .95rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.price-from { font-size: 13px; color: var(--muted-2); margin-bottom: 24px; }
.price-list { list-style: none; margin-bottom: 28px; flex: 1; }
.price-list li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; color: var(--muted); font-size: 14.5px; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list li svg { width: 17px; height: 17px; stroke: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-note { text-align: center; color: var(--muted-2); font-size: 14px; margin-top: 28px; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 46px auto 0; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .3s;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; transition: transform .3s var(--ease); }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
}
.faq-item summary .plus::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq-item summary .plus::after { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: opacity .3s; }
.faq-item[open] summary .plus { transform: rotate(180deg); }
.faq-item[open] summary .plus::after { opacity: 0; }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.faq-item .faq-a a { color: var(--accent); }

/* ---- Booking / contact ---- */
.booking { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.booking-info h2 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 18px; }
.booking-info p { color: var(--muted); margin-bottom: 28px; max-width: 420px; }
.booking-list { list-style: none; display: grid; gap: 18px; }
.booking-list li { display: flex; gap: 14px; align-items: flex-start; }
.booking-list .ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(69,208,255,.1); border: 1px solid rgba(69,208,255,.2); display: grid; place-items: center; flex-shrink: 0; }
.booking-list .ic svg { width: 19px; height: 19px; stroke: var(--accent); }
.booking-list b { display: block; color: var(--text); font-size: 15.5px; }
.booking-list span { color: var(--muted); font-size: 14px; }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field label .req { color: var(--accent-3); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(69,208,255,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239aa6bd' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }
.form-error { font-size: 13px; color: var(--accent-3); margin-top: 12px; text-align: center; }
.form-error:empty { display: none; }
.form-consent { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; text-align: center; }
.form-consent a { color: var(--muted); }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; animation: fadeUp .5s var(--ease); }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(69,208,255,.12); border: 1px solid rgba(69,208,255,.3); }
.form-success .check svg { width: 30px; height: 30px; stroke: var(--accent); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-col a, .footer-col p { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal p, .footer-legal a { color: var(--muted-2); font-size: 13px; text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
.footer-siren { color: var(--muted-2); font-size: 12.5px; margin-top: 8px; line-height: 1.8; }

/* ---- Floating phone ---- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 0;
  text-decoration: none;
}
.fab-btn {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a;
  box-shadow: 0 10px 30px rgba(69,208,255,.4); transition: transform .3s var(--ease);
  position: relative;
}
.fab-btn svg { width: 26px; height: 26px; }
.fab-btn::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: .5; animation: ring 2.2s var(--ease) infinite;
}
@keyframes ring { 0%{ transform: scale(.9); opacity:.6 } 100%{ transform: scale(1.5); opacity:0 } }
.fab:hover .fab-btn { transform: scale(1.08); }
.fab-label {
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 16px 11px 14px; border-radius: 100px; margin-right: -30px; padding-right: 40px;
  font-weight: 600; font-size: 14px; opacity: 0; transform: translateX(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease); white-space: nowrap; pointer-events: none;
}
.fab:hover .fab-label { opacity: 1; transform: translateX(0); }
@media (hover: none) { .fab-label { display: none; } }

/* ---- Cookie banner ---- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 95; max-width: 420px;
  background: rgba(15,20,31,.92); backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie.show { transform: translateY(0); }
.cookie h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.cookie p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.cookie p a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 13.5px; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity:0; transform: translateY(16px) } to { opacity:1; transform:none } }

/* ---- Legal pages ---- */
.legal { padding: 150px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 12px; }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 44px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; margin-bottom: 30px; font-size: 14px; }
.legal .back:hover { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.legal td { border: 1px solid var(--line); padding: 12px 14px; font-size: 14.5px; color: var(--muted); }
.legal td:first-child { color: var(--text); font-weight: 500; width: 38%; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .grid-2, .steps, .works { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 340px; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 40px; background: rgba(8,11,18,.97);
    backdrop-filter: blur(20px); border-left: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: scale(.98);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  /* Le backdrop-filter de la nav crée un bloc englobant : on le neutralise
     quand le menu est ouvert pour que le panneau reste fixé au viewport. */
  .nav.menu-open, .nav.scrolled.menu-open {
    backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent;
  }
  .nav-links a { font-size: 20px; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 30px; }
  .caps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
