/* L21STUDIOS — Base CSS
   Variables, reset, typographie, navigation, footer, utilities.
   Charté Apple-like avec touche L21 (Montserrat pour les titres).
*/

/* ---------- Tokens / Variables ---------- */
:root {
  /* Couleurs */
  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #86868b;
  --muted-strong: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-ink: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --black: #000;
  --white: #fff;
  --green: #30d158;
  --red: #ff3b30;
  --amber: #ff9f0a;

  /* Radius */
  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 30px 60px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 1px 3px rgba(0, 0, 0, 0.05);

  /* Typographie */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-w: 1120px;
  --max-w-tight: 980px;
  --max-w-narrow: 760px;
  --gutter: 22px;
  --nav-h: 52px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

label .hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

/* ---------- Typographie ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h4 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  line-height: 1.4;
  max-width: 640px;
}

.eyebrow,
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-tight {
  max-width: var(--max-w-tight);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(70px, 9vw, 100px) 0;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 56px);
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
  max-width: 620px;
  margin: 14px auto 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--white);
}

.btn-ghost {
  color: var(--accent);
  padding: 13px 6px;
}

.btn-ghost:hover {
  color: var(--accent-ink);
}

.btn-ghost::after {
  content: "›";
  margin-left: 2px;
  transition: transform 0.2s;
}

.btn-ghost:hover::after {
  transform: translateX(3px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-row.center {
  justify-content: center;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-in {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 19px;
  color: var(--ink);
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--ink);
}

.nav-links a {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-cta {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(251, 251, 253, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 49;
  padding: 32px var(--gutter);
}

.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}

.nav-mobile.open {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-soft);
  padding: 44px 0 36px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

.foot-col h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.foot-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-col p {
  color: var(--muted);
}

.foot-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 700px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Utilitaires ---------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 22px; }
.mt-lg { margin-top: 34px; }
.mt-xl { margin-top: 56px; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 14px; }
.mb-md { margin-bottom: 22px; }
.mb-lg { margin-bottom: 34px; }
.mb-xl { margin-bottom: 56px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

.tag.success::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.tag.dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
  margin: 0;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Skip link accessibilité ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Toast / feedback inline ---------- */
.feedback {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

.feedback.info {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.feedback.success {
  background: rgba(48, 209, 88, 0.1);
  color: #08762a;
}

.feedback.error {
  background: rgba(255, 59, 48, 0.08);
  color: #b91c1c;
}

.feedback.warn {
  background: rgba(255, 159, 10, 0.1);
  color: #92400e;
}
