/* ============================================================
   STN - Page d'accueil
   ============================================================ */
.stn-about-wrapper {
    --primary-blue: #1E5A96;
    --dark-blue: #1A3A52;
    --light-blue: #4A8BC2;
    --accent-gray: #F5F7FA;
    --light-bg: #F8FAFB;
    --blue-tint: #EBF4FB;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    padding: 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.stn-about-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Section Backgrounds */
.stn-section-wrapper {
    position: relative;
    padding: 80px 20px;
}

.stn-section-white {
    background: white;
}

.stn-section-gray {
    background: var(--light-bg);
}

.stn-section-blue {
    background: var(--blue-tint);
}

.stn-section-blue.stn-projects-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/stnbg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.stn-section-blue.stn-projects-bg .stn-section-label {
    color: #D4AF37;
}

.stn-section-blue.stn-projects-bg .stn-section-label::before {
    background: #D4AF37;
}

.stn-section-blue.stn-projects-bg .stn-section-title {
    color: white;
}

.stn-section-blue.stn-projects-bg .stn-section-text {
    color: rgba(255, 255, 255, 0.9);
}

.stn-section-blue.stn-projects-bg .stn-section-text strong {
    color: white;
    font-weight: 700;
}

.stn-section-gradient {
    background: linear-gradient(135deg, #1E5A96 0%, #4A8BC2 100%);
    position: relative;
}

.stn-section-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 90, 150, 0.95) 0%, rgba(74, 139, 194, 0.95) 100%);
    z-index: 0;
}

.stn-section-gradient .stn-container {
    position: relative;
    z-index: 1;
}

.stn-section-gradient .stn-section-label,
.stn-section-gradient .stn-section-title,
.stn-section-gradient .stn-equipment-subtitle {
    color: white;
}

.stn-section-gradient .stn-section-label::before {
    background: white;
}

/* Wave Separator */
.stn-wave-separator {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: -5px 0;
    padding: 0;
    display: block;
}

.stn-wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    background: #ebf4fb;
    margin: 0;
    padding: 0;
    transform: scaleY(-1);
}

.stn-wave-white {
    fill: white;
}

.stn-wave-gray {
    fill: var(--light-bg);
}

.stn-wave-blue {
    fill: var(--blue-tint);
}

.stn-wave-gradient {
    fill: #1E5A96;
}

/* Diagonal Separator */
.stn-diagonal-separator {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.stn-diagonal-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: skewY(-2deg);
    transform-origin: top left;
}

/* Decorative Background Elements */
.stn-section-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.stn-section-wrapper::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    opacity: 0.02;
    border-radius: 50%;
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 20px) rotate(3deg); }
}

/* Container */
.stn-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Section */
.stn-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
    position: relative;
    z-index: 1;
}

.stn-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(30, 90, 150, 0.3);
}

.stn-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.stn-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Section with Image */
.stn-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stn-content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.stn-content-section.reverse {
    direction: rtl;
}

.stn-content-section.reverse > * {
    direction: ltr;
}

/* Text Content */
.stn-text-content {
    padding: 20px 0;
}

.stn-section-label {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.stn-section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--primary-blue);
}

.stn-section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 25px;
    line-height: 1.3;
}

.stn-section-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.stn-section-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Image Content */
.stn-image-content {
    position: relative;
}

.stn-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.stn-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.stn-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 90, 150, 0.1), rgba(26, 58, 82, 0.1));
    z-index: 1;
    transition: all 0.5s ease;
}

.stn-image-wrapper:hover::before {
    opacity: 0;
}

.stn-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Decorative Corner */
.stn-image-decorator {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary-blue);
    border-radius: 20px;
    z-index: -1;
}

/* Stats Section */
.stn-stats-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 25px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(30, 90, 150, 0.3);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stn-stats-section.visible {
    opacity: 1;
    transform: scale(1);
}

.stn-stats-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stn-stats-section:hover::before {
    opacity: 1;
}

.stn-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.stn-stat-item {
    text-align: center;
    color: white;
    position: relative;
}

.stn-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.stn-stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stn-stat-label {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

/* Equipment Section */
.stn-equipment-section {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stn-equipment-header {
    text-align: center;
    margin-bottom: 50px;
}

.stn-equipment-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 700px;
    margin: 15px auto 0;
    line-height: 1.6;
}

.stn-equipment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.stn-equipment-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.stn-equipment-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stn-equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stn-equipment-card:hover::before {
    transform: scaleX(1);
}

.stn-equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stn-equipment-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-blue);
    transition: all 0.4s ease;
}

.stn-equipment-card:hover .stn-equipment-icon {
    transform: scale(1.1);
    color: var(--light-blue);
}

.stn-equipment-icon svg {
    width: 100%;
    height: 100%;
}

.stn-equipment-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stn-equipment-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.stn-equipment-details {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Features Section */
.stn-features-section {
    position: relative;
    z-index: 1;
}

.stn-features-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 50px;
}

.stn-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stn-feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.stn-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stn-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stn-feature-card:hover::before {
    transform: scaleX(1);
}

.stn-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stn-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(30, 90, 150, 0.2);
    transition: all 0.4s ease;
}

.stn-feature-card:hover .stn-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.stn-feature-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.stn-feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.stn-feature-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .stn-content-section {
        gap: 40px;
    }

    .stn-equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stn-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stn-stats-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .stn-about-wrapper {
        padding: 60px 0 0;
    }

    /* Nos Réalisations : plein écran, sans bandes ni contour */
    .stn-section-blue.stn-projects-bg {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-attachment: scroll;
    }

    .stn-section-blue.stn-projects-bg .stn-container {
        width: 100%;
    }

    .stn-content-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .stn-content-section.reverse {
        direction: ltr;
    }

    .stn-image {
        height: 300px;
    }

    .stn-stats-section {
        padding: 40px 30px;
    }

    .stn-stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stn-stat-item:not(:last-child)::after {
        display: none;
    }

    .stn-equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stn-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stn-feature-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .stn-title {
        font-size: 28px;
    }

    .stn-subtitle {
        font-size: 16px;
    }

    .stn-section-title {
        font-size: 24px;
    }

    .stn-stat-number {
        font-size: 36px;
    }

    .stn-equipment-grid {
        grid-template-columns: 1fr;
    }

    .stn-equipment-number {
        font-size: 36px;
    }

    .stn-features-grid {
        grid-template-columns: 1fr;
    }

    .stn-companies-grid {
        grid-template-columns: 1fr;
    }

    .stn-projects-section {
        grid-template-columns: 1fr;
    }
}

/* Companies Section */
.stn-companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stn-company-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 2px solid transparent;
}

.stn-company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stn-company-card:hover::before {
    transform: scaleX(1);
}

.stn-company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.stn-company-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--light-bg);
    transition: all 0.4s ease;
}

.stn-company-card:hover .stn-company-logo {
    transform: scale(1.05);
}

.stn-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stn-logo-placeholder {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
}

.stn-logo-text {
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.stn-company-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.stn-company-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.stn-company-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Projects Section */
.stn-projects-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stn-projects-content {
    padding: 20px 0;
}

.stn-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
}

.stn-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    gap: 16px;
}

.stn-cta-button svg {
    transition: transform 0.3s ease;
}

.stn-cta-button:hover svg {
    transform: translateX(5px);
}

.stn-projects-map {
    position: relative;
}

.stn-map-container {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.stn-africa-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(30, 90, 150, 0.2));
}

.stn-country-highlight {
    filter: drop-shadow(0 0 10px rgba(30, 90, 150, 0.5));
}

.stn-project-marker {
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.stn-map-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 90, 150, 0.3);
    text-align: center;
}

.stn-map-badge-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stn-map-badge-text {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

/* Responsive pour nouvelles sections */
@media (max-width: 1024px) {
    .stn-companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stn-projects-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .stn-companies-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stn-company-card {
        padding: 30px 25px;
    }

    .stn-map-container {
        padding: 0px;
    }

    .stn-map-badge {
        top: 15px;
        right: 15px;
        padding: 15px 20px;
    }

    .stn-map-badge-number {
        font-size: 24px;
    }
}
