/* ================================
   ConfortRemote – Styles globaux
   Wrapper : .cr-scope-probleme
   ================================ */

/* Scope global ConfortRemote */
.cr-scope-probleme {
  --cr-max-width: 1286px;
  --cr-text-color: #000000;
  --cr-muted: #2B2B2B;
  --cr-bg-soft: #fafafa;
  --cr-border-soft: #e5e5e5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cr-text-color);
}

/* Container et sections */
.cr-scope-probleme .cr-container {
  max-width: var(--cr-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.cr-scope-probleme .cr-section {
  padding: 60px 0;
}

.cr-scope-probleme .cr-section:hover .cr-title {
  transform: translateY(-1px);
}

/* Typo de base */
.cr-scope-probleme .cr-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}

.cr-scope-probleme .cr-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin-bottom: 14px;
  transition: transform 0.2s ease-out;
}

.cr-scope-probleme .cr-text {
  color: var(--cr-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Boutons */
.cr-scope-probleme .btn-primary,
.cr-scope-probleme .btn-secondary {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  border: 1px solid #000;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background-color 0.2s,
    color 0.2s;
}

.cr-scope-probleme .btn-primary {
  background: #000;
  color: #fff;
}

.cr-scope-probleme .btn-secondary {
  background: #fff;
  color: #000;
}

.cr-scope-probleme .btn-primary:hover,
.cr-scope-probleme .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Animations */
.cr-scope-probleme .cr-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: crFadeProbleme 0.7s ease-out forwards;
}

.cr-scope-probleme .cr-delay-1 { animation-delay: 0.1s; }
.cr-scope-probleme .cr-delay-2 { animation-delay: 0.2s; }
.cr-scope-probleme .cr-delay-3 { animation-delay: 0.3s; }
.cr-scope-probleme .cr-delay-4 { animation-delay: 0.4s; }

@keyframes crFadeProbleme {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grilles */
.cr-scope-probleme .cr-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .cr-scope-probleme .cr-grid-2 {
    grid-template-columns: 1fr;
  }
}

.cr-scope-probleme .cr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .cr-scope-probleme .cr-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cartes génériques */
.cr-scope-probleme .cr-card {
  background: #fafafa;
  border-radius: 14px;
  padding: 16px 18px 18px;
  border: 1px solid var(--cr-border-soft);
  box-shadow: 0 10px 22px rgba(0,0,0,0.04);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out,
    background-color 0.2s ease-out;
}

.cr-scope-probleme .cr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
  border-color: #000;
  background-color: #ffffff;
}

.cr-scope-probleme .cr-card-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.cr-scope-probleme .cr-card-icon img,
.cr-scope-probleme .cr-card-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease-out;
}

.cr-scope-probleme .cr-card:hover .cr-card-icon img,
.cr-scope-probleme .cr-card:hover .cr-card-icon svg {
  transform: scale(1.06);
}

.cr-scope-probleme .cr-card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.cr-scope-probleme .cr-card-text {
  font-size: 0.95rem;
  color: var(--cr-muted);
  line-height: 1.5;
}

/* Liste à puces custom */
.cr-scope-probleme .cr-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.cr-scope-probleme .cr-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--cr-muted);
}

.cr-scope-probleme .cr-bullets li::before {
  content: "•";
  color: #000;
  font-weight: 700;
  margin-top: 1px;
}

/* Pills / badges */
.cr-scope-probleme .cr-pill {
  background:#f5f5f5;
  border-radius:999px;
  padding:6px 10px;
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
  font-size:0.85rem;
  color:#555;
}

.cr-scope-probleme .cr-pill:hover {
  background:#e9e9e9;
  transform: translateY(-1px);
}

/* Photos */
.cr-scope-probleme .cr-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--cr-border-soft);
  background: #f5f5f5;
  box-shadow: 0 18px 36px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}

.cr-scope-probleme .cr-photo:hover {
  box-shadow: 0 22px 44px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.cr-scope-probleme .cr-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease-out, transform 0.3s ease-out;
}

.cr-scope-probleme .cr-photo:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.cr-scope-probleme .cr-photo-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Galerie produits */
.cr-scope-probleme .cr-gallery-header {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:24px;
  max-width:700px;
}

.cr-scope-probleme .cr-gallery-grid {
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
}

@media(max-width:1100px){
  .cr-scope-probleme .cr-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media(max-width:800px){
  .cr-scope-probleme .cr-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:520px){
  .cr-scope-probleme .cr-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.cr-scope-probleme .cr-gallery-item {
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--cr-border-soft);
  background:#f5f5f5;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(0,0,0,0.05);
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out;
}

.cr-scope-probleme .cr-gallery-item:hover {
  transform:translateY(-4px);
  box-shadow:0 20px 40px rgba(0,0,0,0.10);
  border-color:#000;
}

.cr-scope-probleme .cr-gallery-item img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:grayscale(100%);
  transition:
    filter 0.35s ease-out,
    transform 0.35s ease-out;
}

.cr-scope-probleme .cr-gallery-item:hover img {
  filter:grayscale(0%);
  transform:scale(1.05);
}

.cr-scope-probleme .cr-gallery-tag {
  position:absolute;
  left:10px;
  top:10px;
  background:rgba(0,0,0,0.82);
  color:#fff;
  font-size:0.75rem;
  padding:4px 9px;
  border-radius:999px;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.cr-scope-probleme .cr-gallery-badge {
  position:absolute;
  right:10px;
  top:10px;
  background:#ffffff;
  color:#000;
  font-size:0.72rem;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.15);
  letter-spacing:0.08em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:4px;
}

.cr-scope-probleme .cr-gallery-badge span {
  font-size:0.8rem;
}

.cr-scope-probleme .cr-gallery-footer {
  position:absolute;
  left:10px;
  bottom:10px;
  right:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.8rem;
  color:#fff;
  padding:5px 8px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(0,0,0,0.80), rgba(0,0,0,0.55));
}

.cr-scope-probleme .cr-gallery-name {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:70%;
}

.cr-scope-probleme .cr-gallery-price {
  font-weight:600;
}
