/* ========================================
   COMPAGNONS DU JARDIN TOITURE TERVILLE
   Design sobre et professionnel
   Optimisé conversion devis
   ======================================== */

/* ========== IMPORT FONT MODERNE ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0f172a;
}

h1 {
    font-size: 2.8rem;
    font-weight: 900;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

strong {
    font-weight: 700;
    color: #0f172a;
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

section {
    padding: 60px 0;
    position: relative;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #1e40af;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
    background: #1e3a8a;
}

.btn-secondary {
    background: #ffffff;
    color: #1e40af;
    border: 2px solid #1e40af;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #1e40af;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
    box-shadow: none;
}

.btn-outline:hover {
    background: #1e40af;
    color: #ffffff;
}

.btn-phone {
    background: #1e40af;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.25);
}

.btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
    background: #1e3a8a;
}

/* ========== HEADER ========== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

.logo img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

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

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu li.active > a {
    color: #1e40af;
}

.nav-menu a:hover::after,
.nav-menu li.active > a::after {
    width: 100%;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    color: #334155;
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.9rem;
}

.submenu a::after {
    display: none;
}

.submenu a:hover {
    background: #f1f5f9;
    color: #1e40af;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #334155;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/headimg.png') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: 900;
}

.hero h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== SECTIONS BACKGROUND ========== */
.section-white {
    background: #ffffff;
}

.section-blue {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #ffffff;
}

.section-blue h2,
.section-blue h3,
.section-blue h4 {
    color: #ffffff;
}

.section-blue p {
    color: rgba(255, 255, 255, 0.95);
}

.section-light {
    background: #f8fafc;
}

/* ========== CARDS ========== */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

.card h4 {
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.card p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========== GRIDS ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-subtitle {
    color: #1e40af;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-blue .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 900;
}

.section-blue .section-title {
    color: #ffffff;
}

.section-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
}

.section-blue .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== SERVICE CARDS ========== */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1e40af;
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 800;
}

.service-content p {
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin: 15px 0;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #334155;
    font-weight: 500;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e40af;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #0f172a;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form select {
    cursor: pointer;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: #1e40af;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-info h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.testimonial-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* ========== CTA SECTIONS ========== */
.cta-section {
    background: #1e40af;
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 900;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

/* ========== FOOTER ========== */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 800;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 6px 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== CERTIFICATIONS ========== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
}

.cert-item {
    text-align: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.cert-item img {
    max-width: 110px;
    margin: 0 auto 10px;
}

.cert-item h4 {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8fafc;
        margin-top: 0.8rem;
        box-shadow: none;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* ========== UTILITIES ========== */
*:focus {
    outline: 3px solid rgba(30, 64, 175, 0.3);
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .cta-section {
        display: none;
    }
}
