/* ==========================================================
   LISORA — global.css
   Variables, reset, header, boutons, popup, footer, révélations
   ========================================================== */
:root {
  /* BACKGROUNDS */
  --color-bg: #0C0C0E;
  --bg-secondary: #131316;
  --bg-soft: #19191D;
  /* TEXTES */
  --white: #FFFFFF;
  --white-cream: #F3F0E9;
  --text-muted: #929297;
  /* BORDURES */
  --border: rgba(243, 240, 233, 0.14);
  /* ACCENTS */
  --blue-light: #C5F3FA;
  --blue-grey: #A9C6CF;
  --purple-grey: #9296A6;
  --purple: #966078;
  /* GRADIENT PRINCIPAL */
  --gradient: linear-gradient(100deg, #C5F3FA 0%, #A9C6CF 30%, #9296A6 58%, #966078 100%);

  --error: #E8A0B8;
  --font-title: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 4vw, 64px);
  --max: 1320px;
  --header-h: 76px;
  --section: clamp(80px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-bg);
  color: var(--white-cream);
  font: 400 1rem/1.7 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  animation: pageIn .9s var(--ease) both;
  transition: opacity .3s ease;
}
body.is-leaving { opacity: 0; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
::selection { background: var(--purple); color: var(--white); }

/* Grain très léger */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--white-cream); color: var(--color-bg); text-decoration: none; transition: top .3s;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* --- Éléments typographiques communs --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 .68rem var(--font-title); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gradient); }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link {
  display: inline-flex; gap: 10px; padding-bottom: 8px; text-decoration: none;
  font: 500 .68rem var(--font-title); letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); transition: color .3s, border-color .3s, gap .4s var(--ease);
}
.link:hover { color: var(--blue-light); border-color: var(--blue-light); gap: 16px; }

/* --- Boutons --- */
.btn {
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 2px;
  background: transparent; color: var(--white-cream); text-decoration: none; white-space: nowrap;
  font: 600 .64rem var(--font-title); letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .4s, color .4s, transform .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient); opacity: 0; transition: opacity .5s; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--line:hover { border-color: var(--blue-light); color: var(--blue-light); }
.btn--solid { background: var(--white-cream); border-color: var(--white-cream); color: var(--color-bg); }
.btn--solid:hover::before { opacity: 1; }
.btn--lg { min-height: 54px; padding: 0 26px; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* --- Header --- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px;
  min-height: var(--header-h); padding: 12px var(--pad);
}
/* Le fond est sur un pseudo-élément : backdrop-filter sur le header casserait le menu mobile fixed */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(12, 12, 14, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled::before { opacity: 1; }
.logo {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 500 1.02rem var(--font-title); letter-spacing: .32em;
}
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); animation: pulse 3.2s ease-in-out infinite; }
.menu { flex: 1; display: flex; align-items: center; gap: 32px; }
.header__actions { display: flex; gap: 10px; margin-inline: auto; }
.nav ul { display: flex; gap: 22px; }
.nav a {
  position: relative; padding: 6px 0; text-decoration: none; font-size: .8rem; letter-spacing: .04em;
  color: var(--text-muted); transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--white-cream); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

.burger {
  display: none; position: relative; z-index: 2; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--border); border-radius: 2px; cursor: pointer;
}
.burger span { position: absolute; left: 12px; height: 1px; background: var(--white-cream); transition: transform .5s var(--ease), width .4s var(--ease); }
.burger span:nth-child(1) { top: 16px; width: 20px; }
.burger span:nth-child(2) { top: 22px; width: 14px; }
.burger span:nth-child(3) { top: 28px; width: 20px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: block; }
  .menu {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 40px;
    padding: 100px var(--pad) 48px; background: var(--color-bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .menu.is-open { opacity: 1; visibility: visible; }
  .header__actions { flex-direction: column; width: min(100%, 340px); margin: 0; }
  .header__actions .btn { min-height: 52px; }
  .nav ul { flex-direction: column; align-items: center; gap: 14px; }
  .nav a { font: 300 1.15rem var(--font-title); color: var(--white-cream); }
}

/* --- Popup contact --- */
.dialog {
  width: min(100% - 32px, 620px); max-height: calc(100% - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--border); border-radius: 2px; background: var(--bg-secondary); color: var(--white-cream);
}
.dialog::backdrop { background: rgba(6, 6, 8, .78); backdrop-filter: blur(6px); }
.dialog[open] { animation: dlgIn .5s var(--ease); }
.dialog__box { position: relative; padding: clamp(24px, 4vw, 44px); }
.dialog__box::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--gradient); }
.dialog__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; cursor: pointer;
  background: none; border: 1px solid var(--border); border-radius: 2px; font-size: 1.1rem; line-height: 1;
  transition: border-color .3s, color .3s;
}
.dialog__close:hover { border-color: var(--blue-light); color: var(--blue-light); }
.dialog h2 { margin: 18px 0 8px; font: 300 clamp(1.3rem, 3vw, 1.7rem)/1.2 var(--font-title); }
.dialog__lead { color: var(--text-muted); margin-bottom: 26px; font-size: .95rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .62rem var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; outline: 0; transition: border-color .3s;
}
.field select option { background: var(--bg-secondary); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-light); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field__error { min-height: 1.1em; font-size: .78rem; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__status { font-size: .85rem; color: var(--text-muted); }
.form__done { padding: 30px 0 6px; outline: 0; }
.form__done h3 { font: 300 1.3rem var(--font-title); margin-bottom: 12px; }
.form__done p { color: var(--text-muted); margin-bottom: 24px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* --- Footer --- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--color-bg); }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__nav a, .footer__mail { color: var(--text-muted); text-decoration: none; font-size: .88rem; transition: color .3s; }
.footer__nav a:hover, .footer__mail:hover { color: var(--blue-light); }
.footer__legal { margin-top: 44px; font-size: .78rem; color: var(--text-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* --- Révélations (actives seulement si JS présent) --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: block; }
.js .line > span { transform: translateY(112%); transition: transform 1.2s var(--ease) calc(var(--i, 0) * 110ms + var(--d, 0ms)); }
.js .lines.is-in .line > span { transform: none; }

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(197, 243, 250, .45); } 50% { box-shadow: 0 0 0 7px rgba(197, 243, 250, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .line > span { opacity: 1; transform: none; }
}

/* Garantit que l'attribut hidden l'emporte sur display:grid/flex */
[hidden] { display: none !important; }

/* --- Utilitaires de section (partagés entre les pages) --- */
.sec { padding: var(--section) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-title { margin-top: 18px; font: 300 clamp(1.5rem, 3vw, 2.5rem)/1.2 var(--font-title); letter-spacing: -.015em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: rgba(12, 12, 14, .4); font: 500 .56rem var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-grey); }

/* --- Appel à l'action final (partagé entre les pages) --- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--section) * 1.15) 0; text-align: center; border-top: 1px solid var(--border); }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1400px, 170%); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, transparent 0 88px, var(--border) 88px 89px);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%);
}
.cta h2 { margin: 0 auto 22px; max-width: 900px; font: 300 clamp(1.7rem, 4.4vw, 3.4rem)/1.14 var(--font-title); letter-spacing: -.02em; }
.cta p { max-width: 520px; margin: 0 auto 40px; color: var(--text-muted); }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .cta__btns .btn { width: 100%; } }
