/*
Theme Name: WhatsApp Style
Theme URI: https://example.com/whatsapp-style
Author: Your Name
Author URI: https://example.com
Description: Un thème WordPress moderne inspiré du design WhatsApp avec des animations fluides et un design responsive
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whatsapp-style
Tags: responsive, modern, green, business, portfolio
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.nav-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
    color: #25d366;
    text-decoration: none;
    margin-right: auto;
}

.site-logo svg {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #25d366;
}

.nav-cta {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: #25d366;
    color: white !important;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: #20bd5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
    background: white;
    color: #25d366 !important;
    padding: 12px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #25d366;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #25d366;
    color: white !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 40px 120px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #111827;
}

.hero-content p {
    font-size: 20px;
    color: #4b5563;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
    padding: 120px 40px;
    background: white;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.section-header p {
    font-size: 20px;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.feature-card {
    background: #f9fafb;
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.feature-card p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    padding: 120px 40px;
}

.content-section:nth-child(even) {
    background: #f9fafb;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-container.reverse {
    direction: rtl;
}

.content-container.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    color: #111827;
}

.content-text p {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.7;
}

.content-text a {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.content-text a:hover {
    text-decoration: underline;
}

.content-image {
    position: relative;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Footer */
.site-footer {
    background: #111827;
    color: white;
    padding: 80px 40px 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #9ca3af;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #25d366;
}

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

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

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

.social-link:hover {
    background: #25d366;
    transform: translateY(-2px);
}

/* Highlight Style */
.highlight {
    color: #25d366;
    font-weight: 700;
}

/* WordPress Specific */
.wp-block-image img {
    border-radius: 20px;
}

.wp-block-button__link {
    background: #25d366;
    border-radius: 24px;
    padding: 12px 28px;
}

.alignwide {
    max-width: 1400px;
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #25d366;
    cursor: pointer;
    padding: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .content-text h2 {
        font-size: 36px;
    }

    nav {
        padding: 16px 24px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 60px 24px 80px;
    }

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

    .section-header h2 {
        font-size: 32px;
    }

    .features,
    .content-section {
        padding: 80px 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-cta {
        flex-direction: column;
        width: 100%;
    }

    .nav-cta a {
        width: 100%;
        text-align: center;
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
