/* ========================================
   SECTION PRICING / OFFRES - Nouveau système avec modales
   ======================================== */

.pricing-section {
    padding: 6rem 0;
    background: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Grid des cartes */
.offres-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Carte d'offre */
.offres-pricing-card {
    background-image: url('../images/bg.png'),
                      linear-gradient(180deg,
                        rgba(10, 15, 20, 0.88) 0%,
                        rgba(15, 20, 25, 0.92) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(212, 165, 116, 0.08),
                inset 0 1px 0 rgba(212, 165, 116, 0.1);
}

.offres-pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(212, 165, 116, 0.03),
        transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.offres-pricing-card:hover::before {
    opacity: 1;
}

.offres-pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 165, 116, 0.45);
    background-image: url('../images/bg.png'),
                      linear-gradient(180deg,
                        rgba(10, 15, 20, 0.82) 0%,
                        rgba(15, 20, 25, 0.88) 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(212, 165, 116, 0.15),
                inset 0 1px 0 rgba(212, 165, 116, 0.15);
}

/* Carte mise en avant */
.offres-pricing-card--featured {
    /* Même style que les autres cartes */
}

.offres-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4A574 0%, #C9A86A 100%);
    color: #0a0e14;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

/* Header de la carte */
.offres-pricing-card-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.offres-pricing-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4A574;
    margin-bottom: 1rem;
}

.offres-pricing-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.offres-price-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offres-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* Tagline */
.offres-pricing-card-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    position: relative;
    z-index: 1;
}

/* Liste de features */
.offres-pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.offres-pricing-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.offres-feature-icon {
    color: #D4A574;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Actions de la carte */
.offres-pricing-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* Bloc Maintenance */
.offres-maintenance-block {
    background-image: url('../images/bg.png'),
                      linear-gradient(180deg,
                        rgba(10, 15, 20, 0.88) 0%,
                        rgba(15, 20, 25, 0.92) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(212, 165, 116, 0.08),
                inset 0 1px 0 rgba(212, 165, 116, 0.1);
}

.offres-maintenance-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(212, 165, 116, 0.03),
        transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.offres-maintenance-block:hover::before {
    opacity: 1;
}

.offres-maintenance-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.offres-maintenance-header {
    margin-bottom: 1rem;
}

.offres-maintenance-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4A574;
    margin-bottom: 0.5rem;
}

.offres-maintenance-price {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.offres-maintenance-price strong {
    color: #ffffff;
    font-size: 1.2rem;
}

.offres-maintenance-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.offres-maintenance-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   MODALES
   ======================================== */

.pricing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.pricing-modal.is-active {
    opacity: 1;
    visibility: visible;
}

/* Overlay supprimé - le fond noir couvre tout */
.modal-overlay {
    display: none;
}

/* Container de la modale - style plein écran comme portfolio */
.modal-container {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: modalFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bouton fermer - style portfolio */
.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    color: #D4A574;
    font-size: 2rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: #D4A574;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.3);
}

/* Header de la modale - style épuré plein écran */
.modal-header {
    padding: 0 0 2rem 0;
    border-bottom: 2px solid rgba(212, 165, 116, 0.2);
    margin-bottom: 2.5rem;
    text-align: center;
}

.modal-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #D4A574;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.modal-price {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-price strong {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    display: inline-block;
    margin: 0 0.5rem;
}

/* Body de la modale */
.modal-body {
    padding: 0;
    flex: 1;
}

.modal-section {
    margin-bottom: 3rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4A574;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(212, 165, 116, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.modal-features-list li {
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.05rem;
    background: rgba(212, 165, 116, 0.03);
    border-left: 3px solid #D4A574;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-features-list li:hover {
    background: rgba(212, 165, 116, 0.08);
    transform: translateX(5px);
}

.modal-features-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: #D4A574;
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-target {
    background: rgba(212, 165, 116, 0.08);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
}

.modal-target .modal-section-title {
    color: #ffffff;
    border-bottom-color: rgba(212, 165, 116, 0.5);
}

.modal-target p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Footer de la modale */
.modal-footer {
    padding: 3rem 0 0 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    border-top: 2px solid rgba(212, 165, 116, 0.2);
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 968px) {
    .offres-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .offres-maintenance-features {
        flex-direction: column;
        align-items: center;
    }

    .modal-container {
        padding: 5rem 1.5rem 3rem;
    }

    .modal-title {
        font-size: 2.2rem;
    }

    .modal-price strong {
        font-size: 2rem;
    }

    .modal-section-title {
        font-size: 1.3rem;
    }

    .modal-features-list li {
        font-size: 1rem;
        padding-left: 2.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

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

    .offres-pricing-card {
        padding: 2rem 1.5rem;
    }

    .offres-price-amount {
        font-size: 2rem;
    }

    .modal-container {
        padding: 4rem 1rem 2rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-price {
        font-size: 1rem;
    }

    .modal-price strong {
        font-size: 1.6rem;
    }

    .modal-section-title {
        font-size: 1.1rem;
    }

    .modal-features-list li {
        font-size: 0.95rem;
        padding: 0.8rem 1rem 0.8rem 2.2rem;
    }

    .modal-features-list li::before {
        font-size: 1.1rem;
        left: 0.6rem;
    }

    .modal-target {
        padding: 1.5rem;
    }

    .modal-target p {
        font-size: 1rem;
    }
}

/* ========================================
   TIMELINE MÉTHODOLOGIE - GLASSMORPHISM
   ======================================== */

.methodology-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-step {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(212, 165, 116, 0.03);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 16px;
    padding: 2rem 2rem 2rem 6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(212, 165, 116, 0.08);
}

.timeline-step:hover {
    background: rgba(212, 165, 116, 0.06);
    border-color: rgba(212, 165, 116, 0.35);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(212, 165, 116, 0.15),
                inset 0 1px 0 rgba(212, 165, 116, 0.15);
}

.step-number {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4A574 0%, #C9A86A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a0e14;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.timeline-step:hover .step-number {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4A574;
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}

.step-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

.step-note {
    font-size: 0.95rem;
    color: #D4A574;
    font-style: italic;
    margin-top: 0.75rem;
    font-weight: 600;
}

.step-note-small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 0.75rem;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.step-list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.step-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #D4A574;
    font-size: 1.2rem;
}

/* ========================================
   CMS EXPLANATION SECTION
   ======================================== */

.cms-explanation {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(212, 165, 116, 0.04);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(212, 165, 116, 0.1);
}

.cms-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(212, 165, 116, 0.2);
}

.cms-title {
    font-size: 2rem;
    font-weight: 700;
    color: #D4A574;
    margin: 0;
    letter-spacing: -0.3px;
}

.cms-content {
    margin-bottom: 2.5rem;
}

.cms-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.cms-description:last-child {
    margin-bottom: 0;
}

.cms-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.cms-pricing-item {
    background: rgba(212, 165, 116, 0.05);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cms-pricing-item:hover {
    background: rgba(212, 165, 116, 0.08);
    border-color: rgba(212, 165, 116, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cms-pricing-item--included {
    background: rgba(212, 165, 116, 0.1);
    border: 2px solid #D4A574;
    position: relative;
}

.cms-pricing-item--included::before {
    content: "⭐ Inclus";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4A574 0%, #C9A86A 100%);
    color: #0a0e14;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cms-pricing-item h4 {
    font-size: 1.2rem;
    color: #D4A574;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.cms-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.5rem 0;
}

.cms-detail {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0.75rem 0 0 0;
}

/* ========================================
   RESPONSIVE - MÉTHODOLOGIE & CMS
   ======================================== */

@media (max-width: 968px) {
    .timeline-step {
        padding: 2rem 1.5rem 2rem 5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        left: 1.5rem;
    }

    .step-title {
        font-size: 1.15rem;
    }

    .step-description {
        font-size: 1rem;
    }

    .cms-explanation {
        padding: 2.5rem 2rem;
    }

    .cms-title {
        font-size: 1.6rem;
    }

    .cms-pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cms-pricing-item--included::before {
        top: 10px;
        right: 10px;
        left: auto;
        transform: none;
    }
}

@media (max-width: 640px) {
    .timeline-step {
        padding: 5rem 1.5rem 1.5rem 1.5rem;
    }

    .step-number {
        position: absolute;
        top: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
    }

    .timeline-step:hover .step-number {
        transform: translateX(-50%) scale(1.1);
    }

    .step-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .step-description {
        font-size: 0.95rem;
    }

    .cms-explanation {
        padding: 2rem 1.5rem;
    }

    .cms-title {
        font-size: 1.4rem;
    }

    .cms-description {
        font-size: 1rem;
    }

    .cms-price {
        font-size: 1.5rem;
    }
}
