:root {
    --primary: #3a86ff;
    --secondary: #8338ec;
    --accent:rgb(255, 0, 43);;
    --light: #f8f9fa;
    --dark:rgb(37, 33, 41);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-secondary: linear-gradient(135deg,rgb(60, 77, 231),rgb(45, 43, 192));
    --gradient-accent: linear-gradient(135deg, var(--accent),rgb(146, 21, 12));
    --gradient-light: linear-gradient(135deg, #f5f7fa, #e4e8eb);
    --gradient-dark: linear-gradient(135deg,rgb(55, 75, 141),rgb(97, 10, 148));
    --gradient-gold: linear-gradient(135deg,rgb(15, 241, 34),rgb(18, 243, 104));
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.7;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 1rem 2rem;
    box-shadow: var(--shadow-xl);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
}

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

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active:after {
    width: 100%;
    background: var(--gradient-secondary);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    height: 3px;
    width: 28px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.4s ease;
    border-radius: 3px;
}

/* Hero Section */
.contact-hero {
    background: var(--gradient-dark);
    color: white;
    padding: 12rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.contact-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    position: relative;
}

.contact-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') center/cover;
    opacity: 0.03;
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.contact-info i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p, .contact-info a {
    color: #666;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Map Section */
.map-section {
    margin-bottom: 6rem;
}

#map {
    height: 500px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #ddd;
}

/* Appointment Section */
.appointment-section {
    background: white;
    border-radius: 15px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 6rem;
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.appointment-form {
    padding-right: 2rem;
    border-right: 1px dashed #ddd;
}

.appointment-form h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

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

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Calendar */
.calendar-container {
    padding-left: 2rem;
}

.calendar-container h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

#calendar {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.fc .fc-toolbar-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

.fc .fc-button {
    background-color: var(--accent);
    border-color: var(--accent);
    transition: all 0.3s ease;
}

.fc .fc-button:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.fc-event {
    background-color: var(--accent);
    border-color: var(--accent);
    cursor: pointer;
}

.fc-event:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

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

.faq-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    color: var(--accent);
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #eee;
}

/* Footer */
footer {
    background: var(--gradient-dark);
    color: white;
    padding: 8rem 0 3rem;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.5rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--gradient-secondary);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer-column p, .footer-column a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background: var(--gradient-secondary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-form {
    margin-top: 2rem;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: var(--shadow-xl);
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--primary);
        padding: 0.8rem 1.5rem;
        display: inline-block;
    }

    .nav-links a:after {
        display: none;
    }

    .nav-links a.active {
        background: var(--gradient-primary);
        color: white;
        border-radius: 50px;
        padding: 0.8rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .contact-hero {
        padding: 10rem 0 6rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

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

    .section-title h2 {
        font-size: 2.2rem;
    }

    .appointment-container {
        grid-template-columns: 1fr;
    }

    .appointment-form {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px dashed #ddd;
        padding-bottom: 3rem;
        margin-bottom: 3rem;
    }

    .calendar-container {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 2rem;
    }

    #map {
        height: 400px;
    }

    .appointment-section {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    #map {
        height: 300px;
    }

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

    .footer-column {
        text-align: center;
    }

    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}


/* Animation de préchargement */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #4361ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-circle:before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 8px solid transparent;
    border-top: 8px solid rgb(41, 9, 183);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.loader-circle:after {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    border: 8px solid transparent;
    border-top: 8px solid rgb(247, 37, 55);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

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

/* Effets de morphing */
.morphing-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgb(238, 67, 67);
    filter: blur(30px);
    animation: morph 8s infinite alternate;
    z-index: -1;
    opacity: 0.7;
}

.morphing-circle:nth-child(2) {
    background: rgba(114, 9, 183, 0.1);
    animation-delay: 2s;
    left: 20%;
    top: 30%;
}

.morphing-circle:nth-child(3) {
    background: rgba(247, 37, 133, 0.1);
    animation-delay: 4s;
    left: 70%;
    top: 60%;
}

@keyframes morph {
    0% { border-radius: 50%; transform: scale(1); }
    25% { border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%; }
    50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1.2); }
    75% { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
    100% { border-radius: 50%; transform: scale(1); }
}

/* Effet de particules */
.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Animation de texte dégradé */
.gradient-text {
    background: linear-gradient(90deg,rgb(178, 183, 206), #7209b7,rgb(214, 204, 204));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Effet de vague animée */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%234361ee" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%234361ee" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%234361ee"/></svg>');
    background-size: cover;
    animation: wave-animation 15s linear infinite;
}

.wave:nth-child(2) {
    animation-delay: -5s;
    opacity: 0.5;
}

.wave:nth-child(3) {
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes wave-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animation de flottement */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Animation de pulsation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Animation de rotation 3D */
@keyframes rotate3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.rotate3d {
    animation: rotate3d 12s linear infinite;
}

/* Effet de glitch */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color:rgb(247, 37, 37);
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: #4361ee;
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* Effet de néon */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px rgb(238, 67, 67),
        0 0 40px #4361ee,
        0 0 80px rgb(175, 67, 238);
    animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px rgb(238, 67, 76),
            0 0 40px #4361ee,
            0 0 80px rgb(190, 67, 238);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Effet de parallaxe avancé */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Animation de texte qui se remplit */
.fill-text {
    position: relative;
    display: inline-block;
}

.fill-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.3), transparent);
    animation: fill 3s forwards;
}

@keyframes fill {
    to { width: 100%; }
}

/* Effet de hover avancé pour les cartes */
.card-3d {
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Effet de lumière qui suit la souris */
.light-spot {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(30px);
}
