/* ===== Carousel Services ===== */
.svc-carousel{
  position: relative;
  margin-top: 2rem;
}

/* Piste horizontale */
.svc-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;                 /* 1 carte par vue (mobile) */
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .25rem .25rem 1rem;
}

/* masquage scrollbar (optionnel) */
.svc-track::-webkit-scrollbar{ height: 10px; }
.svc-track::-webkit-scrollbar-thumb{ background: #d8c7b1; border-radius: 999px; }
.svc-track{ scrollbar-width: thin; scrollbar-color: #d8c7b1 transparent; }

.svc-slide{
  scroll-snap-align: start;
}

/* Responsive: 2 cartes par vue (≥768px), 3 cartes (≥992px) */
@media (min-width: 768px){
  .svc-track{ grid-auto-columns: calc(50% - .625rem); }
}
@media (min-width: 992px){
  .svc-track{ grid-auto-columns: calc(33.333% - .833rem); }
}

/* === Boutons navigation revisités === */
.svc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;               /* plus petit */
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;           /* plus fin et moderne */
  font-weight: 700;
  color: #fff;
  background: rgba(92, 11, 26, 0.9);  /* bordeaux semi-transparent */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

/* Survol : effet lumineux subtil */
.svc-nav:hover {
  background: #8a2436;       /* bordeaux plus chaud */
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Position */
.svc-prev { left: -12px; }
.svc-next { right: -12px; }

/* Petits écrans : rapprocher les bords */
@media (max-width: 576px) {
  .svc-prev { left: 4px; }
  .svc-next { right: 4px; }
}

/* Masquer les flèches du carrousel sur mobile */
@media (max-width: 768px) {
  .svc-prev,
  .svc-next,
  .svc-arrow,
  .svc-nav {
    display: none !important;
  }
}

.black {
  color: #6d0f22 !important;
}

.read-more-btn {
    border: none;
    background: transparent;
    color: #6d0f22;
    font-weight: 600;
    padding: 0;
    margin-top: .35rem;
    cursor: pointer;
    position: relative;
    z-index: 5;
    pointer-events: auto; /* au cas où un parent a pointer-events:none */
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* texte long caché par défaut */
.more-text {
    display: none;
}

/* === Modal générique pour les services === */

.svc-modal{
    position: fixed;
    inset: 0;
    display: none;                 /* caché par défaut */
    align-items: center;
    justify-content: center;
    z-index: 1050;                 /* au-dessus du carrousel */
}

.svc-modal.is-open{
    display: flex;
}

/* Fond semi-transparent */
.svc-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

/* Boîte du modal */
.svc-modal__dialog{
    position: relative;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: #fffaf3;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    padding: 1.75rem 1.75rem 1.5rem;
    color: #2b1e17;
}

/* Titre */
.svc-modal__title{
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
}

/* Corps du texte */
.svc-modal__body p{
    margin-bottom: .75rem;
    line-height: 1.6;
}

/* Bouton fermer */
.svc-modal__close{
    position: absolute;
    top: .55rem;
    right: .8rem;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: #6d0f22;
    cursor: pointer;
}

/* Petit ajustement mobile */
@media (max-width: 576px){
    .svc-modal__dialog{
        padding: 1.3rem 1.2rem 1.1rem;
        border-radius: 14px;
    }
}




