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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 4rem 2rem;
    color: #2d3748;
}

.container {
    max-width: 140rem;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
}

.demo-section {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.demo-section h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.2rem solid #e2e8f0;
}

/* Grid de cartes */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 4rem;
}

/* Flip card container */
.flip-card {
    perspective: 150rem;
    height: 45rem;
    cursor: pointer;
}

.flip-card.product-card {
    height: 50rem;
}

.flip-card.service-card {
    height: 48rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Faces communes */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 2rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flip-card-front {
    background: white;
}

.flip-card-back {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    transform: rotateY(180deg);
    padding: 3rem;
}

/* Carte profil - FRONT */
.card-background {
    height: 18rem;
    position: relative;
}

.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #ed64a6 0%, #d53f8c 100%);
}

.profile-avatar {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -6rem auto 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    font-size: 5rem;
    color: #667eea;
}

.flip-card-front h3 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    padding: 0 2rem;
}

.flip-card-front .role {
    text-align: center;
    font-size: 1.5rem;
    color: #718096;
    margin-bottom: 2rem;
}

.flip-btn {
    margin: auto 2rem 2rem;
    padding: 1.4rem 2.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.flip-btn:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem rgba(102, 126, 234, 0.4);
}

.flip-btn.outline {
    background: white;
    color: #667eea;
    border: 0.2rem solid #667eea;
}

.flip-btn.outline:hover {
    background: #667eea;
    color: white;
}

.flip-btn.back {
    background: #718096;
}

.flip-btn.back:hover {
    background: #4a5568;
    box-shadow: 0 0.5rem 1.5rem rgba(74, 85, 104, 0.4);
}

.flip-btn.small {
    padding: 1rem;
    width: 5rem;
    margin: 0;
}

/* Carte profil - BACK */
.flip-card-back h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.bio {
    font-size: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    font-size: 1.4rem;
    color: #4a5568;
}

.contact-item i {
    color: #667eea;
    font-size: 1.8rem;
    width: 2.5rem;
    text-align: center;
}

/* Carte produit - FRONT */
.product-image {
    height: 22rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    color: #667eea;
}

.product-info {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #f6ad55;
    font-size: 1.6rem;
}

.rating span {
    margin-left: 1rem;
    color: #718096;
    font-size: 1.4rem;
}

/* Carte produit - BACK */
.product-back {
    justify-content: space-between;
}

.specs-list {
    list-style: none;
    margin-bottom: 3rem;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0;
    font-size: 1.5rem;
    color: #4a5568;
    border-bottom: 0.1rem solid #e2e8f0;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list i {
    color: #48bb78;
    font-size: 1.6rem;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.add-cart-btn {
    flex: 1;
    padding: 1.4rem 2.8rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.add-cart-btn:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem rgba(72, 187, 120, 0.4);
}

/* Carte service - FRONT */
.service-icon {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    margin: 3rem auto 2.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.service-card .flip-card-front {
    padding: 2rem;
    text-align: center;
    justify-content: space-between;
}

.service-card .flip-card-front h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.service-desc {
    font-size: 1.5rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

/* Carte service - BACK */
.features-list {
    list-style: none;
    margin-bottom: 3rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0;
    font-size: 1.5rem;
    color: #4a5568;
}

.features-list i {
    color: #667eea;
    font-size: 1.8rem;
}

.service-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flip-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.flip-card:nth-child(1) {
    animation-delay: 0.1s;
}

.flip-card:nth-child(2) {
    animation-delay: 0.2s;
}

.flip-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Hover effect sur la carte */
.flip-card:hover {
    transform: translateY(-0.5rem);
}

.flip-card.flipped:hover {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .demo-section {
        padding: 2rem;
    }

    .demo-section h2 {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .flip-card {
        height: 42rem;
    }

    .flip-card.product-card {
        height: 48rem;
    }

    .flip-card.service-card {
        height: 45rem;
    }

    .profile-avatar {
        width: 10rem;
        height: 10rem;
        font-size: 4rem;
        margin-top: -5rem;
    }

    .card-background {
        height: 15rem;
    }
}