/* ============================================================
   GREEN HOUSING EXPO 2027 — sidebar.css
   Volet latéral droit pour pages internes
   ============================================================ */

/* ── Layout avec sidebar ── */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
  align-items: start;
}
.page-main-content { min-width: 0; }

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 90px;
}

/* ── Bloc générique ── */
.sb-block {
  background: #fff;
  border: 1px solid rgba(30,58,110,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(30,58,110,0.06);
}

/* ── En-tête bloc ── */
.sb-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(90deg, #1e3a6e, #2a4f8f);
  border-bottom: 2px solid #007a6e;
}
.sb-head-ico {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; flex-shrink: 0;
}
.sb-head-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
}
.sb-body { padding: 1.1rem 1.2rem; }

/* ── 1. Liens importants ── */
.sb-links { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.sb-links li a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.75rem; border-radius: 8px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.84rem; font-weight: 600;
  color: #3d5a7a; text-decoration: none;
  transition: all 0.18s;
}
.sb-links li a:hover { background: #e6f4f3; color: #007a6e; transform: translateX(3px); }
.sb-links li a.active { background: #e6f4f3; color: #007a6e; }
.sb-link-ico {
  width: 22px; height: 22px;
  background: #eef4fb; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; flex-shrink: 0;
}

/* ── 2. Newsletter ── */
.sb-newsletter-text {
  font-size: 0.8rem; color: #6b8aaa; font-weight: 300;
  line-height: 1.6; margin-bottom: 0.9rem;
}
.sb-newsletter-form { display: flex; flex-direction: column; gap: 0.55rem; }
.sb-newsletter-input {
  width: 100%; padding: 0.65rem 0.9rem;
  background: #eef4fb; border: 1.5px solid rgba(30,58,110,0.12);
  border-radius: 8px; font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; color: #1a2d45; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.sb-newsletter-input:focus {
  border-color: #007a6e; background: #fff;
  box-shadow: 0 0 0 3px rgba(0,122,110,0.1);
}
.sb-newsletter-input::placeholder { color: #9cb8cf; }
.sb-newsletter-btn {
  width: 100%; padding: 0.65rem;
  background: #007a6e; color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 3px 12px rgba(0,122,110,0.25);
}
.sb-newsletter-btn:hover { background: #009988; transform: translateY(-1px); }
.sb-newsletter-success {
  display: none; text-align: center;
  padding: 0.7rem; background: #e6f4f3;
  border-radius: 8px; font-size: 0.82rem;
  color: #007a6e; font-weight: 600;
}

/* ── 3. Bloc pub ── */
.sb-pub-wrap {
  display: block; text-decoration: none;
  border-radius: 10px; overflow: hidden;
  position: relative; aspect-ratio: 1/1;
  background: #eef4fb;
  transition: transform 0.22s, box-shadow 0.22s;
}
.sb-pub-wrap:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(30,58,110,0.14); }
.sb-pub-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.sb-pub-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, #eef4fb 0%, #dbeafe 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; border-radius: 10px;
  border: 2px dashed rgba(30,58,110,0.15);
}
.sb-pub-placeholder-ico { font-size: 2rem; opacity: 0.4; }
.sb-pub-placeholder-txt {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #6b8aaa; text-align: center;
}
.sb-pub-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(30,58,110,0.65); backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.7); font-size: 0.58rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
}

/* ── 4. Plaquette download ── */
.sb-plaquette-preview {
  background: linear-gradient(135deg, #1e3a6e 0%, #0f2550 100%);
  border-radius: 10px; padding: 1.2rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.7rem;
  margin-bottom: 0.9rem; position: relative; overflow: hidden;
}
.sb-plaquette-preview::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sb-plaquette-ico {
  width: 52px; height: 64px; background: #fff;
  border-radius: 6px 10px 6px 6px; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.sb-plaquette-ico::after {
  content: ''; position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: #eef4fb;
  border-radius: 0 6px 0 6px;
}
.sb-plaquette-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em; text-align: center;
  position: relative; z-index: 1;
}
.sb-plaquette-size {
  font-size: 0.68rem; color: rgba(255,255,255,0.5);
  font-weight: 300; position: relative; z-index: 1;
}
.sb-plaquette-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; width: 100%;
  padding: 0.7rem;
  background: #007a6e; color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(0,122,110,0.25);
}
.sb-plaquette-btn:hover { background: #009988; transform: translateY(-1px); }
.sb-plaquette-unavail {
  text-align: center; font-size: 0.75rem;
  color: #9cb8cf; font-weight: 300; line-height: 1.5;
  padding: 0.4rem 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 4rem;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
@media (max-width: 640px) {
  .page-with-sidebar { padding: 1.5rem 1rem 3rem; }
  .sidebar { grid-template-columns: 1fr; }
}
