/* Partie banner  */

#banner-712 span {
    color: #fff;
}

#banner-712 span a {
    color: var(--primary);
    text-decoration: none;
}

@media only screen and (min-width: 0rem) {
    #banner-712 {
        padding: clamp(10.9375rem, 10vw, 12.5rem) 1rem 6.25rem;
        position: relative;
        z-index: 1;
    }

    #banner-712 .cs-container {
        text-align: center;
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        justify-content: center;
        /* align-items: flex-start; */
        flex-direction: column;
        gap: 1rem;
    }

    #banner-712 .cs-int-title {
        font-size: clamp(2.4375rem, 6.4vw, 3.8125rem);
        /* font-weight: 900; */
        line-height: 1.2em;
        text-align: inherit;
        margin: 0;
        color: var(--bodyTextColorWhite);
        position: relative;
    }

    #banner-712 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    #banner-712 .cs-background:before {
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #000;
        opacity: 0.75;
        top: 0;
        left: 0;
        z-index: 1;
    }

    #banner-712 .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

@media only screen and (min-width: 48rem) {
    #banner-712 .cs-background:before {
        opacity: 1;
        background: linear-gradient(
            90.01deg,
            rgba(0, 0, 0, 0.9) 16.86%,
            rgba(0, 0, 0, 0) 100%
        );
    }
}
/* Fin partie banner  */

.portfolio-main-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #334155;
}

.section-block {
    margin-top: 60px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 35px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.project-card,
.tool-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover,
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    min-height: 150px;
    aspect-ratio: 1 / 1;
}

.tool-carousel {
    height: 140px;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    justify-content: center;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.project-card:hover .carousel-btn,
.tool-card:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #2563eb;
    width: 18px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .carousel-btn {
        opacity: 1;
        pointer-events: auto;
        width: 32px;
        height: 32px;
    }
}

.seo-flex-card {
    display: flex;
    flex-wrap: wrap;

    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.seo-carousel {
    flex: 0 0 100%;
    width: 100%;
    height: 250px;
    border-bottom: 1px solid #e2e8f0;
}

.seo-flex-card:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.card-content,
.tool-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #f8fafc;
}

.project-sector {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.tag-orange {
    background: #ffedd5;
    color: #ea580c;
}

.tag-blue {
    background: #dbeafe;
    color: #2563eb;
}

.tag-green {
    background: #d1fae5;
    color: #059669;
}

.tag-dark {
    background: #f1f5f9;
    color: #334155;
}

.tag-cyan {
    background: #ecfeff;
    color: #0891b2;
}

.case-study {
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.study-item {
    margin-bottom: 10px;
}

.btn-card {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background-color: #2563eb;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s;
    border: 1px solid #e2e8f0;
}

.btn-card:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.cta-banner {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
}

.cta-banner h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cta-banner p {
    color: #64748b;
    margin-bottom: 20px;
}

.btn-banner {
    display: inline-block;
    background-color: #2563eb;
    color: #fff;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
}

.seo-flex-card {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.seo-info {
    flex: 1.3;
    padding: 40px;
    min-width: 300px;
}

.seo-description {
    margin: 12px 0 20px 0;
    color: #64748b;
}

.seo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.seo-stat-box {
    flex: 1;
    background-color: #ecfdf5;
    padding: 50px 40px;
    text-align: center;
    min-width: 280px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #065f46;
}

.tool-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tool-icon {
    font-size: 1.2rem;
}

.tool-card h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 700;
}

.tool-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-tool {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: auto;
}

.btn-tool:hover {
    text-decoration: underline;
}

.nda-box {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 24px;
    color: #92400e;
    font-size: 0.9rem;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .seo-stat-box {
        padding: 35px 20px;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

.card-action-wrapper {
    margin-top: auto;
    padding-top: 16px;
    width: 100%;
}

.btn-portfolio-universal {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    background-color: rgba(37, 99, 235, 0.08);
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-portfolio-universal:hover {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.cs-content {
    margin: 8rem 0;
}

a[rel="nofollow"] {
    text-decoration: none !important;
}
