/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7DB93D;
    --primary-dark: #2C5530;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(125, 185, 61, 0.1);
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 3px 12px rgba(125, 185, 61, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Menu Hamburger Ultra Moderne */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation Desktop avec fond arrondi */
.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    background: rgba(248, 248, 248, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 60px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 14px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    letter-spacing: 0.3px;
    border: none;
    text-transform: uppercase;
    font-size: 13px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6ba32d 100%);
    border-radius: 50px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
    box-shadow: 0 4px 16px rgba(125, 185, 61, 0);
}

.nav-link::after {
    display: none;
}

/* État hover */
.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.85;
    box-shadow: 0 4px 16px rgba(125, 185, 61, 0.3);
}

/* État actif/sélectionné */
.nav-link.active {
    color: var(--white);
}

.nav-link.active::before {
    opacity: 1;
    box-shadow: 0 6px 20px rgba(125, 185, 61, 0.4);
}

/* Effet au clic */
.nav-link:active {
    transform: translateY(0) scale(0.98);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.hero-image {
    background-image: url('Design sans titre (1).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 24px;
}

.hero-logo {
    max-width: 400px;
    width: 85%;
    height: auto;
    margin-bottom: 0px;
    opacity: 0;
    animation: logoFloat 1s ease forwards 0.3s, float 3s ease-in-out infinite 1.3s;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

@keyframes logoFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
    margin-top: -20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-cta {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 10px;
    background: var(--white);
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* ===== Sections Communes ===== */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services Section ===== */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    border-radius: 24px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-content {
    padding: 32px 28px 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #6ba32d);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    align-self: flex-start;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(125, 185, 61, 0.3);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Fallback si les icônes sont encore présentes */
.service-icon {
    display: none;
}

/* ===== À Propos Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-description strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-hover);
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 185, 61, 0.2), rgba(44, 85, 48, 0.2));
    z-index: 1;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image-wrapper:hover img {
    transform: scale(1.1);
}

/* ===== Valeurs Section ===== */
.values {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.values .section-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.value-number {
    font-size: 48px;
    font-weight: 900;
    opacity: 0.5;
    margin-bottom: 16px;
}

.value-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.value-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-description {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* Formulaire de Contact */
.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-32px) scale(0.85);
    color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
    transform-origin: left top;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(125, 185, 61, 0.4);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Menu Mobile */
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .hero {
        background-position: 75% center;
        background-attachment: scroll;
    }
    
    /* Remonter le contenu hero sur mobile */
    .hero-content {
        transform: translateY(-80px);
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 30px var(--shadow);
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 100px 40px;
        gap: 16px;
        align-items: stretch;
        background: transparent;
        box-shadow: none;
        border: none;
        position: relative;
        z-index: 1002;
    }
    
    .nav-link {
        font-size: 18px;
        width: 100%;
        padding: 16px 24px;
        text-align: left;
        background: rgba(248, 248, 248, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        color: var(--text-dark);
        position: relative;
        border-radius: 12px;
        cursor: pointer;
        z-index: 10;
        pointer-events: auto;
        display: block;
    }
    
    .nav-link::before {
        content: none !important;
        display: none !important;
    }
    
    .nav-link::after {
        content: none !important;
        display: none !important;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color), #6ba32d);
        color: var(--white);
        border-color: transparent;
    }
    
    .nav-link:hover {
        background: rgba(125, 185, 61, 0.3);
        transform: none;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
    }
    
    .hero {
        min-height: 500px;
        background-position: 80% center;
        background-attachment: scroll;
    }
    
    .hero-logo {
        max-width: 250px;
        width: 70%;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .hero-cta {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .service-card {
        padding: 0;
    }
    
    .service-content {
        padding: 24px 20px 28px;
    }
}

/* ===== Animations au Scroll ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Bouton d'Appel Flottant ===== */
.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 16px rgba(125, 185, 61, 0.3);
    transition: all 0.3s ease;
}

.call-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 185, 61, 0.4);
}

.call-button svg {
    width: 22px;
    height: 22px;
}

.call-button-text {
    display: none;
}

/* Responsive pour Mobiles */
@media (max-width: 768px) {
    .call-button {
        bottom: 100px;
        right: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .call-button svg {
        width: 16px;
        height: 16px;
    }
}

/* Version compacte pour petits écrans */
@media (max-width: 480px) {
    .call-button {
        bottom: 90px;
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }
    
    .call-button-text {
        display: none;
    }
    
    .call-button svg {
        width: 20px;
        height: 20px;
    }
}

