/* ===========================
   CLOUD-DEDIE.CSS - Page Cloud Dédié
   Hero, Comparaison, Architecture, Avantages
   =========================== */

/* ===========================
   Hero Section - Override solution styles
   =========================== */
.cloud-dedie-page .solution-hero-premium h1 s {
    text-decoration: line-through;
    text-decoration-color: #dc3545;
    text-decoration-thickness: 3px;
}

.cloud-hero-logo {
    width: 550px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 102, 204, 0.3));
}

.cloud-dedie-page .solution-hero-image-premium {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Boutons secondaires */
.hero-secondary-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-secondary-buttons .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logo {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Bouton Danger SAAS */
.cloud-dedie-page .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.cloud-dedie-page .btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

/* Animation alternée */
.btn-shake-1 {
    animation: shake-alt 2s ease-in-out infinite;
}

.btn-shake-2 {
    animation: shake-alt 2s ease-in-out infinite 1s;
}

.btn-shake-1:hover,
.btn-shake-2:hover {
    animation: none;
}

@keyframes shake-alt {
    0%, 40%, 100% { transform: translateX(0) rotate(0); }
    5% { transform: translateX(-3px) rotate(-2deg); }
    10% { transform: translateX(3px) rotate(2deg); }
    15% { transform: translateX(-3px) rotate(-2deg); }
    20% { transform: translateX(3px) rotate(2deg); }
    25% { transform: translateX(0) rotate(0); }
}

/* ===========================
   Modal Disclaimer SAAS
   =========================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 2.5rem;
    color: #dc3545;
    animation: shake-icon 0.5s ease-in-out infinite;
}

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

.modal-content h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.modal-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

/* ===========================
   Sections générales
   =========================== */
.section-why {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.section-architecture,
.section-benefits {
    padding: 80px 0;
}

.section-architecture {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Layout section-why : gauche/droite */
.section-why-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.section-why-left h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-why-left p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Tableau comparatif */
.comparison-table-wrapper {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    /* Scrollbar élégante */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 102, 204, 0.3) transparent;
}

/* Webkit (Chrome, Safari, Edge) */
.comparison-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 204, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 204, 0.5);
}

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

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table thead th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.comparison-table thead th i {
    margin-right: 0.5rem;
}

.comparison-table tbody td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.comparison-table .col-bad {
    color: #dc3545;
}

.comparison-table .col-good {
    color: #28a745;
}

.comparison-table .col-bad i,
.comparison-table .col-good i {
    margin-right: 0.4rem;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

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

.cta-full {
    margin-top: 0;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================
   Comparaison SaaS vs Cloud Dédié
   =========================== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.comparison-header i {
    font-size: 1.75rem;
}

.comparison-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.comparison-bad .comparison-header {
    border-bottom-color: #dc3545;
}

.comparison-bad .comparison-header i {
    color: #dc3545;
}

.comparison-good .comparison-header {
    border-bottom-color: var(--primary-color);
}

.comparison-good .comparison-header i {
    color: var(--primary-color);
}

/* CTA inline après comparaison */
.cta-inline {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 12px;
    color: white;
}

.cta-inline h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-inline p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-inline .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-inline .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-inline .btn-secondary {
    border-color: white;
    color: white;
}

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

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.comparison-card ul li:last-child {
    border-bottom: none;
}

.comparison-card ul li i {
    flex-shrink: 0;
    margin-top: 3px;
}

.comparison-bad ul li i {
    color: #dc3545;
}

.comparison-good ul li i {
    color: #28a745;
}

/* ===========================
   Piliers Architecture
   =========================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pillar-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 50%;
}

.pillar-icon i {
    font-size: 2rem;
    color: white;
}

.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   Avantages concrets
   =========================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.benefit-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 10px;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: white;
}

.benefit-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   CTA Section
   =========================== */
.cloud-dedie-page .cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.cloud-dedie-page .cta-content {
    text-align: center;
}

.cloud-dedie-page .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cloud-dedie-page .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cloud-dedie-page .cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cloud-dedie-page .cta-section .btn-primary:hover {
    background-color: var(--bg-light);
}

.cloud-dedie-page .cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cloud-dedie-page .cta-section .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 992px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cloud-dedie-page .hero h1 {
        font-size: 2.25rem;
    }

    .cloud-dedie-page .hero-subtitle {
        font-size: 1.15rem;
    }

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

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

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

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

    .cloud-dedie-page .cta-content h2 {
        font-size: 1.75rem;
    }
}
