:root {
    --primary-color: #000000;
    --secondary-color: #09efffa6;
    --text-color: #2B2D42;
    --background-color: #F8F9FA;
    --hover-color: #0399c7;
    --border-color: #E0E0E0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    padding: 0;
    margin: 0;
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.97) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 8px 0;
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hover-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom navbar toggle button */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero section - RÉAJUSTÉ */
.hero {
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    background: url('10.jpg') no-repeat center center;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.70);
    z-index: 1;
}

.hero img.imgAssan {
    width: 300px;
    height: 300px;
    border-radius: 20%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ovcont {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    animation: fadeIn 2s ease-in-out;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
    animation: fadeIn 2s ease-in-out 0.5s;
}

.hero .btn {
    background-color: white;
    color: var(--primary-color);
    padding: 12px 24px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    margin: 10px 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    display: inline-block;
}

.hero .btn:hover {
    background-color: var(--hover-color);
    color: white;
    transform: scale(1.05);
}

/* Animation pour le fade in */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
#about {
    background-color: white;
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: 450px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 80px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

#services .col-md-4 {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 330px;
    width: 32%;
    text-align: center;
    display: inline-block;
}

#services .row {
    padding-top: 20px;
    text-align: center;
}

#services i {
    font-size: 3.5em;
    color: var(--hover-color);
    margin-bottom: 15px;
}

#services .col-md-4:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#services h3 {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 10px;
}

#services p {
    font-size: 1.1em;
    line-height: 1.6;
}

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

.pathologies h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.pathology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.pathology-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.pathology-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.pathology-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
}

.pathology-item a:hover {
    transform: translateX(5px);
}

/* Gallery Section */
#gallery {
    background-color: white;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 15px;
    background-color: white;
}

/* Testimonials Section */
#testimonials {
    background-color: #f9fbfd;
}

.testimonial {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.testimonial::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: rgba(0, 194, 255, 0.2);
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
    display: block;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-text {
    flex: 1;
}

.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

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

.form-control {
    border: none;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: none;
    background-color: #fff;
    border: 1px solid var(--secondary-color);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 25px 5%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-content {
        gap: 30px;
    }
    
    #services .col-md-4 {
        width: 48%;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero img.imgAssan {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image img {
        height: 350px;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 120px 20px 60px;
        min-height: auto;
    }
    
    .hero img.imgAssan {
        width: 250px;
        height: 250px;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .hero .btn {
        padding: 10px 20px;
        font-size: 0.9em;
        margin: 5px;
    }
    
    #services .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
        height: auto;
    }
    
    #about {
        padding: 60px 20px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    section h2 {
        font-size: 2em;
    }
    
    .pathology-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 50px;
    }
    
    .hero img.imgAssan {
        width: 200px;
        height: 200px;
    }
    
    .hero h1 {
        font-size: 1.5em;
    }
    
    .hero p {
        font-size: 0.9em;
    }
    
    .hero .btn {
        padding: 8px 16px;
        font-size: 0.8em;
        margin: 5px 3px;
    }
    
    #about {
        padding: 40px 15px;
    }
    
    .about-image img {
        height: 250px;
    }
    
    section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    #services i {
        font-size: 2.5em;
    }
    
    #services h3 {
        font-size: 1.2em;
    }
    
    .pathology-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
}