/* =========================
   PAGE LOGICIELS
========================= */

.logiciels-page {
    background: #ffffff;
    padding-bottom: 40px;
}

/* HERO */
.logiciels-hero-section {
    padding: 28px 0 34px;
}

.logiciels-hero-section .container {
    max-width: 1180px;
}

.logiciels-hero-frame {
    background: #f7f8fa;
    border: 1px solid #e1e4e8;
    padding: 34px 38px;
}

.logiciels-hero-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    grid-template-rows: auto auto;
    grid-template-areas:
        "text image"
        "footer image";
    gap: 42px 42px;
    align-items: start;
    min-height: 360px;
}

.logiciels-hero-text {
    grid-area: text;
}

.logiciels-hero-image {
    grid-area: image;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logiciels-hero-footer {
    grid-area: footer;
    display: flex;
    align-items: center;
}

.logiciels-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #edf7ee;
    color: #2f9e44;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.logiciels-badge::before {
    content: "✦";
    font-size: 10px;
    line-height: 1;
}

.logiciels-hero-text h1 {
    font-size: 38px;
    line-height: 1.08;
    font-weight: 800;
    color: #111827;
    margin: 0 0 18px;
    letter-spacing: -0.4px;
    max-width: 520px;
}

.logiciels-hero-text h1 span {
    display: block;
    color: #39a852;
}

.logiciels-hero-text p {
    font-size: 15px;
    line-height: 1.85;
    color: #667085;
    max-width: 500px;
    margin: 0 0 24px;
}

.logiciels-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2f9e44;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.logiciels-hero-btn:hover {
    background: #25853a;
    transform: translateY(-2px);
}

.logiciels-hero-btn span {
    font-size: 15px;
}



.logiciels-hero-image-card {
    width: 100%;
    max-width: 470px;
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.10);
}

.logiciels-hero-image-card img {
    width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* SECTION */
.logiciels-section {
    padding: 0;
}

.logiciels-section .container {
    max-width: 1180px;
}

.logiciels-section-title {
    text-align: center;
    margin-bottom: 28px;
}

.logiciels-section-title h2 {
    color: #2f9e44;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
}

.logiciels-section-title p {
    color: #707782;
    font-size: 15px;
    line-height: 1.75;
    max-width: 690px;
    margin: 0 auto;
}

/* GRID */
.logiciels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 28px;
}

/* CARD */
.logiciel-card {
    background: #fff;
    border: 1px solid #8d8d8d;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
}

.logiciel-card-image-slider {
    position: relative;
    width: 100%;
    min-height: 290px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logiciel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logiciel-slide.active {
    opacity: 1;
    visibility: visible;
}

.logiciel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* ARROWS */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 42px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #6b7cff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.slider-arrow.prev {
    left: 8px;
}

.slider-arrow.next {
    right: 8px;
}

/* CONTENT */
.logiciel-card-content {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.logiciel-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.logiciel-card-top h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.logiciel-version {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    margin-top: 3px;
}

.logiciel-description {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    cursor: help;
    border-bottom: 1px dotted rgba(47, 158, 68, 0.2);
    transition: all 0.2s ease;
}

.logiciel-description:hover {
    border-bottom-color: rgba(47, 158, 68, 0.6);
}

/* Tooltip au survol affichant le texte complet */
.logiciel-description::after {
    content: attr(data-full);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #2f9e44;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.65;
    white-space: normal;
    width: 300px;
    max-width: calc(100vw - 32px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    margin-bottom: 10px;
    word-wrap: break-word;
    text-align: left;
}

/* Flèche du tooltip */
.logiciel-description::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #2f9e44;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.logiciel-description:hover::after,
.logiciel-description:hover::before {
    opacity: 1;
    visibility: visible;
}

/* POINTS */
.logiciel-points {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.logiciel-points li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: #5d6670;
    font-size: 12.5px;
    line-height: 1.55;
}

.logiciel-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2f9e44;
    font-weight: 700;
    font-size: 12px;
}

/* BUTTON */
.logiciel-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #2f9e44;
    color: #fff;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s ease;
    border: none;
    margin-top: auto;
}

.logiciel-btn:hover {
    background: #25853a;
}

.logiciel-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .logiciels-hero-frame {
        padding: 24px;
    }

    .logiciels-hero-box {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "image"
            "footer";
        gap: 28px;
        min-height: auto;
    }

    .logiciels-hero-image {
        grid-row: auto;
    }

    .logiciels-grid {
        grid-template-columns: 1fr;
    }
    
    .logiciels-section-title h2 {
        font-size: 28px;
    }
    
    .logiciels-hero-text h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .logiciels-hero-section {
        padding: 20px 0 24px;
    }
    
    .logiciels-hero-frame {
        padding: 20px;
        border-radius: 8px;
    }
    
    .logiciels-hero-text h1 {
        font-size: 26px;
        margin-bottom: 14px;
    }
    
    .logiciels-hero-text p {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .logiciels-hero-footer {
        margin-top: 12px;
    }
    
    .logiciels-section-title h2 {
        font-size: 24px;
    }
    
    .logiciel-card {
        min-height: 480px;
    }
    
    .logiciel-card-image-slider {
        min-height: 240px;
    }
    
    .logiciel-card-top h3 {
        font-size: 15px;
    }
    
    .logiciel-description {
        font-size: 12px;
    }
    
    .logiciel-points li {
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .logiciels-hero-section {
        padding: 16px 0 20px;
    }
    
    .logiciels-hero-frame {
        padding: 16px;
    }
    
    .logiciels-hero-text h1 {
        font-size: 22px;
    }
    
    .logiciels-hero-text p {
        font-size: 13px;
    }
    
    .logiciels-hero-footer {
        margin-top: 16px;
    }
    
    .logiciels-hero-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .logiciels-section-title h2 {
        font-size: 20px;
    }
    
    .logiciels-section-title p {
        font-size: 13px;
    }
    
    .logiciel-card {
        min-height: 420px;
    }
    
    .logiciel-card-image-slider {
        min-height: 200px;
    }
    
    .slider-arrow {
        width: 24px;
        height: 36px;
        font-size: 24px;
    }
    
    .logiciel-card-content {
        padding: 12px;
    }
    
    .logiciel-card-top h3 {
        font-size: 14px;
    }
    
    .logiciel-description {
        font-size: 11px;
    }
    
    .logiciel-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .logiciels-hero-section {
        padding: 20px 0 28px;
    }

    .logiciels-hero-frame {
        padding: 18px;
    }

    .logiciels-hero-text h1 {
        font-size: 30px;
    }

    .logiciels-hero-text p {
        font-size: 14px;
        line-height: 1.75;
    }

    .logiciels-hero-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .logiciels-section-title h2 {
        font-size: 26px;
    }

    .logiciels-section-title p {
        font-size: 14px;
    }

    .logiciel-card {
        min-height: auto;
    }

    .logiciel-card-image-slider {
        min-height: 230px;
    }
}

@media (max-width: 480px) {
    .logiciels-hero-text h1 {
        font-size: 26px;
    }

    .logiciels-badge {
        font-size: 10px;
        padding: 7px 12px;
    }

    .logiciel-card-image-slider {
        min-height: 190px;
    }

    .logiciel-card-top h3 {
        font-size: 15px;
    }
}
/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUpSoft {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomSoft {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* HERO animation */
.logiciels-hero-frame {
    animation: fadeUpSoft 0.9s ease both;
}

.logiciels-hero-text {
    animation: fadeUpSoft 1s ease both;
}

.logiciels-hero-image-card {
    animation: zoomSoft 1s ease both;
}

/* Reveal on scroll */
.reveal-up,
.reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.active,
.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cards hover */
.logiciel-card {
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.logiciel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.10);
    border-color: #d7d7d7;
}

/* Image zoom on hover */
.logiciel-card-image-slider {
    overflow: hidden;
}

.logiciel-slide img {
    transition: transform 0.45s ease;
}

.logiciel-card:hover .logiciel-slide.active img {
    transform: scale(1.04);
}

/* Button animation */
.logiciels-hero-btn,
.logiciel-btn {
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.logiciels-hero-btn:hover,
.logiciel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 158, 68, 0.22);
}

/* Slider arrows */
.slider-arrow {
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Smooth slide transition */
.logiciel-slide {
    transition: opacity 0.45s ease, visibility 0.45s ease;
}