/* Variables de couleurs basées sur le logo */
:root {
    --primary-color: #983b81; /* Violet/Magenta - couleur principale du logo */
    --primary-color-light: #b35a9e; /* Version plus claire */
    --primary-color-dark: #7a2e67; /* Version plus foncée */
    --primary-color-transparent: rgba(152, 59, 129, 0.1); /* Version transparente */
    --primary-gradient: linear-gradient(135deg, #983b81 0%, #7a2e67 100%); /* Dégradé principal */
    --secondary-gradient: linear-gradient(135deg, #b35a9e 0%, #983b81 100%); /* Dégradé secondaire */
    --text-color: #333333; /* Presque noir pour le texte */
    --text-color-light: #666666; /* Gris foncé pour texte secondaire */
    --background-color: #ffffff; /* Blanc */
    --accent-color: #000000; /* Noir pour les accents */
    --light-gray: #f8f8f8; /* Gris clair pour les fonds alternatifs */
    --border-color: #e0e0e0; /* Gris clair pour les bordures */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Ombre standard */
    --box-shadow-hover: 0 15px 35px rgba(152, 59, 129, 0.15); /* Ombre au survol */
    --transition-standard: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition standard */
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    background: var(--primary-color-transparent);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: -1;
    opacity: 0.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Remplacement de text-fill-color qui n'est pas standard */
    display: inline-block;
}

h2 {
    font-size: 2.2rem;
    position: relative;
}


a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-standard);
    position: relative;
}

a:hover {
    color: var(--primary-color-dark);
}

a.animated-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition-standard);
}

a.animated-link:hover::after {
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 1.5rem 0;
    background-color: var(--background-color);
    position: relative;
    z-index: 10;
    box-shadow: var(--box-shadow);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: var(--transition-standard);
}

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

.logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero .logo {
    margin-bottom: 3rem;
}

.hero .logo img {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.8;
}

/* Styles pour les animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Contact Section */

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1.5" fill="%23983b81" opacity="0.2"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.contact-form {
    flex: 1 1 500px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-standard);
    border: 1px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.contact-form:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.contact-form p {
    margin-bottom: 2rem;
    color: var(--text-color-light);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.6;
    transition: var(--transition-standard);
}

.textarea-icon {
    top: 25px;
}

.form-group:hover .form-icon,
.form-group input:focus ~ .form-icon,
.form-group textarea:focus ~ .form-icon {
    opacity: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition-standard);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 5px 15px rgba(152, 59, 129, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-color-light);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-standard);
    box-shadow: 0 5px 15px rgba(152, 59, 129, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    transition: var(--transition-standard);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(152, 59, 129, 0.4);
}

.btn-primary:hover::before {
    left: 0;
}

/* Contact Info */
.contact-info {
    flex: 1 1 300px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-standard);
    border: 1px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--primary-color-transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
}

.contact-info:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.contact-info ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: var(--transition-standard);
    border-left: 3px solid transparent;
}

.contact-info li:hover {
    background: white;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.contact-info i {
    color: white;
    margin-right: 1rem;
    font-size: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(152, 59, 129, 0.2);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--primary-color-dark), #5a1c4d);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color-light), var(--primary-color), var(--primary-color-dark));
    z-index: 2;
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(152, 59, 129, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-standard);
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 8px 20px rgba(152, 59, 129, 0.3);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon i {
    font-size: 1.2rem;
    transition: var(--transition-standard);
}

.social-icon:hover i {
    transform: scale(1.2);
}

.legal-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.legal-links::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition-standard);
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: var(--transition-standard);
}

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

.legal-links a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body::before {
        width: 60%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-form, 
    .contact-info {
        flex: 1 1 100%;
    }
    
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body::before {
        display: none;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .contact-form h3,
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}
