/* Variables CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px;
    /* Pour compenser la navbar fixe */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.btn {
    border-radius: var(--border-radius);
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

/* Header */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

.hero-buttons {
    margin-top: 2rem;
}

.hero-image img {
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* Sections communes */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Services */
.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    color: var(--secondary-color);
}

.service-detail-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.service-detail-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-detail-card ul li {
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    background-color: var(--light-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* About */
.value-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.value-icon {
    color: var(--secondary-color);
}

.team-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.team-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.client-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonial-rating {
    margin-top: 1rem;
}

.testimonial-stats {
    background-color: var(--secondary-color);
}

/* Contact */
.contact-form {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.social-link {
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.map-placeholder {
    background-color: var(--light-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -8px;
    left: 0;
}

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

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--white);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

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

/* Legal */
.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.legal-section h4 {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* WhatsApp Floating Button */
.whatsapp-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}

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

/* Pulsating Effect */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-btn-container:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* WhatsApp Modal Styles - Mobile First */
.whatsapp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: flex-end;
}

.whatsapp-modal.active {
    display: flex;
}

.whatsapp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.whatsapp-modal-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.whatsapp-modal-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
}

.whatsapp-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.whatsapp-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.whatsapp-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.whatsapp-modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.whatsapp-services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.whatsapp-service-category {
    margin-top: 16px;
    margin-bottom: 8px;
}

.whatsapp-service-category:first-child {
    margin-top: 0;
}

.whatsapp-service-category h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 8px 8px 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.whatsapp-service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.whatsapp-service-option i {
    font-size: 20px;
    color: #2c5aa0;
    min-width: 20px;
}

.whatsapp-service-option:active {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a8 100%);
    border-color: #d4af37;
    color: #1a2a3a;
    transform: scale(0.98);
}

.whatsapp-service-option:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    transform: translateX(4px);
}

.whatsapp-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(212, 175, 55, 0.05);
    flex-shrink: 0;
}

.whatsapp-modal-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-modal-info i {
    color: #2c5aa0;
}

/* Tablet and Desktop - Centered Modal */
@media (min-width: 768px) {
    .whatsapp-modal {
        align-items: center;
        justify-content: center;
    }

    .whatsapp-modal-overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    .whatsapp-modal-content {
        max-width: 500px;
        border-radius: 16px;
        max-height: 80vh;
    }

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

    .whatsapp-modal-header h2 {
        font-size: 1.5rem;
    }

    .whatsapp-modal-body {
        padding: 24px;
    }

    .whatsapp-service-option {
        padding: 16px 18px;
        font-size: 1.05rem;
    }

    .whatsapp-service-option i {
        font-size: 22px;
    }

    .whatsapp-modal-header {
        padding: 24px;
    }

    .whatsapp-modal-footer {
        padding: 16px 24px;
    }
}

/* Desktop - Large Screens */
@media (min-width: 1024px) {
    .whatsapp-modal-content {
        max-width: 550px;
    }

    .whatsapp-services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .whatsapp-service-category {
        grid-column: 1 / -1;
        margin-top: 20px;
        margin-bottom: 6px;
    }

    .whatsapp-service-category:first-child {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .whatsapp-btn-container {
        bottom: 20px;
        right: 20px;
    }
}