/* Importation des polices et icônes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Variables CSS pour une gestion cohérente des styles */
:root {
    --primary-color: #007A5E;
    --secondary-color: #A0D2EB;
    --background-white: #FFFFFF;
    --background-soft-green: #F0F8F5;
    --background-light-grey: #F8F9FA;
    --text-dark: #212529;
    --text-light: #6C757D;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--background-white);
    margin: 0;
    padding-top: 90px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: 38px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Styles des boutons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: #006349;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* En-tête */
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 30px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.header.scrolled {
    top: 10px;
    padding: 12px 25px;
    box-shadow: var(--shadow-md);
}

.logo {
    font-family: var(--font-secondary);
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 28px;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    position: relative;
    padding: 8px 18px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: transparent;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: calc(100% - 36px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Section Hero */
#home {
    background: linear-gradient(90deg, rgba(0, 40, 30, 0.8) 0%, rgba(0, 40, 30, 0.5) 45%, rgba(0, 0, 0, 0) 100%), url('/assets/img/Hero1.jpg');
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    text-align: left;
    justify-content: flex-start;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -90px;
    padding-top: 90px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    padding-top: 54px;
    width: 55%;
    max-width: 700px;
    margin-left: 5%;
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 56px;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 22px;
    color: #F0F0F0;
    margin: 0 0 35px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Section À propos */
#about .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    max-height: 500px;
    background-color: #f0f0f0;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 2;
}
.experience-badge .years {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}
.experience-badge .text {
    font-size: 14px;
}

.about-content h3 {
    font-family: var(--font-secondary);
    font-size: 24px;
    margin-top: 0;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.advantages-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.advantages-list li {
    background-color: var(--background-soft-green);
    padding: 15px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.advantages-list li:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Section Services */
#services {
    background-color: var(--background-light-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-white);
    padding: 35px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-card .icon-placeholder {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--background-soft-green) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-placeholder {
    transform: scale(1.1) rotate(5deg);
}

.service-card .icon-placeholder i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-card h4 {
    font-family: var(--font-secondary);
    font-size: 20px;
    margin: 15px 0 10px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Section Équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
}

.team-member .photo-placeholder {
    width: 100%;
    height: 280px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center top;
    border-radius: var(--border-radius-lg);
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.member-1 { background-image: url('/assets/img/jamil.jpeg'); }
.member-2 { background-image: url('/assets/img/haris.jpeg'); }
.member-3 { background-image: url('/assets/img/user.png'); }
.member-4 { background-image: url('/assets/img/user2.png'); }

.team-member:hover .photo-placeholder {
    box-shadow: var(--shadow-md);
}

.team-member h4 {
    font-family: var(--font-secondary);
    margin: 10px 0 5px;
    font-size: 20px;
    color: var(--text-dark);
}

.team-member p {
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Section Témoignages */
#testimonials {
    background: linear-gradient(135deg, var(--background-soft-green) 0%, #E8F5F1 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: #FFC107;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.client-details h4 {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--primary-color);
}

.client-details span {
    font-size: 13px;
    color: var(--text-light);
}

/* Section Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    flex: 1;
}

.contact-form input, 
.contact-form textarea, 
.contact-form select {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 2px solid #E0E0E0;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.contact-form input:focus, 
.contact-form textarea:focus, 
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 94, 0.1);
}

.contact-info {
    background: linear-gradient(135deg, var(--background-soft-green) 0%, #E8F5F1 100%);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-info h4 {
    font-family: var(--font-secondary);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--text-dark);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.contact-info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px;
    text-align: center;
    margin-top: 2px;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #eee;
}

/* Pied de page */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--text-dark) 100%);
    color: #E0E0E0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-grid h4 {
    font-family: var(--font-secondary);
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-grid a, 
.footer-grid p {
    color: #B0B0B0;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    line-height: 1.6;
}

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

.footer-copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 20px;
    color: #B0B0B0;
}

.social-icons a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Message de succès */
.success-message {
    display: none;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.success-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Design Responsive */
@media (max-width: 968px) {
    .header {
        flex-wrap: wrap;
        padding: 10px 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
        text-align: center;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }
    
    .btn-primary.header-btn {
        display: none;
    }

    #home {
        background: linear-gradient(rgba(0, 40, 30, 0.5), rgba(0, 40, 30, 0.5)), url('/assets/img/Hero2.jpg');
        background-size: cover;
        background-position: center top;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 20px;
        padding-top: 100px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    #about .container {
        grid-template-columns: 1fr;
    }
    
    .about-image-placeholder {
        aspect-ratio: 16/9;
        max-height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .about-image-placeholder {
        aspect-ratio: 1/1;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Bouton de retour en haut */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    z-index: 999;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background-color: #006349;
}
