/**
 * CSS Theros Showcase - Conforme aux maquettes
 * Design fidèle aux captures d'écran fournies
 */

/* ===== VARIABLES ET BASE ===== */
:root {
    --theros-primary: #00b4d8;
    --theros-secondary: #0077b6;
    --theros-dark: #023047;
    --theros-light: #caf0f8;
    --theros-text: #333333;
    --theros-gray: #666666;
    --theros-border: #e0e0e0;
    --theros-bg-light: #f8f9fa;
    --theros-shadow: 0 4px 20px rgba(0, 180, 216, 0.15);
    --theros-shadow-hover: 0 8px 30px rgba(0, 180, 216, 0.25);
}

.theros-showcase-page {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--theros-text);
    overflow-x: hidden;
}

/* ===== BANNIÈRE HERO ===== */
.theros-hero-banner {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--theros-secondary) 0%, var(--theros-primary) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 48, 71, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-primary {
    background: var(--theros-primary);
    color: white;
    border: 2px solid var(--theros-primary);
}

.btn-primary:hover {
    background: white;
    color: var(--theros-primary);
    text-decoration: none;
}

.hero-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-outline:hover {
    background: white;
    color: var(--theros-primary);
    text-decoration: none;
}

/* ===== SECTION SOLUTIONS ===== */
.theros-solutions-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--theros-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--theros-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.solution-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--theros-border);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--theros-shadow-hover);
    border-color: var(--theros-primary);
}

.solution-icon {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.solution-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-icon img {
    transform: scale(1.1);
}

.solution-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--theros-dark);
    margin: 25px 20px 15px;
    line-height: 1.3;
}

.solution-description {
    color: var(--theros-gray);
    font-size: 0.95rem;
    margin: 0 20px 20px;
    line-height: 1.5;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theros-primary);
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px 25px;
    transition: all 0.3s ease;
}

.solution-link:hover {
    color: var(--theros-secondary);
    text-decoration: none;
    transform: translateX(5px);
}

/* ===== BLOCS CONFIGURABLES ===== */
.theros-bloc-section {
    padding: 100px 0;
    position: relative;
}

.theros-bloc-section:nth-child(even) {
    background: var(--theros-bg-light);
}

.bloc-content {
    padding: 40px 0;
}

.bloc-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theros-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.bloc-description {
    font-size: 1.1rem;
    color: var(--theros-gray);
    margin-bottom: 35px;
    line-height: 1.6;
}

.bloc-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--theros-primary);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bloc-btn:hover {
    background: var(--theros-secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--theros-shadow);
}

.bloc-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--theros-shadow);
}

.bloc-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.bloc-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.bloc-image-container:hover .bloc-image img {
    transform: scale(1.05);
}

/* ===== CONFIGURATION GÉNÉRALE CATÉGORIE ===== */
.category-brand {
    margin-bottom: 20px;
}

.category-main-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--theros-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-description {
    font-size: 1rem;
    color: var(--theros-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

/* ===== BADGES STATISTIQUES SUR IMAGES ===== */
.category-stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    z-index: 10;
}

.stat-text-left {
    background: rgba(255, 255, 255, 0.95);
    color: var(--theros-dark);
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 200px;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-badges-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.stat-badge {
    background: rgba(2, 48, 71, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Styles spécifiques pour les badges avec images de fond */
.stat-badge[style*="background-image"] {
    background-blend-mode: overlay;
    background-color: rgba(2, 48, 71, 0.85); /* Overlay sombre pour lisibilité */
}

.stat-badge[style*="background-image"] .stat-number,
.stat-badge[style*="background-image"] .stat-text {
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.stat-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(0, 180, 216, 0.95);
}

.stat-badge[style*="background-image"]:hover {
    background-color: rgba(0, 180, 216, 0.85);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--theros-primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-badge:hover .stat-number {
    color: white;
}

.stat-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== RESPONSIVE BADGES ===== */
@media (max-width: 768px) {
    .category-stats-overlay {
        position: static;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        padding: 20px 0;
    }
    
    .stat-text-left {
        max-width: 100%;
        order: 1;
    }
    
    .stat-badges-right {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        order: 2;
    }
    
    .stat-badge {
        min-width: 150px;
        padding: 12px 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .stat-badges-right {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-badge {
        min-width: 180px;
    }
    
    .stat-text-left {
        font-size: 1rem;
        padding: 15px;
    }
}

/* ===== SECTION CONTACT ===== */
.theros-contact-section {
    padding: 100px 0;
    background: var(--theros-dark);
    color: white;
}

.theros-contact-section .section-title {
    color: white;
}

.theros-contact-section .section-subtitle {
    color: var(--theros-light);
}

.contact-info {
    padding: 20px 0;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--theros-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: white;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--theros-primary);
    width: 20px;
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact-cta .btn {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--theros-primary);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-cta .btn:hover {
    background: white;
    color: var(--theros-primary);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,180,216,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .bloc-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .bloc-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .theros-bloc-section {
        padding: 60px 0;
    }
    
    .bloc-content {
        padding: 20px 0;
        text-align: center;
    }
    
    .solution-card {
        margin-bottom: 30px;
    }
    
    .theros-solutions-section,
    .theros-contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .theros-hero-banner {
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .bloc-title {
        font-size: 1.6rem;
    }
    
    .hero-btn,
    .bloc-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .contact-cta .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* ===== SECTION SERVICES CLÉ EN MAIN ===== */
.services-section {
    padding: 80px 0;
    background: var(--theros-bg-light);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theros-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 1.1rem;
    color: var(--theros-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.services-grid {
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--theros-shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid var(--theros-border);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--theros-shadow-hover);
    border-color: var(--theros-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--theros-primary) 0%, var(--theros-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.service-icon img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    color: var(--theros-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-description {
    color: var(--theros-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theros-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    color: var(--theros-secondary);
    text-decoration: none;
    transform: translateX(5px);
}

/* ===== SECTION CONTACT MAQUETTE ===== */
.theros-contact-section {
    padding: 80px 0;
    background: white;
}

.contact-form-container {
    background: var(--theros-bg-light);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.form-title {
    color: var(--theros-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    border: 1px solid var(--theros-border);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contact-form .form-control:focus {
    border-color: var(--theros-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
    outline: none;
}

.btn-contact {
    background: linear-gradient(135deg, var(--theros-primary) 0%, var(--theros-secondary) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--theros-shadow-hover);
    color: white;
}

.btn-contact i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-contact:hover i {
    transform: translateX(5px);
}

.contact-details {
    padding: 20px;
}

.details-title {
    color: var(--theros-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.details-intro {
    color: var(--theros-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-info-grid {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--theros-primary) 0%, var(--theros-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 20px;
}

.contact-text h4 {
    color: var(--theros-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text span {
    color: var(--theros-gray);
    font-size: 1rem;
}

.social-links h4 {
    color: var(--theros-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theros-showcase-page section > .container > * {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== CLASSES UTILITAIRES ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== ALIGNEMENT DES IMAGES (ALTERNANCE) ===== */
.bloc-1 .row,
.bloc-3 .row {
    align-items: center;
}

.bloc-2 .row {
    align-items: center;
}

/* Pour mobile : ordre standardisé */
@media (max-width: 768px) {
    .bloc-1 .col-lg-6:first-child,
    .bloc-2 .col-lg-6:first-child,
    .bloc-3 .col-lg-6:first-child {
        order: 1;
    }
    
    .bloc-1 .col-lg-6:last-child,
    .bloc-2 .col-lg-6:last-child,
    .bloc-3 .col-lg-6:last-child {
        order: 2;
        margin-top: 30px;
    }
    
    /* Services responsive */
    .services-section {
        padding: 60px 0;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .services-title {
        font-size: 2rem;
    }

    .services-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
        margin-bottom: 20px;
    }

    .service-icon img {
        max-width: 35px;
        max-height: 35px;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.95rem;
    }
    
    /* Contact responsive */
    .theros-contact-section {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .contact-details {
        padding: 10px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* ===== NOUVEAUX ÉLÉMENTS ===== */

/* Logo Theros */
.theros-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.theros-logo {
    max-height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .theros-logo {
        max-height: 60px;
    }
}

/* Icône spéciale et texte commun */
.special-icon {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.special-icon .icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-right: 12px;
}

.common-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
    line-height: 1.4;
}

.bloc-specific-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

/* Améliorations pour l'affichage avec images de fond */
.stat-text-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .special-icon .icon-img {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .common-text {
        font-size: 12px;
    }
    
    .bloc-specific-text {
        font-size: 11px;
    }
}