﻿/* ============================================
   SELOGER STYLE - Avec vos noms de classes
   ============================================ */

/* Grid container */
.respgrid {
    background-color: #F7F7F7;
    border-color: #E5E5E5;
    border-radius: 0;
    padding: 20px;
    gap: 20px;
}

/* Card item */
.respitem {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.respitem:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background-color: #ffffff !important;
    color: inherit;
}

/* Content section */
.respitem .content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Headings */
.respitem h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2B2B2B;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

/* Paragraphs */
.respitem p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* Title */
.respitem .title {
    font-size: 16px;
    font-weight: 600;
    color: #2B2B2B;
    margin: 0 0 2px 0;
    line-height: 1.3;
    text-align: left;
    justify-content: flex-start !important;
}

/* Image */
.respitem_img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    display: block;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.respitem:hover .respitem_img {
    transform: scale(1.05);
}

/* Image container (pour aspect-ratio) */
.respitem .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .respgrid {
        padding: 16px;
        gap: 16px;
    }

    .respitem .content {
        padding: 14px;
    }

    .respitem h3 {
        font-size: 20px;
    }

    .respitem .title {
        font-size: 15px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .respgrid {
        padding: 12px;
        gap: 12px;
        border-radius: 0;
    }

    .respitem {
        border-radius: 6px;
    }

    .respitem .content {
        padding: 12px;
        gap: 3px;
    }

    .respitem h3 {
        font-size: 19px;
    }

    .respitem .title {
        font-size: 15px;
    }

    .respitem p {
        font-size: 13px;
    }

    /* Ratio 16:9 sur mobile pour économiser l'espace */
    .respitem .image-container {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .respgrid {
        padding: 8px;
        gap: 10px;
    }

    .respitem .content {
        padding: 10px;
    }

    .respitem h3 {
        font-size: 18px;
    }

    .respitem .title {
        font-size: 14px;
    }

    .respitem p {
        font-size: 12px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.respitem {
    animation: fadeIn 0.4s ease-out;
}

/* Stagger animation */
.respitem:nth-child(1) { animation-delay: 0s; }
.respitem:nth-child(2) { animation-delay: 0.05s; }
.respitem:nth-child(3) { animation-delay: 0.1s; }
.respitem:nth-child(4) { animation-delay: 0.15s; }
.respitem:nth-child(5) { animation-delay: 0.2s; }
.respitem:nth-child(6) { animation-delay: 0.25s; }
