/*
Theme Name: Orioma
Theme URI: https://orioma.com
Author: Orioma SAS
Author URI: https://orioma.com
Description: Thème WordPress sur mesure pour Orioma — Ambient Intelligence for Smart Buildings. Design premium avec typographie Fraunces/Manrope, palette bleu profond, animations subtiles et layout responsive.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orioma
Tags: smart-buildings, iot, corporate, one-column, custom-menu
*/

/* ===== BRAND PALETTE ===== */
:root {
  --orioma-blue: #08447C;
  --orioma-blue-deep: #052E58;
  --orioma-blue-soft: #1A5A99;
  --orioma-blue-glow: rgba(8, 68, 124, 0.15);

  --accent-sage: #B8D4C2;
  --accent-cyan: #5BC2C2;
  --accent-indigo: #6E7CC4;

  --white: #FFFFFF;
  --paper: #FAFBFC;
  --paper-2: #F0F3F7;
  --ink: #0A1628;
  --ink-2: #1A2942;
  --line: rgba(8, 68, 124, 0.10);
  --line-strong: rgba(8, 68, 124, 0.22);
  --muted: #5A6B82;

  --error: #DC2626;
  --success: #16A34A;

  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== TOP BAR ===== */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo-link img {
  height: 44px;
  width: auto;
}

/* ===== NAVIGATION ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  font-size: 14px;
  font-weight: 500;
}
nav a {
  color: var(--ink);
  transition: color .2s;
  position: relative;
}
nav a.current { color: var(--orioma-blue); }
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--orioma-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
nav a.current::after { transform: scaleX(1); }
nav a:hover { color: var(--orioma-blue); }
nav a:hover::after { transform: scaleX(1); }

/* ===== TOPBAR ACTIONS ===== */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-pill {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  transition: color .2s, border-color .2s, background .2s;
}
.lang-pill:hover {
  color: var(--orioma-blue);
  border-color: var(--orioma-blue);
}
.lang-pill.current {
  background: var(--orioma-blue);
  border-color: var(--orioma-blue);
  color: var(--white);
}
.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--orioma-blue);
  color: var(--white);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s;
  box-shadow: 0 4px 14px -4px var(--orioma-blue-glow);
}
.top-cta:hover {
  background: var(--orioma-blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(8, 68, 124, 0.35);
}
.top-cta::after { content: "→"; transition: transform .2s; }
.top-cta:hover::after { transform: translateX(3px); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--orioma-blue);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: all .25s;
  box-shadow: 0 8px 24px -8px rgba(8, 68, 124, 0.35);
}
.btn-primary:hover {
  background: var(--orioma-blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(8, 68, 124, 0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: gap .2s, color .2s, border-color .2s;
}
.btn-secondary:hover {
  gap: 14px;
  color: var(--orioma-blue);
  border-color: var(--orioma-blue);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  background: var(--white);
  color: var(--orioma-blue);
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  transition: all .25s;
}
.btn-cta:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-cta-outline:hover {
  background: var(--white);
  color: var(--orioma-blue);
}

/* ===== SECTION BASE ===== */
section.block { padding: 140px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orioma-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orioma-blue);
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--orioma-blue); font-weight: 300; }
.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.55;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--orioma-blue); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb .current { color: var(--orioma-blue); }

/* ===== PAGE HEAD ===== */
.page-head {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, transparent 70%);
  opacity: 0.5;
}
.page-head-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
}
h1.page-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1.page-title em { font-style: italic; color: var(--orioma-blue); font-weight: 300; }
.page-lead {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 520px;
}

/* ===== CTA BLOCK ===== */
.cta-block {
  background: var(--orioma-blue);
  color: var(--white);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(91, 194, 194, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(110, 124, 196, 0.18), transparent 50%);
  pointer-events: none;
}
.cta-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  color: var(--white);
}
.cta-title em { font-style: italic; color: var(--accent-cyan); }
.cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 48px;
}
.cta-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color .2s; }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* ===== Single post ===== */
.single-post .entry-content {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.7;
}
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.single-post .entry-content p + p {
  margin-top: 14px;
}
.post-nav {
  max-width: 780px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-navigation .nav-links {
  display: flex;
  gap: 16px;
  width: 100%;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}
.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.post-navigation a:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px -24px rgba(8, 68, 124, 0.4);
  transform: translateY(-2px);
}
.post-navigation .post-nav-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.post-navigation .post-nav-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
@media (max-width: 680px) {
  .post-navigation .nav-links {
    flex-direction: column;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 68, 124, 0.4); }
  50% { box-shadow: 0 0 0 10px transparent; }
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 980px) {
  .wrap { padding: 0 20px; }
  nav ul { display: none; }
  .page-head { padding: 60px 0 56px; }
  .page-head-grid, .section-head { grid-template-columns: 1fr; gap: 40px; }
  section.block { padding: 80px 0; }
  .cta-block { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}





