/* ================================================================
   DESIGN TOKENS
================================================================ */
:root {
  --brand: #0d6efd;
  --brand-light: #5cc8ff;
  --bg: #f7f8fb;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.96);
  --border: rgba(16, 24, 40, 0.08);
  --shadow: 0 8px 30px rgba(16, 24, 40, 0.12);
  --radius: 1.25rem;
}

/* ================================================================
   BASE
================================================================ */
html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, "Helvetica Neue", "Noto Sans";
  line-height: 1.6;
}

/* Brand dot */
.brand-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* ================================================================
   HERO SECTIONS
================================================================ */
.hero {
  padding: clamp(3rem, 6vw, 6rem) 0;
  position: relative;
  isolation: isolate;
}
 .page-hero{
      padding: clamp(2.5rem,5vw,4rem) 0;
      background: linear-gradient(135deg, #0d6efd, #5cc8ff);
      color:#fff;
    }
    .page-hero .breadcrumb a{ color: rgba(255,255,255,.85); text-decoration:none }
    .page-hero .breadcrumb .active{ color: rgba(255,255,255,.9) }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.55)
  );
  backdrop-filter: saturate(1.2);
  z-index: -1;
}

.hero-card {
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(1.15);
  padding: clamp(1.5rem, 2vw, 2rem);
}

.hero-card h1 {
  color: #d97706;
}
.hero-card .lead {
  color: #334155;
}
.hero-card p {
  color: var(--muted);
}

/* ================================================================
   SECTIONS
================================================================ */
.section-padding {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

/* ================================================================
   FEATURE CARDS
================================================================ */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: 0.25s ease;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ================================================================
   IMAGE CARDS
================================================================ */
.image-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.image-card img {
  width: 100%;
  transition: transform 0.6s ease;
}
.image-card:hover img {
  transform: scale(1.03);
}

/* ================================================================
   CHECK LIST
================================================================ */
.check-list {
  padding-left: 0;
  list-style: none;
}
.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin: 0.4rem 0;
}
.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0.2rem;
  color: var(--brand);
  font-weight: 700;
}

/* ================================================================
   STATS STRIP
================================================================ */
.stats-strip {
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.stat-number {
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}
.stat-label {
  color: var(--muted);
}

/* ================================================================
   CTA
================================================================ */
.cta-gradient {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background: linear-gradient(135deg, #0d6efd, #5cc8ff);
}

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
  }
}
.animate-fadein {
  animation: fadein 0.6s ease both;
}

/* ================================================================
   RTL
================================================================ */
html[dir="rtl"] body {
  text-align: right;
}

/* ================================================================
   CLIMAT – IFRAME
================================================================ */
.climate-iframe-container {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin: 2rem 0;
  overflow: hidden;
}

.climate-iframe {
  width: 100%;
  min-height: 2500px;
  border: none;
}

/* ================================================================
   CATALOGUE – IFRAME ODWB
================================================================ */
.catalog-iframe-container {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 600px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.catalog-iframe-container iframe {
  width: 100%;
  height: calc(100% + 95px);
  position: absolute;
  top: -95px; /* masque le header ODWB */
  left: 0;
  border: none;
}

/* Toolbar */
.catalog-toolbar {
  background: #f8f9ff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.catalog-toolbar .hint {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Loading states */
.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
  .catalog-iframe-container {
    height: calc(100vh - 240px);
  }
}
