/* Réinitialisation et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #e83e8c;
    font-weight: 800;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.05rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

a:hover {
    color: #d63384;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* En-tête */
header {
    background: #fff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(to right, #e83e8c, #d63384);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.header-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn.login {
    color: #555;
    background: transparent;
    border: 1px solid #ddd;
}

.header-btn.signup {
    color: white;
    background: linear-gradient(to right, #e83e8c, #d63384);
    border: none;
    box-shadow: 0 4px 10px rgba(232, 62, 140, 0.25);
}

.header-btn.login:hover {
    color: #e83e8c;
    border-color: #e83e8c;
    background: rgba(232, 62, 140, 0.05);
}

.header-btn.signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(232, 62, 140, 0.3);
}

.tagline {
    display: none;
}

/* Boutons d'appel à l'action */
.cta-button {
    display: inline-block;
    background: #e83e8c;
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(232, 62, 140, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d63384;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 51, 102, 0.5);
    color: white;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #fce7f0 100%);
    padding: 160px 0 100px;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-content {
    width: 50%;
    padding-right: 50px;
}

.hero-image {
    width: 45%;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,51,102,0.2) 0%, rgba(170,20,240,0.1) 70%, rgba(0,0,0,0) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #e83e8c;
    text-shadow: none;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.8;
    max-width: 90%;
}

/* Fonctionnalités */
.features {
    background-color: #ffffff;
    text-align: center;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,51,102,0.05) 0%, rgba(0,0,0,0) 70%);
}

.features h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #e83e8c;
    display: inline-block;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.feature-item {
    flex-basis: 22%;
    padding: 40px 30px;
    margin-bottom: 40px;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #e83e8c;
    transition: height 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.feature-item:hover::before {
    height: 100%;
}

.feature-item i {
    font-size: 3rem;
    color: #e83e8c;
    margin-bottom: 25px;
    display: block;
}

/* Témoignages */
.testimonials {
    background-color: #f0f4f8;
    text-align: center;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(170,20,240,0.05) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.testimonials h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #e83e8c;
    display: inline-block;
    position: relative;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: #e83e8c;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.testimonial-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.testimonial-item {
    flex-basis: 30%;
    padding: 40px 30px;
    margin-bottom: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-item::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(255, 51, 102, 0.1);
    font-family: Georgia, serif;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #e83e8c;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    color: #e83e8c;
    display: inline-block;
}

/* Section CTA */
.cta-section {
    background: #e83e8c;
    color: white;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    filter: blur(2px);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: white;
}

.cta-section p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 90%;
}

.cta-content {
    width: 50%;
    padding-right: 50px;
}

.cta-image {
    width: 45%;
    text-align: right;
    position: relative;
}

.cta-image img {
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
    max-width: 90%;
}

.cta-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.cta-section .cta-button {
    background: white;
    color: #e83e8c;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .cta-button::before {
    opacity: 0.1;
}

.cta-section .cta-button:hover {
    background-color: #f8f9fa;
    color: #d63384;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-button:hover::before {
    opacity: 0.2;
}

/* Comment ça marche */
.how-it-works {
    background-color: #ffffff;
    text-align: center;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,51,102,0.05) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.how-it-works h2 {
    font-size: 2.8rem;
    margin-bottom: 70px;
    color: #e83e8c;
    display: inline-block;
    position: relative;
}

.how-it-works h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: #e83e8c;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(232, 62, 140, 0.2);
    z-index: -1;
}

.step {
    flex-basis: 22%;
    padding: 40px 20px;
    position: relative;
    transition: all 0.4s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: #e83e8c;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(232, 62, 140, 0.3);
    position: relative;
    z-index: 2;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
}

.step p {
    color: #666;
}

/* Pied de page */
footer {
    background-color: #f8f9fa;
    color: #555;
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #eaeaea;
}

footer::before {
    content: none;
}

footer::after {
    content: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.footer-logo,
.footer-links,
.footer-social {
    flex-basis: 30%;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: #e83e8c;
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    color: #777;
    max-width: 80%;
}

.footer-links h3,
.footer-social h3 {
    color: #444;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: #e83e8c;
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

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

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

.footer-links a {
    color: #777;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #e83e8c;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #e83e8c;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(0, 0, 0, 0.02);
    color: #777;
    border-radius: 50%;
    margin-right: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.social-icons a:hover {
    background: #e83e8c;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(232, 62, 140, 0.3);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.popup-content {
    background-color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    position: relative;
    animation: popupFadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(232, 62, 140, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(232, 62, 140, 0.1);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(232, 62, 140, 0.15);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #e83e8c;
}

.popup-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.03);
}

.close-popup:hover {
    color: #e83e8c;
    background-color: rgba(232, 62, 140, 0.1);
    transform: rotate(90deg);
}

.popup-highlight {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e83e8c;
    margin: 30px 0;
    display: inline-block;
    position: relative;
}

.popup-highlight::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 10px;
    background: rgba(232, 62, 140, 0.1);
    bottom: 0;
    left: -5%;
    border-radius: 5px;
}

.popup-button {
    display: inline-block;
    background: linear-gradient(45deg, #e83e8c, #ff6a9c);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(232, 62, 140, 0.4), 0 0 0 4px rgba(232, 62, 140, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    letter-spacing: 0.5px;
    text-transform: none;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.popup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #d63384, #e83e8c);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.popup-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(232, 62, 140, 0.6);
    color: white;
}

.popup-button:hover::before {
    opacity: 1;
}

.popup-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.4);
}

.icon-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Ajout d'un effet de brillance au bouton */
.popup-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.6s;
}

.popup-button:hover::after {
    opacity: 1;
    animation: shineEffect 1.5s infinite;
}

@keyframes shineEffect {
    0% {
        left: -50%;
        opacity: 0;
    }
    10% {
        left: -30%;
        opacity: 0.3;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}

/* Media Queries pour Responsive */
@media (max-width: 992px) {
    .hero-content,
    .hero-image,
    .cta-content,
    .cta-image {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero .container,
    .cta-section .container {
        flex-direction: column;
    }

    .feature-item,
    .testimonial-item,
    .step {
        flex-basis: 48%;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-links h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .feature-item,
    .testimonial-item,
    .step {
        flex-basis: 100%;
    }

    section {
        padding: 70px 0;
    }

    .hero,
    .cta-section {
        padding: 100px 0 70px;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%; /* Bouton pleine largeur sur mobile */
        max-width: 350px;
    }
    
    /* Amélioration de l'en-tête sur mobile */
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 0;
    }
    
    .header-buttons {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    /* Amélioration du hero sur mobile */
    .hero-content, .hero-image {
        width: 100%;
        padding-right: 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    /* Amélioration des sections de contenu sur mobile */
    .testimonial-grid, .feature-grid {
        justify-content: center;
    }
    
    /* Amélioration du footer sur mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-menu-column {
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Clearfix */
.container:after {
    content: "";
    display: table;
    clear: both;
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .header-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .feature-item, .testimonial-item {
        padding: 25px 20px;
    }
    
    .feature-item i {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 110px 0 50px;
        min-height: auto;
    }
    
    /* Optimisation pour l'affiliation mobile */
    a[href*="cooldatesfinder.com"] {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
    }
}
