:root {
    --primary-color: #6B4E9D;     /* Mauve profond */
    --secondary-color: #9B6DFF;    /* Mauve clair/violet */
    --accent-color: #4A3169;       /* Mauve foncé */
    --light-color: #F4F1F9;        /* Mauve très clair */
    --dark-color: #2c3e50;
    --gradient-1: linear-gradient(135deg, #6B4E9D, #9B6DFF);
    --gradient-2: linear-gradient(45deg, #4A3169, #6B4E9D);
    --text-color: #2D3436;
    --light-bg: #F8F9FA;
    --spacing-xl: 6rem;
    --spacing-lg: 4rem;
    --spacing-md: 2rem;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

header {
    position: fixed;
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: linear-gradient(
        to right,
        rgba(155, 109, 255, 0.1),
        rgba(107, 78, 157, 0.1)
    );
}

.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(
        to right,
        rgba(155, 109, 255, 0.15),
        rgba(107, 78, 157, 0.15)
    );
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-around;
        z-index: 1000;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    min-height: 80vh;
    padding: var(--spacing-xl) 5%;
    background: linear-gradient(135deg, #fff 50%, #f5f0ff 50%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.services {
    padding: var(--spacing-xl) 5%;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.highlight {
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

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

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(107, 78, 157, 0.1),
        rgba(107, 78, 157, 0.2)
    );
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

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

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.pricing-features {
    margin: 2rem 0;
    text-align: left;
}

.pricing-features p {
    margin: 1rem 0;
    color: #666;
}

.popular {
    border: 2px solid var(--secondary-color);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
}

.btn-popular {
    background: var(--secondary-color);
}

.btn-popular:hover {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 80px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 3rem auto;
    }
}

#contact {
    background-color: #f8f9fa;
    padding: 5rem 5%;
}

#contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info {
    background: var(--gradient-2);
    color: white;
    padding: 3rem 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-form {
    padding: 3rem 2rem;
    background: white;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s;
    font-size: 1rem;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
    color: #666;
    transition: all 0.3s;
    pointer-events: none;
}

.input-group textarea + label {
    top: 1rem;
    transform: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-submit i {
    transition: transform 0.3s;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

#services {
    background-color: #f8f9fa;
    padding: 6rem 5%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.service-features li {
    margin: 0.8rem 0;
    color: #555;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Styles du logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
}

.logo-svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: rotate(-5deg);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Version footer du logo */
.footer .logo-svg circle {
    fill: white;
}

.footer .logo-svg path:first-of-type {
    fill: var(--primary-color);
}

.footer .logo-text {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-svg {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Animation du pixel */
@keyframes pixelPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.logo-svg rect {
    transform-origin: center;
    animation: pixelPulse 2s infinite ease-in-out;
}

/* Animation au survol */
.logo:hover .p-circle {
    fill: #DB4437; /* Rouge Google au survol */
}

/* Style du texte */
.logo-text {
    font-family: 'Product Sans', 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #5F6368;  /* Couleur de texte Google */
    letter-spacing: -0.5px;
}

/* Version footer */
footer .p-circle {
    fill: white;
}

footer .p-letter {
    fill: #4285F4;
}

footer .logo-text {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .p-logo {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Ajout de la police Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Adaptation mobile */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .p-logo {
        width: 32px;
        height: 32px;
    }
}

/* Ajouter ces styles pour le message */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-message.success {
    opacity: 1;
    transform: translateY(0);
    background-color: rgba(155, 109, 255, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.form-message.error {
    opacity: 1;
    transform: translateY(0);
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-submit.sending {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.sending i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ajoutez ces styles pour la mise en page sur la même ligne */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Optimisation des images */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(107, 78, 157, 0.15);
}

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

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

/* Optimisation du chargement */
.hero-img,
.service-img {
    loading="lazy"
}

/* Fallback pendant le chargement */
.hero-image,
.service-image {
    background: #f5f0ff;
}

/* Section Features */
.features {
    padding: var(--spacing-xl) 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2ff 100%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animation au scroll */
.feature-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Délai d'animation pour chaque élément */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .section-header {
        padding: 0 1rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--primary-color);
    color: white;
    padding-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section principale */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: var(--spacing-xl);
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo .logo-text {
    color: white;
    font-size: 1.8rem;
}

.brand-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Contact Info */
.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info i {
    color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }
} 