/* --------------------------------------------------
   hero.css
   --------------------------------------------------
   Styles du diaporama/bannière (conteneur, images, légendes)
*/

/* Section : Hero Section */
/* =============================== */
/* Hero Section */
/* =============================== */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    transform: scale(1);
    transition: transform 5s ease-in-out;
}

/* Images responsives du diaporama - DESKTOP */
.slide-image.desktop-image {
    display: block !important;
}

.slide-image.mobile-image {
    display: none !important;
}

@media (max-width: 768px) {
  .slide-image.desktop-image { display: none !important; }
  .slide-image.mobile-image  { display: block !important; }
}

.slide.active .slide-image {
    transform: scale(1.05);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80vh;
}

.hero-top { padding-top: 0px; }
.hero-bottom { padding-bottom: 100px; }

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* Section : Contrôles du diaporama */
/* =============================== */
/* Contrôles du diaporama */
/* =============================== */
.slide-prev,
.slide-next {
    position: absolute;
    top: 75%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-prev { left: 20px; }
.slide-next { right: 20px; }

.slide-prev:hover,
.slide-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Points de navigation */
.slide-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    z-index: 10;
}

.slide-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
    border-color: var(--white);
}

.slide-dots .dot:hover {
    background: var(--white);
    transform: scale(1.1);
}

.hero .slide-dots {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 20;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sections générales */
section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}
