/* =====================================================
   Page d'accueil S3R
   ===================================================== */

.home-wrapper {
    position: relative;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Dragon watermark */
.home-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    max-width: 800px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.home-content {
    position: relative;
    z-index: 1;
    padding: 30px 15px 50px;
}

/* ---- Bienvenue card ---- */
.home-welcome {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    padding: 30px 40px;
    margin-bottom: 30px;
    text-align: center;
}

.home-welcome h1 {
    font-size: 2em;
    margin-bottom: 8px;
    color: #333;
}

.home-welcome .home-logo {
    height: 70px;
    margin-bottom: 15px;
}

.home-welcome p.lead {
    color: #666;
    font-size: 1.1em;
}

/* ---- Carousel card ---- */
.home-carousel-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    margin-bottom: 30px;
    position: relative;
}

/* Carousel inner : grille CSS pour superposer les slides sans JS */
.home-carousel-card .carousel-inner {
    display: grid;
}

/* Toutes les slides occupent la même cellule de la grille */
.home-carousel-card .carousel-inner > .item {
    grid-area: 1 / 1;
    display: block !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Slide active : visible, mais pointer-events sur le contenu seulement (pas sur les bords où sont les flèches) */
.home-carousel-card .carousel-inner > .item.active {
    opacity: 1;
    pointer-events: none;
}
.home-carousel-card .carousel-inner > .item.active .home-slide {
    pointer-events: auto;
}

/* ---- Contenu d'une slide ---- */
.home-slide {
    padding: 30px 60px 50px;
    text-align: center;
}

.home-slide h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #333;
}

.home-slide h2 .glyphicon {
    margin-right: 8px;
    color: #8B6914;
}

.home-slide img.gob-img {
    max-height: 200px;
    margin: 0 auto 20px;
    display: block;
}

.home-slide p {
    font-size: 1.05em;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Bouton Google Maps ---- */
.home-map-btn {
    margin-top: 10px;
    border-color: #8B6914;
    color: #8B6914;
}

.home-map-btn:hover {
    background-color: #8B6914;
    color: #fff;
}


/* ---- Indicators (dots) ---- */
.home-carousel-card .home-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-carousel-card .home-dots li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #aaa;
    border: 1px solid #888;
    cursor: pointer;
    transition: background 0.2s;
}

.home-carousel-card .home-dots li.active {
    background: #8B6914;
    border-color: #6b4f0e;
}

/* ---- Flèches ---- */
.home-carousel-card .home-prev,
.home-carousel-card .home-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8B6914;
    opacity: 0.6;
    font-size: 24px;
    z-index: 10;
    user-select: none;
    text-decoration: none;
}

.home-carousel-card .home-prev { left: 0; }
.home-carousel-card .home-next { right: 0; }

.home-carousel-card .home-prev:hover,
.home-carousel-card .home-next:hover {
    opacity: 1;
    color: #6b4f0e;
}

/* ---- CTA ---- */
.home-cta {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}

.home-cta .btn {
    padding: 12px 35px;
    font-size: 1.1em;
    border-radius: 5px;
    background-color: #8B6914;
    border-color: #6b4f0e;
    color: #fff;
}

.home-cta .btn:hover {
    background-color: #6b4f0e;
    border-color: #4e3a09;
}
