/**
 * Styles RNR Content - Partenaires (Frontend)
 */

:root {
    --rnr-primary: #e21e26;
    --rnr-slate-100: #f1f5f9;
    --rnr-slate-200: #e2e8f0;
    --rnr-slate-400: #94a3b8;
    --rnr-slate-500: #64748b;
    --rnr-slate-700: #334155;
    --rnr-slate-900: #0f172a;
}

/* --- MARQUEE (Home) --- */
.rnr-marquee-container {
    padding: 40px 0;
    overflow: hidden;
}

.rnr-marquee-row {
    display: flex;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}


.rnr-marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    padding-left: 48px;
}

.rnr-is-animated .rnr-marquee-left .rnr-marquee-track {
    animation: rnr-marquee-left 40s linear infinite;
}

.rnr-is-animated .rnr-marquee-right .rnr-marquee-track {
    animation: rnr-marquee-right 40s linear infinite;
}

.rnr-is-static .rnr-marquee-track {
    justify-content: center;
    width: 100%;
}

@keyframes rnr-marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes rnr-marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.rnr-partner-logo-card {
    flex-shrink: 0;
    width: 192px; /* 48 * 4 */
    height: 112px; /* 28 * 4 */
    background: #f8fafc;
    border: 1px solid var(--rnr-slate-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    filter: grayscale(1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rnr-partner-logo-card:hover {
    filter: grayscale(0);
    border-color: rgba(226, 30, 38, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.rnr-logo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.rnr-partner-logo-card:hover .rnr-logo-overlay {
    opacity: 1;
}

.rnr-logo-overlay span {
    color: white;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    font-style: italic;
    line-height: 1.2;
}

.rnr-partner-logo-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.rnr-partner-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rnr-partner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--rnr-slate-400);
    text-align: center;
}

.rnr-club-logo-svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    opacity: 0.3;
}

.rnr-partner-placeholder span {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1.1;
}

/* --- LIST PAGE (Entreprises) --- */
.rnr-partners-page {
    padding-bottom: 80px;
}

.rnr-partner-section {
    padding: 60px 0;
    border-top: 1px solid var(--rnr-slate-100);
}

.rnr-partner-section:first-child {
    border-top: none;
}

.rnr-partner-section .rnr-section-header {
    margin-bottom: 3rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
}

.rnr-partner-grid {
    display: grid;
    gap: 24px;
}

.rnr-grid-detailed {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.rnr-grid-logos {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.rnr-logo-grid-item {
    width: 100%;
    aspect-ratio: 16/9;
    filter: none;
    background: white;
    border-color: var(--rnr-slate-200);
}

.rnr-logo-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Detailed Card */
.rnr-partner-detailed-card {
    background: white;
    border: 1px solid var(--rnr-slate-100);
    transition: all 0.5s ease;
    overflow: hidden;
}

.rnr-partner-detailed-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.rnr-card-logo {
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--rnr-slate-100);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rnr-card-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rnr-card-logo img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.rnr-card-company-name {
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    color: var(--rnr-slate-400);
    font-size: 14px;
}

.rnr-card-photo {
    aspect-ratio: 4/5;
    overflow: hidden;
    filter: grayscale(1);
    transition: all 0.7s ease;
}

.rnr-partner-detailed-card:hover .rnr-card-photo {
    filter: grayscale(0);
}

.rnr-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.rnr-partner-detailed-card:hover .rnr-card-photo img {
    transform: scale(1.1);
}

.rnr-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--rnr-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rnr-photo-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--rnr-slate-300);
}

.rnr-card-quote {
    position: relative;
    margin: 16px;
    padding: 20px;
    border: 1px solid var(--rnr-slate-200);
    background: white;
}

.rnr-card-quote::before {
    content: '"';
    display: block;
    font-size: 48px;
    font-weight: 900;
    font-style: italic;
    color: rgba(226, 30, 38, 0.2);
    line-height: 1;
    margin-bottom: -10px;
}

.rnr-card-quote p {
    font-style: italic;
    color: var(--rnr-slate-500);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.rnr-card-info {
    padding: 24px 16px;
    text-align: center;
}

.rnr-card-info h4 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    margin: 0 0 4px;
    transition: color 0.3s;
}

.rnr-partner-detailed-card:hover .rnr-card-info h4 {
    color: var(--rnr-primary);
}

.rnr-info-role {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rnr-slate-400);
    margin: 0;
}

.rnr-info-company {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(226, 30, 38, 0.6);
    margin: 4px 0 0;
}
