/**
 * BETOE Audits Consulting - Styles supplémentaires
 * Formulaires, animations, effets spéciaux
 */

/* ========================================
   FORMULAIRES AVANCÉS
   ======================================== */

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group label .form-required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

input[type="text"].error,
input[type="email"].error,
textarea.error,
select.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

.form-check label {
    margin-bottom: 0;
    margin-left: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ========================================
   CARTES AMÉLIORÉES
   ======================================== */

.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5490, #f39c12);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: #1a5490;
}

/* ========================================
   TEMOIGNAGES
   ======================================== */

.testimonial {
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #1a5490;
    margin: 2rem 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    font-weight: 600;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background: linear-gradient(135deg, #1a5490, #f39c12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.testimonial-quote {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-carousel {
    position: relative;
    padding: 2rem 0;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav button {
    background: #1a5490;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.testimonial-nav button:hover {
    background: #f39c12;
    transform: scale(1.1);
}

/* ========================================
   ACCORDIONS
   ======================================== */

.accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: #f8f9fa;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1a5490;
}

.accordion-header:hover {
    background: #e8ecf1;
}

.accordion-header.active {
    background: #1a5490;
    color: white;
}

.accordion-header::after {
    content: '▼';
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background: white;
}

.accordion-content.open {
    padding: 1.5rem;
}

/* ========================================
   BADGES & TAGS
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #1a5490, #f39c12);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.badge-warning {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    color: #666;
}

.breadcrumb-item {
    display: inline;
    padding: 0 0.5rem;
}

.breadcrumb-item::before {
    content: '/';
    margin-right: 0.5rem;
    color: #ccc;
}

.breadcrumb-item:first-child::before {
    content: '';
    margin-right: 0;
}

.breadcrumb-item a {
    color: #1a5490;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

/* ========================================
   STEPS / PROCESSUS
   ======================================== */

.steps-container {
    position: relative;
    padding: 2rem 0;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5490, #f39c12);
    z-index: 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 1rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #1a5490;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #1a5490;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px rgba(26, 84, 144, 0.2);
}

.step-title {
    font-weight: 600;
    color: #1a5490;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.9rem;
    color: #666;
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1a5490, #f39c12);
}

.timeline-item {
    margin-bottom: 3rem;
    margin-left: 100px;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -75px;
    top: 0;
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #1a5490;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.timeline-content h3 {
    margin-top: 0;
}

/* ========================================
   PRICING TABLES
   ======================================== */

.pricing-table {
    border-collapse: collapse;
    width: 100%;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pricing-table thead {
    background: linear-gradient(135deg, #1a5490, #0d2f4d);
    color: white;
}

.pricing-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(26, 84, 144, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.pricing-featured {
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    border: 2px solid #1a5490;
}

/* ========================================
   GALERIE / MASONRY
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 84, 144, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   LOADER / SPINNER
   ======================================== */

.spinner {
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1a5490;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   NOTIFICATIONS / ALERTS
   ======================================== */

.alert {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-color: #27ae60;
    color: #27ae60;
}

.alert-warning {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #3498db;
}

.alert-close {
    cursor: pointer;
    margin-left: auto;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* ========================================
   MODAL / POPUP
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
}

.modal-close {
    cursor: pointer;
    font-size: 2rem;
    color: #666;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1a5490;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   MEDIA QUERIES POUR PETITS ÉCRANS
   ======================================== */

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 2rem;
    }

    .steps-container::before {
        left: 30px;
        width: 3px;
        height: auto;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        margin-left: 60px;
    }

    .timeline-marker {
        left: -55px;
        width: 50px;
        height: 50px;
    }

    .modal-content {
        width: 95%;
    }
}