/* =============================================
   CSS pour Edition Logicielle et IA
   ============================================= */

:root {
    --primary-blue: #0A192F;
    --accent-blue: #1E3A8A;
    --primary-red: #D32F2F;
    --light-bg: #F4F5F8;
    --text-dark: #333333;
    --text-gray: #666666;

    /* Couleurs thématiques */
    --color-purple: #8B5CF6;
    --color-purple-light: #F5F3FF;
    --color-red: #EF4444;
    --color-red-light: #FEF2F2;
    --color-blue: #3B82F6;
    --color-blue-light: #EFF6FF;
    --color-green: #10B981;
    --color-green-light: #ECFDF5;

    --border-color: #E5E7EB;
}

body {
    background-color: #ffffff;
}

/* =============================================
   HERO SECTION - Edition logicielle & IA
   ============================================= */

.edition-hero {
    background-image: url("../assets/images/covertur-education-ai.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 16% center;
}

.edition-hero .hero-overlay {
    width: 55%;
}

.edition-hero .text-accent {
    color: #e21e26;
}

.edition-hero .hero-text-content {
    background: transparent;
}

/* Breadcrumb */
.hero-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.hero-breadcrumb a {
    color: #e21e26;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.hero-breadcrumb .sep {
    margin: 0 6px;
    color: #999;
}

.hero-breadcrumb .current {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ==================== RESPONSIVE HERO ==================== */

@media (max-width: 768px) {
    .edition-hero .hero-overlay {
        width: 100%;
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.85) 60%,
                rgba(255, 255, 255, 0.3) 100%);
    }

    .edition-hero .hero-text-content {
        padding: 20px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
    }
}

/* =============================================
   SHARED SECTION STYLING
   ============================================= */

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 12px auto 0;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   TENDSAI EN BREF
   ============================================= */

.tendsai-bref {
    padding: 70px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.bref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bref-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.icon-circle.purple {
    background-color: var(--color-purple-light);
    color: var(--color-purple);
}

.icon-circle.red {
    background-color: var(--color-red-light);
    color: var(--color-red);
}

.icon-circle.blue {
    background-color: var(--color-blue-light);
    color: var(--color-blue);
}

.icon-circle.green {
    background-color: var(--color-green-light);
    color: var(--color-green);
}

.bref-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.bref-card h3.red-text {
    color: var(--primary-red);
}

.bref-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   CAS D'USAGE
   ============================================= */

.cas-usage {
    padding: 70px 0;
    background-color: var(--light-bg);
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.usage-card {
    background: #ffffff;
    padding: 28px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.usage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.usage-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.usage-card .icon.purple {
    color: var(--color-purple);
}

.usage-card .icon.red {
    color: var(--color-red);
}

.usage-card .icon.green {
    color: var(--color-green);
}

.usage-card h3 {
    font-size: 1.05rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.usage-card p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.usage-card .link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.usage-card .link:hover {
    gap: 10px;
    text-decoration: none;
}

.usage-card .link.purple {
    color: var(--color-purple);
}

.usage-card .link.red {
    color: var(--color-red);
}

.usage-card .link.green {
    color: var(--color-green);
}

/* =============================================
   ARCHITECTURE & INDUSTRIALISATION
   ============================================= */

.architecture {
    padding: 80px 0;
    background-color: #ffffff;
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arch-step {
    flex: 1;
    text-align: center;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.arch-step:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.arch-step.highlight-red {
    background-color: var(--color-red-light);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 24px 14px;
}

.arch-step .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.arch-step .icon.blue {
    color: var(--primary-blue);
}

.arch-step .icon.red {
    color: var(--primary-red);
}

.arch-step h3 {
    font-size: 0.95rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.arch-step h3.red-text {
    color: var(--primary-red);
}

.arch-step p {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 45px;
}

.arch-step .sub-feature {
    font-size: 0.78rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.arch-flow .arrow {
    color: #CBD5E1;
    font-size: 1.2rem;
    flex-shrink: 0;
    padding: 0 4px;
}

/* =============================================
   POURQUOI C'EST DIFFERENCIANT
   ============================================= */

.differenciant {
    padding: 70px 0;
    background-color: var(--light-bg);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.diff-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    padding: 30px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.diff-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.diff-item .icon-circle {
    margin-bottom: 18px;
}

.diff-item h3 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.diff-item p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* =============================================
   CTA BANNER
   ============================================= */

.cta-banner {
    padding: 40px 0;
    background-color: var(--primary-blue);
    background-image: url('../assets/images/soc-cyber.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-text h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

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

.btn-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE - TABLETTE
   ============================================= */

@media (max-width: 1024px) {
    .bref-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arch-flow {
        flex-direction: column;
        gap: 20px;
    }

    .arch-flow .arrow {
        transform: rotate(90deg);
    }

    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-left {
        flex-direction: column;
    }

    .cta-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .bref-grid,
    .usage-grid,
    .diff-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
}