/* WEB ABSOLUE - Custom Styles */
/* Couleurs basées sur le logo */
:root {
    --primary-color: #17a2b8; /* Turquoise/Cyan */
    --secondary-color: #d4a557; /* Doré */
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Top Header */
.top-header {
    background: var(--dark-color);
    color: rgba(255,255,255,0.9);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-header-left,
.top-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-header-right {
    justify-content: flex-end;
}

.top-header-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-header-link:hover {
    color: var(--secondary-color);
}

.top-social-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.top-social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .top-header {
        text-align: center;
    }
    
    .top-header-left,
    .top-header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .top-header .col-md-6 {
        margin-bottom: 5px;
    }
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0088a3 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Hero Slider */
.hero-slider {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item .slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.carousel-item picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(135deg, rgba(23, 162, 184, 0.8) 0%, rgba(0, 136, 163, 0.7) 100%);*/
    z-index: 1;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 1.3rem;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c49547;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 165, 87, 0.4);
}

/* Section Styling */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Services Cards */
.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(23, 162, 184, 0.2);
    border-color: var(--primary-color);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0088a3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    transform: rotate(360deg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c49547 100%);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* Partners Section */
.partners {
    background: var(--light-color);
}

.partner-logo {
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 15px;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Section */
.contact-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0088a3 100%);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-info .info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    padding-left: 0;
}

.copyright {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    animation: slideInUp 0.5s ease;
}

.cookie-banner.hidden {
    display: none;
}

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

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .hero-slider,
    .carousel-item {
        height: 400px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
}

/* Admin Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 25px;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

.admin-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0088a3 100%);
    color: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Responsive adjustments for Slider */
@media (max-width: 767px) {
    .hero-slider {
        height: 400px;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-slider {
        height: 500px;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
}
