/*
Theme Name: Liito Media
Theme URI: https://liitomedia.com
Author: Karl G. Picard
Author URI: https://liitomedia.com
Description: Thème sur mesure pour Liito Media — Studio créatif numérique. Palette Terrain Naturel (cedar, birch, ember), design 2026.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: liito-media
*/

/* ════════════════════════════════════════
   LIITO MEDIA — TERRAIN NATUREL 2026
   ════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --blue: #2F98E4;
  --blue-hover: #2384CC;
  --blue-soft: rgba(47,152,228,0.10);

  --cedar: #1B3A5C;
  --cedar-90: rgba(27,58,92,0.90);
  --cedar-light: #244B72;
  --bark: #4A5568;
  --bark-soft: rgba(74,85,104,0.08);
  --ember: #2F98E4;
  --ember-soft: rgba(47,152,228,0.08);
  --ember-hover: #2384CC;

  --birch: #F0F2F5;
  --birch-dark: #D8DCE2;
  --birch-light: #F5F7FA;
  --birch-white: #FAFBFC;

  --ink: #1A1D23;
  --ink-70: rgba(26,29,35,0.70);
  --ink-40: rgba(26,29,35,0.40);
  --ink-20: rgba(26,29,35,0.18);
  --ink-08: rgba(26,29,35,0.07);

  --white: #FFFFFF;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background: var(--birch-light);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ TOPBAR ═══ */
.topbar {
  background: var(--cedar);
  color: rgba(242,235,221,0.70);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
}
.topbar a {
  color: var(--birch);
  font-weight: 600;
  border-bottom: 1px solid rgba(242,235,221,0.30);
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}
.topbar a:hover { border-color: var(--birch); }
.topbar .arr {
  display: inline-block; margin-left: 3px;
  transition: transform 0.3s var(--ease);
}
.topbar a:hover .arr { transform: translateX(3px); }

/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247,242,232,0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ink-08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 1px 20px rgba(26,26,24,0.06); }

.nav {
  display: flex; align-items: center;
  justify-content: space-between; height: 62px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.03em; color: var(--ink);
}
.logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: var(--cedar);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--birch); font-size: 14px; font-weight: 900;
}

/* WordPress nav menu */
.nav-menu-wrap ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu-wrap ul li a {
  padding: 7px 14px; font-size: 14px; font-weight: 500;
  color: var(--ink-70); border-radius: 10px;
  transition: all 0.2s ease; display: block;
}
.nav-menu-wrap ul li a:hover {
  color: var(--ink); background: var(--ink-08);
}
/* Current page highlight */
.nav-menu-wrap ul li.current-menu-item a,
.nav-menu-wrap ul li.current_page_item a {
  color: var(--ink); background: var(--ink-08);
}

.nav-end { display: flex; align-items: center; gap: 8px; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.25s var(--ease);
  text-decoration: none; white-space: nowrap; border: none;
}
.btn-cedar {
  padding: 10px 22px;
  background: var(--cedar); color: var(--birch);
  border-radius: var(--radius-pill);
}
.btn-cedar:hover {
  background: var(--cedar-light); color: var(--birch);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,58,92,0.25);
}
.btn-blue {
  padding: 10px 22px;
  background: var(--blue); color: #fff;
  border-radius: var(--radius-pill);
}
.btn-blue:hover {
  background: var(--blue-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(47,152,228,0.30);
}
.btn-outline {
  padding: 10px 22px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink-20);
  border-radius: var(--radius-pill);
}
.btn-outline:hover {
  border-color: var(--ink-40);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.btn-ghost {
  padding: 8px 14px; color: var(--ink-70);
  border-radius: var(--radius-pill);
}
.btn-ghost:hover { color: var(--ink); background: var(--ink-08); }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn .arrow {
  transition: transform 0.25s var(--ease); font-size: 15px;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ═══ HAMBURGER ═══ */
.hamburger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px; position: relative; z-index: 210;
}
.hamburger:hover { background: var(--ink-08); }
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.3s var(--ease); position: absolute;
}
.hamburger span:first-child { transform: translateY(-5px); }
.hamburger span:last-child { transform: translateY(5px); }
.hamburger.open span:first-child { transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:last-child { transform: rotate(-45deg); }

/* ═══ MOBILE MENU ═══ */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(247,242,232,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 100px 32px 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.mobile-overlay ul li a {
  display: block; padding: 16px 0;
  font-size: 24px; font-weight: 700;
  color: var(--ink); border-bottom: 1px solid var(--ink-08);
  transform: translateY(12px); opacity: 0;
  transition: all 0.4s var(--ease);
}
.mobile-overlay.open ul li a { opacity: 1; transform: translateY(0); }
.mobile-overlay.open ul li:nth-child(1) a { transition-delay: .04s; }
.mobile-overlay.open ul li:nth-child(2) a { transition-delay: .08s; }
.mobile-overlay.open ul li:nth-child(3) a { transition-delay: .12s; }
.mobile-overlay.open ul li:nth-child(4) a { transition-delay: .16s; }
.mobile-overlay.open ul li:nth-child(5) a { transition-delay: .20s; }
.mobile-overlay.open ul li:nth-child(6) a { transition-delay: .24s; }
.mobile-overlay.open ul li:nth-child(7) a { transition-delay: .28s; }
.mobile-overlay .mob-cta {
  margin-top: auto; display: flex; gap: 10px;
  opacity: 0; transform: translateY(10px);
  transition: all 0.4s var(--ease) 0.3s;
}
.mobile-overlay.open .mob-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav-menu-wrap, .nav-end { display: none; }
  .hamburger { display: flex; }
}

/* ═══ SECTION DEFAULTS ═══ */
.sec-eyebrow {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ember); margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.06; margin-bottom: 16px;
}
.sec-desc {
  color: var(--ink-70); font-size: 17px;
  max-width: 500px; line-height: 1.6;
}
.sec-header { margin-bottom: 48px; }
.sec-header.center { text-align: center; }
.sec-header.center .sec-desc { margin-left: auto; margin-right: auto; }

/* ═══ PAGE CONTENT (for regular pages) ═══ */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--ink-70);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-content {
  padding: 0 0 80px;
}
.page-content .content-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02), 0 12px 40px rgba(26,26,24,0.04);
}
.page-content h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em; margin: 36px 0 14px;
  line-height: 1.2;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 19px; font-weight: 700;
  margin: 28px 0 10px;
}
.page-content p {
  margin-bottom: 16px;
  color: var(--ink-70);
  line-height: 1.7;
}
.page-content ul, .page-content ol {
  margin: 0 0 16px 20px;
  color: var(--ink-70);
}
.page-content li { margin-bottom: 8px; line-height: 1.6; }
.page-content a { color: var(--blue); border-bottom: 1px solid rgba(47,152,228,0.3); }
.page-content a:hover { border-color: var(--blue); }
.page-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}
.page-content blockquote {
  border-left: 3px solid var(--ember);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--ember-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-style: italic;
}

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--ink-08);
  padding: 48px 0 36px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.ft-brand-p {
  color: var(--ink-40); font-size: 13px;
  line-height: 1.6; margin-top: 14px; max-width: 260px;
}
.ft-col h5 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); margin-bottom: 14px;
}
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col li { margin-bottom: 8px; }
.ft-col a { font-size: 13px; color: var(--ink-40); transition: color 0.2s ease; }
.ft-col a:hover { color: var(--ink); }

/* WordPress footer menu */
.footer-menu-wrap ul {
  list-style: none; margin: 0; padding: 0;
}
.footer-menu-wrap ul li { margin-bottom: 8px; }
.footer-menu-wrap ul li a {
  font-size: 13px; color: var(--ink-40); transition: color 0.2s ease;
}
.footer-menu-wrap ul li a:hover { color: var(--ink); }

.ft-bottom {
  border-top: 1px solid var(--ink-08);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.ft-bottom span { font-size: 12px; color: var(--ink-20); }
.ft-legal { display: flex; gap: 16px; }
.ft-legal a { font-size: 12px; color: var(--ink-20); transition: color 0.2s ease; }
.ft-legal a:hover { color: var(--ink-40); }

@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ft-grid { grid-template-columns: 1fr; } }

/* ═══ SCROLL REVEAL ═══ */
[data-r] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-r].in { opacity: 1; transform: translateY(0); }
[data-s] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
[data-s].in > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
[data-s].in > *:nth-child(2) { transition-delay: .05s; opacity: 1; transform: translateY(0); }
[data-s].in > *:nth-child(3) { transition-delay: .10s; opacity: 1; transform: translateY(0); }
[data-s].in > *:nth-child(4) { transition-delay: .15s; opacity: 1; transform: translateY(0); }
[data-s].in > *:nth-child(5) { transition-delay: .20s; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-r], [data-s] > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
