/**
 * TARIFS PAGE - Modern UI/UX Design
 * Clean, professional pricing page with carousel, pricing card, and comparison table
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   BASE STYLES - TARIFS PAGE
   ============================================ */

.page-tarifs {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

.page-tarifs h1,
.page-tarifs h2,
.page-tarifs h3 {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   CAROUSEL SECTION - Pack Signatures
   ============================================ */

.carousel-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Illustration placeholders */
.carousel-illustration {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.9;
}

.carousel-illustration.left {
    animation: float-left 4s ease-in-out infinite;
}

.carousel-illustration.right {
    animation: float-right 4s ease-in-out infinite;
}

@keyframes float-left {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }
}

@keyframes float-right {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }
}

/* Main carousel content */
.carousel-main {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    position: relative;
}

.carousel-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}

.carousel-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.carousel-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0 0 1.5rem;
    font-weight: 400;
}

.carousel-cta {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.carousel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Carousel dots */
.carousel-dots-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot-btn.active {
    background: #fff;
    transform: scale(1.2);
}

/* ============================================
   TARIFS HEADER SECTION
   ============================================ */

.tarifs-header-section {
    background: #fff;
    padding: 3rem 1rem 2rem;
    text-align: center;
}

.tarifs-header-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.tarifs-header-section .subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
}

/* ============================================
   PRICING GRID - Cards Side by Side
   ============================================ */

.pricing-grid-section {
    background: #f9fafb;
    padding: 3rem 1rem 4rem;
}

.pricing-grid-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

/* Pricing Card */
.pricing-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: relative;
}

.pricing-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pricing-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-card-price .amount {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.pricing-card-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.pricing-card-price .period {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

.pricing-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Features List */
.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

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

.pricing-features-list .icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.pricing-features-list .icon.check {
    color: #10b981;
}

.pricing-features-list .icon.cross {
    color: #ef4444;
}

/* CTA Button */
.pricing-cta-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pricing-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

/* ============================================
   COMPARISON TABLE - Modern Design
   ============================================ */

.comparison-table-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.comparison-table-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead th {
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.comparison-table tbody tr:hover {
    background: #f3f4f6;
}

.comparison-table tbody td {
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.comparison-table tbody td:first-child {
    font-weight: 500;
}

.comparison-table tbody td:not(:first-child) {
    text-align: center;
}

/* Check/Cross icons */
.table-icon {
    font-size: 1.1rem;
}

.table-icon.check {
    color: #10b981;
}

.table-icon.cross {
    color: #ef4444;
}

.table-icon.partial {
    color: #f59e0b;
}

/* Comparison CTA */
.comparison-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    padding: 0.9rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1.25rem;
    transition: all 0.3s ease;
}

.comparison-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section-modern {
    background: #fff;
    padding: 3rem 1rem 4rem;
}

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

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.faq-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.faq-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-answer {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {
    .pricing-grid-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .carousel-illustration {
        display: none;
    }

    .carousel-main {
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .carousel-section {
        padding: 2rem 1rem;
    }

    .carousel-main {
        padding: 1.5rem;
    }

    .carousel-title {
        font-size: 1.25rem;
    }

    .tarifs-header-section h1 {
        font-size: 1.75rem;
    }

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

    .comparison-table {
        font-size: 0.85rem;
    }
}

/* ============================================
   GRILLE 4 COLONNES - Nouvelle disposition
   ============================================ */

.pricing-four-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   LIGNE DEVIS - Pleine largeur
   ============================================ */

.pricing-devis-row {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.pricing-card-devis {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    padding: 2rem 2.5rem;
}

.pricing-devis-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Ligne supérieure : Icône + Info + Prix + Features */
.pricing-devis-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-devis-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pricing-devis-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pricing-devis-info h3 {
    margin: 0 0 0.25rem;
    text-align: left;
    font-size: 1.25rem;
}

.pricing-devis-info p {
    margin: 0;
    text-align: left;
}

.pricing-devis-center {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-devis-price {
    text-align: center;
}

.pricing-devis-price .amount-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e1b4b;
    display: block;
}

.pricing-devis-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4F46E5;
    display: block;
    margin-top: 0.25rem;
}

.pricing-devis-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pricing-devis-features li {
    font-size: 0.85rem;
    color: #374151;
    white-space: nowrap;
}

/* Bouton parfaitement centré */
.pricing-devis-cta-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 0.5rem;
}

.pricing-devis-content .pricing-cta-button {
    width: auto;
    padding: 1rem 3rem;
    white-space: nowrap;
}

/* Cartes compactes pour la grille 4 colonnes */
.pricing-card-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.25rem;
    text-align: center;
}

.pricing-card-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 1rem;
    text-align: center;
}

.pricing-card-price-large {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.pricing-card-price-large .amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
}

.pricing-card-price-large .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.pricing-card-price-large .amount-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.pricing-card-period {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
    text-align: center;
}

.pricing-savings {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    margin: 0 0 1rem;
    text-align: center;
}

/* Features compactes */
.pricing-features-compact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.pricing-features-compact li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-features-compact li:last-child {
    border-bottom: none;
}

/* Carte populaire (Pack 10) */
.pricing-card-popular {
    border: 2px solid #10b981;
    transform: scale(1.02);
    position: relative;
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Carte entreprise */
.pricing-card-enterprise {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

/* Variantes CTA */
.pricing-cta-green {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.pricing-cta-dark {
    background: linear-gradient(135deg, #1e1b4b, #312e81) !important;
}

/* ============================================
   TABLEAU COMPARATIF - Pleine largeur
   ============================================ */

.comparison-section-full {
    background: #fff;
    padding: 3rem 1rem 4rem;
    margin-top: 2rem;
}

.comparison-table-wrapper-full {
    max-width: 1300px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* ============================================
   RESPONSIVE - Grille 4 colonnes
   ============================================ */

@media (max-width: 1200px) {
    .pricing-four-columns {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }

    .pricing-card-popular {
        transform: scale(1);
    }

    .pricing-devis-row {
        max-width: 900px;
    }

    .pricing-devis-top {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .pricing-devis-left {
        justify-content: center;
    }

    .pricing-devis-center {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .pricing-devis-features {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .pricing-four-columns {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .pricing-popular-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .pricing-devis-row {
        max-width: 450px;
    }

    .pricing-devis-left {
        flex-direction: column;
        text-align: center;
    }

    .pricing-devis-icon {
        margin: 0 auto;
    }

    .pricing-devis-info h3,
    .pricing-devis-info p {
        text-align: center;
    }

    .pricing-devis-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .pricing-devis-features li {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .comparison-section-full {
        padding: 2rem 0.5rem 3rem;
    }

    .comparison-table-wrapper-full {
        padding: 1.25rem;
        border-radius: 12px;
    }
}