/* Grille */
.lepat-items-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

/* Carte article */
.lepat-item-card {
    background: #F1EDEA;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lepat-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(174, 142, 107, 0.3);
}

/* Image : hauteur fixe 400px */
.lepat-item-thumb {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

/* Informations sous l'image */
.lepat-item-info {
    padding: 1.2rem 1.5rem 1.8rem;
    text-align: left;
}

.lepat-item-info h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: #000;
}

.lepat-item-excerpt {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* Lien View Look */
.lepat-view-look {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ae8e6b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.lepat-view-look:hover {
    border-bottom-color: #ae8e6b;
}

/* MODAL */
.lepat-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 1rem;
    box-sizing: border-box;
}

.lepat-modal-content {
    background-color: #F1EDEA;
    max-width: 900px;
    width: 100%;
    border-radius: 16px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.lepat-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #ae8e6b;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}
.lepat-modal-close:hover {
    color: #8e6e4b;
}

.lepat-modal-inner {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

.lepat-modal-image {
    flex: 1 1 40%;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    border-radius: 16px 0 0 16px;
}

.lepat-modal-right {
    flex: 1 1 60%;
    padding: 2rem;
    box-sizing: border-box;
}

.lepat-modal h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 1rem;
    color: #000;
}

.lepat-modal-description {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #1e1e1e;
}

.lepat-modal-extra {
    margin-bottom: 1.5rem;
}

.lepat-modal-extra h3 {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 1.5rem 0 0.8rem;
    color: #000;
}

.lepat-modal-extra ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lepat-modal-extra li {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    min-height: 2.6rem;
}

.lepat-modal-extra li:last-child {
    border-bottom: none;
}

.lepat-modal-extra li::before {
    content: "•";
    color: #ae8e6b;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lepat-modal-extra p.note {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #d4c9bc;
}

/* Boutons : côte à côte, avec styles distincts */
.lepat-modal-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: flex-start;
}

.lepat-modal-buttons .btn {
    flex: 0 1 auto;
    text-align: center;
    padding: 0.9rem 1.8rem;
    border: 1px solid #ae8e6b;
    border-radius: 30px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

/* Book Consultation : outline */
#lepat-modal-book {
    background: transparent;
    color: #000;
}
#lepat-modal-book:hover {
    background: #ae8e6b;
    color: #fff;
}

/* Request This Style : filled */
#lepat-modal-request {
    background: #ae8e6b;
    color: #fff;
}
#lepat-modal-request:hover {
    background: transparent;
    color: #000;
}

/* Responsive grid - avec !important pour surcharger le style en ligne */
@media (max-width: 768px) {
    .lepat-items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .lepat-item-thumb {
        height: 300px;
    }
    .lepat-modal-inner {
        flex-direction: column;
    }
    .lepat-modal-image {
        display: none;
    }
    .lepat-modal-right {
        padding: 1.5rem;
    }
    .lepat-modal-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lepat-items-grid {
        grid-template-columns: 1fr !important;
    }
    .lepat-item-thumb {
        height: 250px;
    }
}