/* ══════════════════════════════════════════════
   PROHABITAT35 — Styles page réalisations
   ══════════════════════════════════════════════ */

/* ── FILTER BAR ── */
.filter-section {
  position: sticky; top: 72px; z-index: 100;
  background: var(--bg-dark); border-bottom: 1px solid var(--border);
  padding: 1.2rem 8vw;
}
.filter-inner {
  display: flex; align-items: center; gap: 0.45rem;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 0.45rem 0.5rem;
  width: fit-content; max-width: 100%;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.02em; color: rgba(194,199,204,0.55);
  padding: 0.5rem 1rem; border-radius: 10px; border: none;
  background: transparent; cursor: pointer; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--warm-gray); background: rgba(255,255,255,0.06); }
.filter-btn.active {
  color: #1a2233; background: var(--gold);
  box-shadow: 0 2px 10px rgba(122,179,212,0.3); font-weight: 700;
}
.filter-btn.active .filter-dot { background: rgba(26,34,51,0.45) !important; }
.filter-btn.active .filter-count { background: rgba(26,34,51,0.2); color: #1a2233; }
.filter-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.filter-count {
  font-size: 0.6rem; font-weight: 700; background: rgba(122,179,212,0.1);
  color: var(--gold); padding: 0.05rem 0.45rem; border-radius: 20px;
  min-width: 20px; text-align: center;
}

/* ── GRILLE PRINCIPALE ── */
.rea-main { padding: 3rem 8vw 8rem; }
.cat-block { margin-bottom: 5rem; }
.cat-block.hidden { display: none; }

.cat-header {
  margin-bottom: 2rem; padding-bottom: 0; border-bottom: none;
  position: relative;
}

.cat-header-left { display: flex; flex-direction: column; gap: 0.8rem; }
.cat-metier-label {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.cat-metier-label::before {
  content: ''; width: 32px; height: 1px; background: var(--gold); flex-shrink: 0;
}
.cat-dot { display: none; }

.cat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 400; color: #c2c7cc; line-height: 1.15;
}
.cat-title em { font-style: italic; color: var(--gold); }
.cat-count { display: none; }

.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* ── CARTES RÉALISATION ── */
.real-card {
  border-radius: 16px; overflow: hidden;
  border: 4px solid #1e2537;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3); background: #1e2537;
  transition: var(--transition); opacity: 0; transform: translateY(20px);
}
.real-card.visible { opacity: 1; transform: none; }
.real-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.4); transform: translateY(-4px); }

.card-img-zone {
  position: relative; width: 100%; aspect-ratio: 4/3; min-height: 260px;
  overflow: hidden; cursor: ew-resize; user-select: none;
}
.ba-img { position: absolute; inset: 0; overflow: hidden; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-badge {
  position: absolute; top: 0.7rem; font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 2px; font-weight: 700; pointer-events: none;
}
.ba-badge-before { left: 0.7rem; background: rgba(28,28,28,0.75); color: white; }
.ba-badge-after { right: 0.7rem; background: var(--gold); color: #1a2233; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; z-index: 5;
}
.ba-line { flex: 1; width: 2px; background: rgba(255,255,255,0.9); }
.ba-circle {
  background: #7ab3d4; display: flex; align-items: center; justify-content: center;
  gap: 3px; flex-shrink: 0; padding: 6px 10px; border-radius: 20px; color: #1a1f2e;
}
.card-hint {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; z-index: 10; pointer-events: none;
  opacity: 1; transition: opacity 0.35s;
}
.card-hint.hidden { opacity: 0; }
.card-hint-inner {
  background: rgba(22,27,38,0.88); color: rgba(255,255,255,0.9);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 0.9rem; border-radius: 0;
  display: flex; align-items: center; gap: 0.45rem;
}
.ba-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(20,25,40,0.97) 0%, rgba(20,25,40,0.65) 55%, transparent 100%);
  padding: 1.4rem 1.1rem 1rem;
  pointer-events: none; z-index: 15;
}
.ba-overlay-badge {
  display: inline-block; font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 3px; margin-bottom: 0.55rem;
}
.ba-overlay-title {
  font-size: 0.95rem; font-weight: 700; color: #e8ecf0;
  line-height: 1.25; margin-bottom: 0.45rem;
}
.ba-overlay-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.ba-tag {
  font-size: 0.6rem; font-weight: 600; padding: 0.15rem 0.5rem;
  border-radius: 3px; color: rgba(194,199,204,0.7);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
}

/* ── EMPTY STATE ── */
.empty-state {
  display: none; text-align: center; padding: 4rem 2rem;
  color: rgba(194,199,204,0.45); font-size: 0.9rem; line-height: 2;
}
.empty-state.show { display: block; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--bg-dark); border-top: 1px solid var(--border);
  padding: 6rem 8vw; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-tag {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.cta-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.cta-title {
  font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400; color: #c2c7cc; line-height: 1.15; margin-bottom: 1rem;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-sub { font-size: 0.85rem; color: rgba(194,199,204,0.45); letter-spacing: 0.05em; margin-bottom: 2.5rem; }
.cta-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold); color: #1a2233; padding: 1rem 2rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 4px; transition: var(--transition);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); color: var(--warm-gray);
  padding: 1rem 1.8rem; font-size: 0.8rem; text-decoration: none;
  border-radius: 4px; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER RÉALISATIONS ── */
.footer-rea {
  background: #1e2537; padding: 5rem 8vw 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-rea-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
.footer-rea-brand .footer-rea-logo {
  font-family: 'Montserrat', sans-serif; font-size: 1.4rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #c2c7cc; text-decoration: none; display: block; margin-bottom: 1.2rem;
}
.footer-rea-brand .footer-rea-logo span { color: var(--gold); }
.footer-rea-brand p { font-size: 0.84rem; color: rgba(194,199,204,0.5); line-height: 1.8; max-width: 28ch; }
.footer-rea-social { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.footer-rea-col h4 {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(194,199,204,0.35); margin-bottom: 1.4rem; font-weight: 700;
}
.footer-rea-col ul { list-style: none; }
.footer-rea-col ul li { margin-bottom: 0.8rem; }
.footer-rea-col ul li a {
  font-size: 0.85rem; color: rgba(194,199,204,0.6);
  text-decoration: none; transition: color 0.3s;
}
.footer-rea-col ul li a:hover { color: var(--gold); }
.footer-rea-bottom {
  border-top: 1px solid rgba(194,199,204,0.08); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-rea-bottom p { font-size: 0.75rem; color: rgba(194,199,204,0.3); }
.footer-rea-legal { display: flex; gap: 2rem; }
.footer-rea-legal a {
  font-size: 0.75rem; color: rgba(194,199,204,0.3);
  text-decoration: none; transition: color 0.3s;
}
.footer-rea-legal a:hover { color: var(--gold); }

/* ── RESPONSIVE RÉALISATIONS ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-rea-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .rea-main { padding: 2rem 5vw 6rem; }
  .filter-section { padding: 1rem 5vw; }
  .cta-band { padding: 4rem 6vw; }
  .footer-rea-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-rea { padding: 3rem 6vw 2rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   IS-MOBILE — RÉALISATIONS
   ══════════════════════════════════════════════ */

body.is-mobile { overflow-x: hidden; max-width: 100vw; }

body.is-mobile .filter-section {
  padding: 0.7rem 4vw;
  top: 60px;
}
body.is-mobile .filter-inner {
  gap: 0.25rem;
  padding: 0.3rem 0.35rem;
  border-radius: 12px;
}
body.is-mobile .filter-btn {
  font-size: 0.65rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  gap: 0.25rem;
}
body.is-mobile .filter-dot,
body.is-mobile .filter-count { display: none; }

body.is-mobile .rea-main { padding: 1.5rem 4vw 5rem; }
body.is-mobile .cards-grid { grid-template-columns: 1fr !important; gap: 1rem; }
body.is-mobile .cat-block { margin-bottom: 3rem; }
body.is-mobile .cat-title { font-size: clamp(1.3rem, 5vw, 1.9rem); }
body.is-mobile .card-img-zone { aspect-ratio: 16/10; min-height: 220px; }

body.is-mobile .cta-band { padding: 3.5rem 5vw; text-align: left; }
body.is-mobile .cta-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
body.is-mobile .cta-sub { font-size: 0.8rem; }
body.is-mobile .cta-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
body.is-mobile .cta-actions .btn-primary,
body.is-mobile .cta-actions .btn-outline {
  justify-content: center;
  min-height: 50px;
  width: 100%;
}

body.is-mobile .footer-rea { padding: 3rem 5vw 2rem; }
body.is-mobile .footer-rea-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
body.is-mobile .footer-rea-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
body.is-mobile .footer-rea-legal { flex-wrap: wrap; gap: 1rem; }