/* =========================================================
   LAMOLINAIRIE — site vitrine
   Direction : immersive, fond bleu en dégradé, halos lumineux,
   cartes en verre (glassmorphism), accents néon discrets.
   ========================================================= */

:root {
  --bg-deep:    #060C1F;
  --bg-mid:     #0E2358;
  --bg-high:    #13316E;

  --text:       #F3F6FC;
  --text-soft:  #A9B7DD;
  --text-faint: #6E7FA8;

  --blue:       #3E7CFF;
  --blue-light: #7FB1FF;
  --green:      #2FE3A6;

  --glass:        rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --border:       rgba(255, 255, 255, 0.14);
  --border-soft:  rgba(255, 255, 255, 0.08);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-soft); }

.grad-text {
  background: linear-gradient(95deg, var(--blue-light), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
}

section { padding: 128px 0; position: relative; }

/* =========================================================
   Fond : dégradé global + halos + grain
   ========================================================= */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-high) 100%);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.orb-blue {
  width: 620px; height: 620px;
  top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(62, 124, 255, 0.55), transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.orb-green {
  width: 480px; height: 480px;
  top: 38%; left: -200px;
  background: radial-gradient(circle, rgba(47, 227, 166, 0.35), transparent 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.orb-blue-soft {
  width: 700px; height: 700px;
  bottom: -300px; right: 10%;
  background: radial-gradient(circle, rgba(127, 177, 255, 0.25), transparent 70%);
  animation: drift1 38s ease-in-out infinite alternate-reverse;
}

@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(-40px, 50px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(60px, -30px); } }

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Boutons
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: linear-gradient(95deg, var(--blue), var(--green));
  color: #051022;
  box-shadow: 0 8px 30px -8px rgba(62, 124, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -8px rgba(47, 227, 166, 0.55); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--glass);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.btn-small { padding: 11px 20px; font-size: 0.85rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 12, 31, 0.45);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  gap: 24px;
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo-dot { color: var(--green); }

.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--text-soft); position: relative; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: linear-gradient(95deg, var(--blue-light), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--text); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: 100px; padding-bottom: 96px; }

.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  margin-bottom: 1.4em;
}

.hero-sub { font-size: 1.08rem; max-width: 460px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 1.8em; }

/* Entrée animée du hero */
.enter { opacity: 0; transform: translateY(16px); animation: enterUp 0.8s cubic-bezier(.2,.8,.2,1) forwards; }
.enter-1 { animation-delay: 0.05s; }
.enter-2 { animation-delay: 0.18s; }
.enter-3 { animation-delay: 0.34s; }
.enter-4 { animation-delay: 0.5s; }
@keyframes enterUp { to { opacity: 1; transform: translateY(0); } }

/* ---- Mockup de fenêtre flottante ---- */
.hero-visual { position: relative; perspective: 1200px; }

.mock-window {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(5, 10, 30, 0.7);
  transform: rotateX(4deg) rotateY(-6deg);
  transition: transform 0.2s ease-out;
}

.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-blue { background: var(--blue-light); }
.dot-green { background: var(--green); }
.dot-line { background: var(--text-faint); }
.mock-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.mock-body { padding: 28px; }
.mock-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.mock-line { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.16); margin-bottom: 12px; }
.mock-line-1 { width: 78%; }
.mock-line-2 { width: 55%; background: rgba(255,255,255,0.1); }
.mock-cta {
  width: 130px; height: 34px; border-radius: 999px; margin-top: 18px;
  background: linear-gradient(95deg, var(--blue), var(--green));
}
.mock-tile {
  margin-top: 22px;
  height: 90px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(62,124,255,0.18), rgba(47,227,166,0.12));
}

.mock-glow {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(circle at 60% 30%, rgba(47, 227, 166, 0.25), transparent 60%);
  filter: blur(30px);
}

.floaty {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(6px);
}
.floaty-1 { width: 64px; height: 64px; top: -24px; left: -28px; animation: floatY 7s ease-in-out infinite; }
.floaty-2 { width: 36px; height: 36px; bottom: 10%; right: -18px; animation: floatY 9s ease-in-out infinite reverse; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* =========================================================
   Manifeste
   ========================================================= */
.manifesto { padding: 80px 0; text-align: center; }
.manifesto-inner { max-width: 760px; margin: 0 auto; }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.35;
}

/* =========================================================
   Cartes en verre — services
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.glass-card:hover { transform: translateY(-6px); border-color: var(--green); background: var(--glass-strong); }

.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(62, 124, 255, 0.14);
  color: var(--blue-light);
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon-green { background: rgba(47, 227, 166, 0.14); color: var(--green); }

.glass-card p { font-size: 0.95rem; margin-bottom: 0; }

.section-sub { margin-top: -10px; max-width: 460px; }

/* =========================================================
   Tarifs
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-6px); }

.price-card-featured {
  border-color: rgba(47, 227, 166, 0.45);
  background: linear-gradient(160deg, rgba(62, 124, 255, 0.12), rgba(47, 227, 166, 0.08));
  box-shadow: 0 30px 60px -28px rgba(47, 227, 166, 0.35);
}

.price-tag {
  position: absolute;
  top: -13px;
  left: 36px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(95deg, var(--blue), var(--green));
  color: #051022;
}

.price-card h3 { margin-bottom: 0.2em; }

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 0.3em 0 0.1em;
}

.price-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1.6em;
}

.price-list {
  list-style: none;
  margin: 0 0 2em;
  padding: 0;
  flex-grow: 1;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 600;
}

.price-cta { align-self: flex-start; }

/* ---------- À propos ---------- */
.about-inner { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: 64px; align-items: center; }

.avatar-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  position: relative;
}
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  z-index: -1;
  opacity: 0.5;
  filter: blur(14px);
}
.avatar-letter {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-light), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-text p { max-width: 520px; }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  border-left: 2px solid var(--green);
  padding-left: 20px;
  margin-top: 1.4em;
}

/* =========================================================
   Réalisations
   ========================================================= */
.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, rgba(62, 124, 255, 0.16), rgba(47, 227, 166, 0.08));
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.frame:hover { transform: translateY(-6px); border-color: var(--green); }

.frame-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6em;
}
.frame h3 { margin: 0; color: var(--text); }

/* =========================================================
   Contact
   ========================================================= */
.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 48px;
  backdrop-filter: blur(16px);
}

.contact-sub { max-width: 440px; margin: 0 auto 2.4em; }

.contact-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

.contact-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  min-width: 240px;
}
.contact-link:hover { border-color: var(--green); transform: translateY(-3px); background: var(--glass-strong); }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text); }

.contact-footnote { margin-top: 2.2em; font-size: 0.85rem; color: var(--text-faint); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border-soft); padding: 32px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--text-faint);
}
.footer-inner .logo { font-size: 1rem; }
.footer-top { font-weight: 500; color: var(--text-soft); }
.footer-top:hover { color: var(--green); }

/* =========================================================
   Apparition au scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .enter { opacity: 1; transform: none; transition: none; animation: none; }
  .orb, .floaty { animation: none; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* =========================================================
   Toast de confirmation (copie presse-papier)
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 200;
  background: rgba(14, 24, 56, 0.92);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: '✓ '; color: var(--green); }

@media (max-width: 700px) {
  .toast { width: calc(100% - 48px); text-align: center; bottom: 20px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .avatar-ring { margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 700px) {
  section { padding: 84px 0; }
  .manifesto { padding: 64px 0; }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6, 12, 31, 0.96);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column; padding: 20px 32px; gap: 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .card-grid { grid-template-columns: 1fr; }
  .price-card { padding: 32px 24px; }
  .contact-panel { padding: 48px 24px; }
  .contact-links { gap: 16px; }
  .contact-link { width: 100%; max-width: 320px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
