:root {
    --blue: #1da1f2;
    --green: #10B981;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
}

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

body {
    /* font-family: 'DM Sans', sans-serif; */
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero avec fond diagonal bleu */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 60%, var(--green) 60%, var(--green) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.hero-particuliers {
    min-height: 85vh;
    background: linear-gradient(135deg, var(--green) 0%, var(--green) 60%, var(--blue) 60%, var(--blue) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.hero::before, .hero-particuliers::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(5deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 1rem; /* Au lieu de 0.9rem */
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1, .hero-particuliers h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    color:white;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    opacity: 0.95;
    max-width: 700px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

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

/* Section Services avec cartes modernes */
.services-section {
    padding: 6rem 2rem;
    background: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-badge {
    display: inline-block;
    background: var(--light);
    color: var(--blue);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

/* Supprimer la min-width problématique */
.ebpg-grid-post.ebpg-post-grid-column {
    min-width: 0 !important;
    width: 100% !important;
}

/* Adapter la grille pour mobile */
@media (max-width: 768px) {
    .eb-post-grid-posts-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .ebpg-grid-post {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* Pour tablette */
@media (min-width: 769px) and (max-width: 1024px) {
    .ebpg-grid-post.ebpg-post-grid-column {
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .eb-post-grid-posts-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

.ebpg-entry-thumbnail img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-grid .ebpg-grid-post,
.accompagnements-grid .ebpg-grid-post {
	position:relative;
    display: flex !important;
    flex-direction: column;
    height: 100%;
}


.services-grid .ebpg-grid-post .ebpg-entry-title,
.accompagnements-grid .ebpg-grid-post .ebpg-entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    min-height: 70px;
}

.services-grid .ebpg-grid-post .ebpg-entry-wrapper,
.accompagnements-grid .ebpg-grid-post .ebpg-entry-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.services-grid .ebpg-grid-post .ebpg-entry-content,
.accompagnements-grid .ebpg-grid-post .ebpg-entry-content {
    color: var(--gray);
    /* margin-bottom: 1.5rem; */
    justify-items: center;
    display: flex !important;
    line-height: 1.7;
    flex-direction: column !important;
    flex-grow: 1 !important;
   
}

.services-grid .ebpg-grid-post .ebpg-entry-content .ebpg-grid-post-excerpt,
.accompagnements-grid .ebpg-grid-post .ebpg-entry-content .ebpg-grid-post-excerpt {
     min-height: 150px !important;
}
.services-grid .ebpg-grid-post .ebpg-entry-content .ebpg-readmore-btn,
.accompagnements-grid .ebpg-grid-post .ebpg-entry-content .ebpg-readmore-btn {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: auto!important;
}

.services-grid .ebpg-grid-post .ebpg-entry-content .ebpg-readmore-btn:hover,
.accompagnements-grid .ebpg-grid-post .ebpg-entry-content .ebpg-readmore-btn:hover {
    gap: 1rem;
}


/* Section Pourquoi moi avec fond bleu clair */
.why-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0fdf4 100%);
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.why-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 15px 40px rgba(29, 161, 242, 0.12);
}

.why-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.why-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.why-list {
    list-style: none;
    text-align: left;
}

.why-list li {
    color: var(--gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: bold;
}

/* CTA Final avec fond bleu */
.final-cta {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 50%, var(--green) 50%, var(--green) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Footer simple */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--blue);
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .services-grid, .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}