/* ============================================================
   REALISATIONS HUB — Design & animations
   Chargé uniquement sur realisations.html
   CSS pur — aucune dépendance externe
   Préfixe: .rl-
   ============================================================ */

:root {
  --rl-primary: #00685b;
  --rl-accent: #6fcfb8;
  --rl-dark: #1b1c1c;
}

/* ===== HERO ===== */
.rl-hero {
  background: linear-gradient(135deg, #0d2520 0%, #1b1c1c 60%, #003832 100%);
  color: #fff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.rl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(0, 104, 91, 0.45), transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(111, 207, 184, 0.18), transparent 55%);
  pointer-events: none;
}
.rl-hero .container { position: relative; z-index: 2; }
.rl-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
  color: #fff;
  letter-spacing: -0.025em;
}
.rl-hero h1 .accent { color: var(--rl-accent); }
.rl-hero .intro {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}
.rl-hero .breadcrumb-nav { margin-bottom: 1rem; }
.rl-hero .breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
.rl-hero .breadcrumb li { color: rgba(255, 255, 255, 0.6); }
.rl-hero .breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; }
.rl-hero .breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.rl-hero .breadcrumb a:hover { color: var(--rl-accent); }

/* ===== STATS sous hero ===== */
.rl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rl-stat { text-align: center; }
.rl-stat-value {
  display: block;
  font: 800 2.2rem/1 'Manrope', sans-serif;
  color: var(--rl-accent);
  font-variant-numeric: tabular-nums;
}
.rl-stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.4rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ===== PROJET À LA UNE ===== */
.rl-featured-section {
  padding: 4rem 0 1.5rem;
  background: #fafafa;
}
.rl-featured-label {
  display: inline-block;
  font: 700 0.75rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rl-primary);
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--rl-primary);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.rl-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.18);
  border: 1px solid #ebeded;
}
.rl-featured-placeholder {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(0, 104, 91, 0.10), rgba(111, 207, 184, 0.10)),
    repeating-linear-gradient(45deg, #f4f6f5 0 12px, #eef2f1 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rl-primary);
}
.rl-featured-placeholder svg {
  width: 86px;
  height: 86px;
  opacity: 0.55;
}
.rl-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rl-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}
.rl-featured-cat {
  background: var(--rl-primary);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font: 700 0.72rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.rl-featured h3 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--rl-dark);
  letter-spacing: -0.015em;
}
.rl-featured-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1.5rem;
}

/* ===== INTRO ÉDITORIALE ===== */
.rl-intro-section {
  padding: 4rem 0;
  background: #fff;
}
.rl-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.rl-intro-left h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 1.2rem;
  color: var(--rl-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.rl-intro-left p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4a5560;
  margin: 0 0 1rem;
}
.rl-intro-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rl-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, #fafbfb, #f4f7f6);
  border: 1px solid #e6e8e7;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rl-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -18px rgba(0, 0, 0, 0.18);
  border-color: var(--rl-primary);
}
.rl-mini-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(0, 104, 91, 0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rl-primary);
}
.rl-mini-icon svg { width: 22px; height: 22px; }
.rl-mini-card h3 {
  font: 700 1rem 'Manrope', sans-serif;
  color: var(--rl-dark);
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}
.rl-mini-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a6570;
  margin: 0;
}

/* ===== GALERIE FILTRÉE ===== */
.rl-gallery-section {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #fafafa, #fff);
}
.rl-gallery-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--rl-dark);
  letter-spacing: -0.02em;
}
.rl-gallery-section .h2-sub {
  text-align: center;
  color: #5a6570;
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.55;
}
.rl-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0 2.5rem;
}
.rl-chip {
  border: 2px solid #e6e8e7;
  background: #fff;
  color: var(--rl-dark);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: 600 0.88rem 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.rl-chip:hover { border-color: var(--rl-primary); color: var(--rl-primary); }
.rl-chip.active,
.rl-chip.is-active {
  background: var(--rl-primary);
  border-color: var(--rl-primary);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(0, 104, 91, 0.55);
}

/* Le supabase-public.js injecte les boutons .filter-btn ; on les harmonise */
#filterBtns .filter-btn:not(.rl-chip) {
  border: 2px solid #e6e8e7;
  background: #fff;
  color: var(--rl-dark);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: 600 0.88rem 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}
#filterBtns .filter-btn:not(.rl-chip):hover {
  border-color: var(--rl-primary);
  color: var(--rl-primary);
}
#filterBtns .filter-btn.active:not(.rl-chip) {
  background: var(--rl-primary);
  border-color: var(--rl-primary);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(0, 104, 91, 0.55);
}

/* Grille gallery (injectée dynamiquement par supabase-public.js) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-grid .gallery-item,
.gallery-grid > a,
.gallery-grid > div {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f0f0f0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-grid .gallery-item:hover,
.gallery-grid > a:hover,
.gallery-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px -20px rgba(0, 0, 0, 0.2);
}
.gallery-grid .gallery-item:hover img,
.gallery-grid > a:hover img,
.gallery-grid > div:hover img {
  transform: scale(1.05);
}

/* Placeholder galerie vide */
.gallery-placeholder {
  text-align: center;
  padding: 60px 30px;
  margin-top: 40px;
  background: linear-gradient(135deg, #f8fafb 0%, #eef5f3 100%);
  border-radius: 16px;
  border: 1px dashed rgba(0, 104, 91, 0.25);
}
.gallery-placeholder svg { margin-bottom: 18px; }
.gallery-placeholder h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rl-dark);
  margin: 0 0 14px;
}
.gallery-placeholder p {
  color: #5a6570;
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 1rem;
  line-height: 1.6;
}
.gallery-placeholder .rl-placeholder-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CTA INTERMÉDIAIRE ===== */
.rl-cta-mid {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #00685b 0%, #1e8a78 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rl-cta-mid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.10), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(0, 0, 0, 0.15), transparent 60%);
  pointer-events: none;
}
.rl-cta-mid .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.rl-cta-mid h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 0.8rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.rl-cta-mid p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 1.8rem;
}
.rl-cta-mid-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.rl-cta-mid .btn-white {
  background: #fff;
  color: var(--rl-primary);
}
.rl-cta-mid .btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font: 700 0.95rem 'Manrope', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}
.rl-cta-mid .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
}

/* ===== SERVICES SECTION ===== */
.rl-services-section {
  padding: 4rem 0;
  background: #fafafa;
}
.rl-services-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--rl-dark);
  letter-spacing: -0.02em;
}
.rl-services-section .h2-sub {
  text-align: center;
  color: #5a6570;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}
.rl-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.rl-service-card {
  position: relative;
  display: block;
  padding: 1.5rem 1.4rem 1.4rem;
  background: #fff;
  border: 1.5px solid #ebeded;
  border-radius: 14px;
  text-decoration: none;
  color: var(--rl-dark);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  overflow: hidden;
}
.rl-service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rl-primary);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.rl-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px -20px rgba(0, 0, 0, 0.18);
  border-color: var(--rl-primary);
}
.rl-service-card:hover::after { transform: scaleX(1); }
.rl-service-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 104, 91, 0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--rl-primary);
}
.rl-service-icon svg { width: 22px; height: 22px; }
.rl-service-card h3 {
  font: 700 1.05rem 'Manrope', sans-serif;
  color: var(--rl-dark);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.rl-service-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a6570;
  margin: 0;
}

/* ===== ZONES STRIP ===== */
.rl-zones-strip {
  padding: 3rem 0;
  background: linear-gradient(180deg, #fff, #f4f7f6);
}
.rl-zones-strip-inner {
  text-align: center;
}
.rl-zones-strip h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--rl-dark);
  letter-spacing: -0.02em;
}
.rl-zones-strip p {
  color: #5a6570;
  max-width: 620px;
  margin: 0 auto 1.6rem;
  font-size: 0.98rem;
  line-height: 1.55;
}
.rl-zones-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.rl-zone-chip {
  border: 2px solid #e6e8e7;
  background: #fff;
  color: var(--rl-dark);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: 600 0.85rem 'Manrope', sans-serif;
  text-decoration: none;
  transition: all 0.25s ease;
}
.rl-zone-chip:hover {
  border-color: var(--rl-primary);
  color: var(--rl-primary);
  transform: translateY(-2px);
}
.rl-zones-strip .rl-zones-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 700 0.95rem 'Manrope', sans-serif;
  color: var(--rl-primary);
  text-decoration: none;
}
.rl-zones-strip .rl-zones-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.rl-zones-strip .rl-zones-link:hover svg { transform: translateX(4px); }

/* ===== FAQ ===== */
.rl-faq-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #f4f7f6, #fafafa);
}
.rl-faq-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--rl-dark);
  letter-spacing: -0.02em;
}
.rl-faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.rl-faq-item {
  background: #fff;
  border: 1px solid #e6e8e7;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.rl-faq-item[open] { box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.15); }
.rl-faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font: 700 1rem 'Manrope', sans-serif;
  color: var(--rl-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 1rem;
}
.rl-faq-item summary::-webkit-details-marker { display: none; }
.rl-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--rl-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.rl-faq-item[open] summary::after { transform: rotate(45deg); }
.rl-faq-item .rl-faq-body {
  padding: 0 1.4rem 1.2rem;
  color: #444;
  line-height: 1.65;
  font-size: 0.95rem;
}
.rl-faq-item .rl-faq-body a { color: var(--rl-primary); }

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  .rl-mini-card,
  .rl-service-card,
  .rl-service-card::after,
  .rl-zone-chip,
  .gallery-grid .gallery-item,
  .gallery-grid img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .rl-featured-body { padding: 2rem; }
}
@media (max-width: 960px) {
  .rl-featured { grid-template-columns: 1fr; }
  .rl-featured-placeholder { min-height: 240px; }
  .rl-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .rl-hero { padding: 4.5rem 0 3rem; }
  .rl-stats { padding: 1rem; }
  .rl-stat-value { font-size: 1.7rem; }
  .rl-featured-body { padding: 1.5rem; }
  .rl-services-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .rl-service-card { padding: 1.15rem 1rem; }
  .rl-service-card h3 { font-size: 0.95rem; }
  .rl-service-card p { font-size: 0.82rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .rl-cta-mid { padding: 2.5rem 0; }
}
@media (max-width: 480px) {
  .rl-services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .rl-intro-section { padding: 3rem 0; }
}

/* ============================================================
   HOTFIX bandeau blanc entre header et hero (18 mai 2026)
   Cause : .breadcrumb global (style.css L881) injecte
   margin-top: var(--header-h) (72px) et padding: 14px 0
   sur tout <ol class="breadcrumb"> y compris dans le hero,
   ce qui pousse le contenu et fait apparaitre un espace blanc.
   Solution : override defensif avec specificite renforcee.
   ============================================================ */
.rl-hero,
section.rl-hero {
  margin-top: 0 !important;
}

.rl-hero .breadcrumb-nav,
.rl-hero nav.breadcrumb-nav {
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.rl-hero .breadcrumb,
.rl-hero ol.breadcrumb,
.rl-hero nav.breadcrumb-nav .breadcrumb,
.rl-hero nav.breadcrumb-nav ol {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 400 !important;
}

.rl-hero .breadcrumb li,
.rl-hero ol.breadcrumb li {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.rl-hero .breadcrumb a,
.rl-hero ol.breadcrumb a {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
}
