:root {
    --primary-color: #2A9D8F;
    --secondary-color: #264653;
    --accent-color: #E76F51;
    --light-bg: #F8F9FA;
    --dark-text: #333333;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #21867a 100%) !important;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    color: var(--secondary-color);
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

.btn-appointment {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(38, 70, 83, 0.9) 0%, rgba(42, 157, 143, 0.9) 100%);
    padding: 80px 0;
    margin-top: -1px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.feature-box {
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

/* Services Cards */
.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.3);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
}

/* Appointment Section */
.appointment-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 60px 0;
    color: white;
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    margin: 20px 0;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.rating {
    color: #FFD700;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
}

.contact-form .btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.3);
}

/* Footer */
.footer {
    background: var(--secondary-color) !important;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-box {
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .brand-text {
        display: none;
    }
}

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

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ======================================= */
/* FOOTER PREMIUM - DESIGN ULTRA STYLÉ */
/* ======================================= */

.footer-premium {
    position: relative;
    background: linear-gradient(135deg, #0B1A2E 0%, #1A2F3F 100%);
    color: #fff;
    padding: 0 0 20px 0;
    font-family: 'Poppins', 'Inter', sans-serif;
    overflow: hidden;
}

/* Vague décorative */
.footer-wave {
    position: relative;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Carte principale */
.footer-main {
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

/* Effet de carte pour la colonne À propos */
.footer-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(42, 157, 143, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.7s ease;
}

.footer-card:hover::before {
    left: 100%;
}

.footer-card-inner {
    position: relative;
    z-index: 2;
}

/* Brand */
.footer-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2A9D8F, #1a5a4f);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.3);
}

.brand-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff, #2A9D8F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text span {
    font-size: 0.85rem;
    color: #a0aec0;
    letter-spacing: 1px;
}

/* Texte à propos */
.about-text {
    color: #cbd5e0;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Badges de certification */
.certification-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.certification-badges .badge {
    background: rgba(42, 157, 143, 0.15);
    color: #2A9D8F;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(42, 157, 143, 0.3);
    backdrop-filter: blur(5px);
}

/* Section sociale */
.social-section h6 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links-premium {
    display: flex;
    gap: 12px;
}

.social-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-link.facebook { background: #1877f2; }
.social-link.twitter { background: #1da1f2; }
.social-link.linkedin { background: #0a66c2; }
.social-link.instagram { background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285AEB); }
.social-link.youtube { background: #ff0000; }

.social-link:hover {
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    pointer-events: none;
    opacity: 0;
}

.social-link:hover .social-tooltip {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    bottom: -25px;
}

/* Titres de navigation */
.nav-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(42, 157, 143, 0.3);
}

.nav-title span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title i {
    color: #2A9D8F;
    font-size: 1.2rem;
}

/* Liens de navigation */
.nav-links, .services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 12px;
}

.nav-links a {
    color: #cbd5e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a i {
    width: 20px;
    color: #2A9D8F;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #2A9D8F;
    transform: translateX(8px);
}

.nav-links a:hover i {
    transform: scale(1.2);
}

/* Liste des services */
.services-list li {
    margin-bottom: 10px;
}

.services-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e0;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
}

.service-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-name {
    flex: 1;
    font-size: 0.95rem;
}

.service-badge {
    background: #2A9D8F;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge.new {
    background: #e74c3c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.services-list a:hover {
    transform: translateX(5px);
    color: #2A9D8F;
}

/* Carte de contact premium */
.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item.emergency {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), transparent);
    padding: 15px;
    margin: -5px -5px 5px -5px;
    border-radius: 12px;
    border-bottom: 2px solid #e74c3c;
}

.contact-icon {
    width: 35px;
    height: 35px;
    background: rgba(42, 157, 143, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2A9D8F;
    font-size: 1rem;
}

.contact-item.emergency .contact-icon {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-value {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #2A9D8F;
}

/* Newsletter mini */
.newsletter-mini {
    margin-top: 20px;
}

.newsletter-mini p {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.newsletter-form-mini {
    display: flex;
    gap: 8px;
}

.newsletter-form-mini input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form-mini input:focus {
    outline: none;
    border-color: #2A9D8F;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form-mini input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form-mini button {
    width: 45px;
    height: 45px;
    background: #2A9D8F;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.newsletter-form-mini button:hover {
    background: #1e7a6f;
    transform: rotate(15deg);
}

/* Séparateur décoratif */
.footer-separator {
    text-align: center;
    margin: 30px 0 15px;
    position: relative;
}

.footer-separator::before,
.footer-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 157, 143, 0.3), transparent);
}

.footer-separator::before { left: 0; }
.footer-separator::after { right: 0; }

.separator-icon {
    width: 40px;
    height: 40px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2A9D8F;
    border: 1px solid rgba(42, 157, 143, 0.3);
    backdrop-filter: blur(5px);
}

/* Bottom bar */
.footer-bottom-premium {
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
}

.copyright-premium i {
    color: #2A9D8F;
}

.legal-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.legal-links a i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.legal-links a:hover {
    color: #2A9D8F;
    transform: translateY(-2px);
}

/* Bouton retour en haut premium */
.back-to-top-premium {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2A9D8F, #1e7a6f);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(42, 157, 143, 0.4);
    z-index: 1000;
}

.back-to-top-premium.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-premium:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.6);
}

.back-to-top-premium .tooltip {
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-premium:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-wave svg {
        height: 40px;
    }
    
    .footer-card {
        margin-bottom: 20px;
    }
    
    .legal-links {
        justify-content: center;
        margin-top: 10px;
    }
    
    .copyright-premium {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-wave svg {
        height: 30px;
    }
    
    .social-links-premium {
        flex-wrap: wrap;
    }
    
    .nav-title {
        margin-top: 15px;
    }
    
    .back-to-top-premium {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.footer-card:hover .brand-icon {
    animation: float 2s infinite;
}

/* Effet de brillance */
.footer-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(42, 157, 143, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}