/* Fond global tech/gaming sombre */
body {
    background: linear-gradient(rgba(0,0,0,0.88), rgba(0,0,0,0.88)), url('images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Header (logo + titre) */
header {
    background: #0d1117;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.08);
    flex-wrap: wrap;
}
.logo {
    width: 90px;
    height: auto;
}
header h1 {
    margin: 0;
    color: #00ffff;
    font-size: 2.2rem;
}
header p {
    margin: 0.3rem 0 0;
    opacity: 0.9;
}

/* Bandeau navigation fixe (nouveau !) */
.main-nav {
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.nav-btn {
    padding: 0.8rem 1.8rem;
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3);
}
.nav-btn:hover,
.nav-btn.active {
    background: #00ffff;
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

/* Sections générales */
section {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 2rem;
    background: rgba(20, 20, 30, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.15);
}
h2 {
    color: #00ffff;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 0.8rem;
}

/* Carousel */
.slideshow-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}
.mySlides {
    display: none;
}
.slide-content {
    display: flex;
    flex-direction: row;
    background: rgba(20, 20, 30, 0.85);
    border-radius: 10px;
    overflow: hidden;
    min-height: 520px;
}
.slide-image {
    flex: 1;
    min-width: 50%;
    display: flex;
    flex-direction: column;
}
.main-img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    background: rgba(0,0,0,0.4);
}
.thumbnails img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.thumbnails img:hover,
.thumbnails img.active {
    opacity: 1;
    transform: scale(1.08);
    border-color: #00ffff;
}
.slide-description {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-description h3 { color: #00ffff; margin: 0 0 1rem; }
.price { font-size: 1.7em; font-weight: bold; color: #00ff9d; margin: 0.8rem 0; }
.slide-description ul { list-style: none; padding-left: 0; margin: 1rem 0; }
.slide-description li { margin: 0.7rem 0; padding-left: 1.8rem; position: relative; }
.slide-description li::before { content: "✓"; color: #00ffff; position: absolute; left: 0; font-weight: bold; }
.btn-devis {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 28px;
    background: #00ffff;
    color: #0d1117;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-devis:hover { background: #00d4ff; }

/* Flèches */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}
.prev { left: 25px; }
.next { right: 25px; }
.prev:hover, .next:hover { background: rgba(0, 255, 255, 0.7); }

/* Dots */
.dots-container { text-align: center; padding: 1rem 0; }
.dot {
    height: 14px;
    width: 14px;
    margin: 0 8px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}
.dot.active { background-color: #00ffff; }

/* Autres sections (services, tableau) */
#services ul { list-style: none; padding-left: 0; }
#services li { margin: 1rem 0; padding-left: 1.8rem; position: relative; }
#services li::before { content: "→"; color: #00ffff; position: absolute; left: 0; }
.service-img { max-width: 100%; border-radius: 10px; margin-top: 1.5rem; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { border: 1px solid #444; padding: 12px; text-align: left; }
th { background: rgba(0, 255, 255, 0.15); color: #00ffff; }

/* Footer */
footer {
    background: #0d1117;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}
footer a { color: #00ffff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 992px) {
    .slide-content { flex-direction: column; }
    .slide-image { min-height: 400px; }
    .main-img { height: 75%; }
    .thumbnails img { width: 70px; height: 70px; }
    .slide-description { padding: 1.8rem; }
    header { flex-direction: column; text-align: center; }
    .logo { margin: 0 auto 1rem; }
}
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    .nav-btn { width: 80%; margin: 0 auto; text-align: center; }
}

/* Grille images optimisations (nouveau) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.gallery-grid figure {
    margin: 0;
    text-align: center;
}
.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
}
.gallery-grid figcaption {
    margin-top: 0.8rem;
    font-style: italic;
    color: #aaa;
}