/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7c5cff;
    --secondary-color: #1a1a1a;
    --accent-color: #ff3366;
    --text-color: #333;
    --light-bg: #f5f5f7;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(124, 92, 255, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.logo h1 i {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    animation: scissorsRotate 3s ease-in-out infinite;
}

.logo h1 i::before {
    animation: scissorBlade1 3s ease-in-out infinite;
}

.logo h1 i::after {
    content: '\f0c4';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    animation: scissorBlade2 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes scissorsRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

@keyframes scissorBlade1 {
    0%, 100% {
        transform: rotate(0deg);
        opacity: 1;
    }
    15% {
        transform: rotate(-10deg);
        opacity: 0.9;
    }
    25% {
        transform: rotate(-15deg);
        opacity: 0.8;
    }
    35% {
        transform: rotate(-10deg);
        opacity: 0.9;
    }
    50% {
        transform: rotate(0deg);
        opacity: 1;
    }
    65% {
        transform: rotate(10deg);
        opacity: 0.9;
    }
    75% {
        transform: rotate(15deg);
        opacity: 0.8;
    }
    85% {
        transform: rotate(10deg);
        opacity: 0.9;
    }
}

@keyframes scissorBlade2 {
    0%, 100% {
        transform: rotate(0deg);
        opacity: 0.7;
    }
    15% {
        transform: rotate(10deg);
        opacity: 0.8;
    }
    25% {
        transform: rotate(15deg);
        opacity: 0.9;
    }
    35% {
        transform: rotate(10deg);
        opacity: 0.8;
    }
    50% {
        transform: rotate(0deg);
        opacity: 0.7;
    }
    65% {
        transform: rotate(-10deg);
        opacity: 0.8;
    }
    75% {
        transform: rotate(-15deg);
        opacity: 0.9;
    }
    85% {
        transform: rotate(-10deg);
        opacity: 0.8;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('images/salon2.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(26, 26, 26, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    animation: fadeInUp 1s ease 0.4s backwards;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(124, 92, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

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

.fade-in {
    animation: fadeInUp 1s ease;
}

.fade-in-delay {
    animation: fadeInUp 1s ease 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: expandWidth 1s ease forwards;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

/* Services Section */
.services {
    background: var(--light-bg);
}

/* Tarifs Grid */
.tarifs-grid {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tarif-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.tarif-item:last-child {
    border-bottom: none;
}

.tarif-item:hover {
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.05), transparent);
    padding-left: 10px;
}

.tarif-name {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1.1rem;
    white-space: nowrap;
}

.tarif-dots {
    flex: 1;
    border-bottom: 2px dotted #ddd;
    margin: 0 15px;
    min-width: 30px;
}

.tarif-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(124, 92, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 92, 255, 0.2);
    border: 2px solid rgba(124, 92, 255, 0.2);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.service-icon i {
    display: inline-block;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    text-align: left;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    gap: 10px;
}

.service-list li span {
    flex: 1;
    white-space: nowrap;
}

.service-list li strong {
    color: var(--primary-color);
    font-weight: 700;
}

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

.service-list li::before {
    content: none;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Reservation Section */
.reservation {
    background: var(--light-bg);
}

.reservation-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.reservation-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.calendar-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.calendar-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

#calendar {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(360deg) scale(1.1);
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    display: block;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section h3 i {
    color: var(--primary-color);
    animation: scissorsCut 2s ease-in-out infinite;
    transform-origin: center;
    display: inline-block;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Calendrier Amélioré */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

.calendar-header h4 {
    color: var(--white);
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-name {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

.calendar-day {
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: #f5f5f5;
    font-weight: 500;
    position: relative;
}

.calendar-day:not(.disabled):hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.calendar-day.today {
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.calendar-day.selected {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(26, 26, 26, 0.3);
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

.calendar-day.has-bookings::after {
    content: '•';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

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

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

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

    .calendar-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .service-card,
    .calendar-container {
        padding: 25px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }
}

/* Advanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Smooth scroll animations */
.service-card,
.gallery-item,
.info-item,
.contact-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation: slideInLeft 0.8s ease forwards; animation-delay: 0.1s; }
.service-card:nth-child(2) { animation: zoomIn 0.8s ease forwards; animation-delay: 0.2s; }
.service-card:nth-child(3) { animation: slideInRight 0.8s ease forwards; animation-delay: 0.3s; }

.gallery-item:nth-child(1) { animation: zoomIn 0.6s ease forwards; animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation: zoomIn 0.6s ease forwards; animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation: zoomIn 0.6s ease forwards; animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation: zoomIn 0.6s ease forwards; animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation: zoomIn 0.6s ease forwards; animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation: zoomIn 0.6s ease forwards; animation-delay: 0.6s; }

.info-item:nth-child(1) { animation: slideInLeft 0.8s ease forwards; animation-delay: 0.1s; }
.info-item:nth-child(2) { animation: slideInLeft 0.8s ease forwards; animation-delay: 0.2s; }
.info-item:nth-child(3) { animation: slideInLeft 0.8s ease forwards; animation-delay: 0.3s; }

.contact-item:nth-child(1) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.4s; }

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}
