/**
 * Leroyer Entreprises - Frontend styles.
 */

.le-entreprises {
    --le-ink:       #0B1F33;
    --le-navy:      #13355E;
    --le-azur:      #2C6DAC;
    --le-azur-soft: #E8F0F9;
    --le-sky:       #A8C4DE;
    --le-cream:     #FAF7F0;
    --le-paper:     #F4EEE0;
    --le-line:      #E0D8C5;
    --le-muted:     #6B7A89;
    --le-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --le-sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --le-shadow-sm: 0 1px 2px rgba(11,31,51,.04), 0 1px 1px rgba(11,31,51,.03);
    --le-shadow-md: 0 4px 12px rgba(11,31,51,.06), 0 2px 4px rgba(11,31,51,.04);
    --le-shadow-lg: 0 12px 40px rgba(11,31,51,.08), 0 4px 12px rgba(11,31,51,.05);
    display: grid;
    gap: 28px;
    font-family: var(--le-sans);
    color: var(--le-ink);
    font-size: 16px;
    line-height: 1.55;
}

.le-entreprises.le-cols-1 { grid-template-columns: 1fr; }
.le-entreprises.le-cols-2 { grid-template-columns: repeat(2, 1fr); }
.le-entreprises.le-cols-3 { grid-template-columns: repeat(3, 1fr); }
.le-entreprises.le-cols-4 { grid-template-columns: repeat(4, 1fr); }

.le-ent {
    background: var(--le-cream);
    border: 1px solid var(--le-line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), border-color .35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.le-ent::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--le-navy), var(--le-azur));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .5s ease;
    z-index: 2;
}
.le-ent:hover { transform: translateY(-4px); box-shadow: var(--le-shadow-lg); border-color: var(--le-sky); }
.le-ent:hover::before { transform: scaleX(1); }

.le-ent-visual {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--le-navy), var(--le-azur));
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
}
.le-ent-visual img, .le-ent-visual-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    max-width: none !important;
}
.le-ent:hover .le-ent-visual img { transform: scale(1.04); }
.le-ent-visual-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 24px; text-align: center;
    color: var(--le-cream);
    background: radial-gradient(circle at 30% 20%, rgba(250,247,240,.15) 0%, transparent 50%), linear-gradient(135deg, var(--le-navy) 0%, var(--le-ink) 100%);
}
.le-ent-visual-placeholder span {
    font-family: var(--le-serif);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-variation-settings: 'opsz' 72, 'SOFT' 30;
    display: block;
}
.le-ent-visual-placeholder small {
    display: block;
    font-family: var(--le-sans);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-top: 14px;
    font-weight: 500;
}

.le-ent-body {
    padding: 24px 26px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.le-ent-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.le-ent-sector {
    display: inline-block;
    font-family: var(--le-sans);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--le-azur);
    font-weight: 600;
}
.le-ent-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.le-ent-status-launching { background: #FEF3C7; color: #92400E; }
.le-ent-status-paused    { background: #E5E7EB; color: #374151; }
.le-ent-status-archived  { background: #E5E7EB; color: #6B7280; }

.le-ent-title {
    font-family: var(--le-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--le-ink);
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-variation-settings: 'opsz' 48;
}
.le-ent-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 92%;
    background-repeat: no-repeat;
    transition: background-size .4s cubic-bezier(.4,0,.2,1), color .25s;
}
.le-ent-title a:hover { color: var(--le-azur); }
.le-ent:hover .le-ent-title a { background-size: 100% 1px; }

.le-ent-role {
    font-family: var(--le-serif);
    font-style: italic;
    color: var(--le-muted);
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.35;
    font-variation-settings: 'opsz' 36;
}
.le-ent-desc {
    font-family: var(--le-sans);
    font-size: 0.93rem;
    color: var(--le-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.le-ent-actions {
    padding-top: 16px;
    border-top: 1px solid var(--le-line);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.le-ent-more, .le-ent-external {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--le-sans);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none !important;
    padding: 4px 0;
    position: relative;
    transition: color .25s ease;
}
.le-ent-more { color: var(--le-navy); }
.le-ent-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.le-ent-more span { display: inline-block; transition: transform .25s ease; }
.le-ent:hover .le-ent-more { color: var(--le-azur); }
.le-ent:hover .le-ent-more span { transform: translateX(4px); }
.le-ent-external {
    color: var(--le-muted);
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--le-azur-soft);
    border: 1px solid transparent;
    font-size: 0.82rem;
}
.le-ent-external:hover {
    background: var(--le-navy);
    color: var(--le-cream);
}

.le-ent-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--le-muted);
    font-family: var(--le-serif);
    font-style: italic;
    font-size: 1.1rem;
    background: var(--le-paper);
    border-radius: 16px;
}

@media (max-width: 1024px) {
    .le-entreprises.le-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .le-entreprises.le-cols-3, .le-entreprises.le-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .le-entreprises { gap: 22px; }
    .le-entreprises.le-cols-2, .le-entreprises.le-cols-3, .le-entreprises.le-cols-4 {
        grid-template-columns: 1fr;
    }
}
