/**
 * Style CSS moderne pour le plugin Membre d'honneur
 * Version 2.0.0 - Responsive et optimisé
 */

/* ===========================
   Variables CSS (Custom Properties)
   =========================== */
:root {
    --evalue-primary: #0f24ff;
    --evalue-primary-light: rgba(15, 36, 255, 0.61);
    --evalue-secondary: #6c79ff;
    --evalue-text: #333;
    --evalue-text-light: #d2d2d2;
    --evalue-bg-light: #f5f5f5;
    --evalue-shadow: rgba(0, 0, 0, 0.1);
    --evalue-shadow-hover: rgba(0, 0, 0, 0.3);
    --evalue-border-radius: 15px;
    --evalue-transition: all 0.3s ease;
}

/* ===========================
   STYLE CARDS (Par défaut)
   =========================== */
.evalue-honneur-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.evalue-honneur-card {
    position: relative;
    background: var(--evalue-primary-light);
    border-radius: var(--evalue-border-radius);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 1px 1px 2px 1px var(--evalue-shadow);
    transition: var(--evalue-transition);
    overflow: hidden;
    cursor: pointer;
}

.evalue-honneur-card:hover {
    transform: scale(1.05);
    box-shadow: 20px 20px 50px var(--evalue-shadow-hover);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.evalue-honneur-card-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.evalue-honneur-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.evalue-honneur-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--evalue-bg-light);
}

.evalue-honneur-no-photo .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #ccc;
}

.evalue-honneur-card-name {
    font-size: 1.8em;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 600;
}

.evalue-honneur-card-poste {
    font-size: 1.1em;
    color: var(--evalue-text-light);
    margin: 0 0 15px;
    font-weight: 500;
}

.evalue-honneur-card-presentation {
    line-height: 1.6;
    color: var(--evalue-text-light);
    margin-bottom: 20px;
    min-height: 60px;
}

.evalue-honneur-card-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--evalue-transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.evalue-honneur-card-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ===========================
   STYLE OCTOGONE
   =========================== */
.evalue-honneur-octogone {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.evalue-honneur-octogone-item {
    text-align: center;
}

.octogone-shape {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(135deg, var(--evalue-primary) 0%, var(--evalue-secondary) 100%);
    box-shadow: 0 10px 30px var(--evalue-shadow-hover);
    transition: var(--evalue-transition);
}

.octogone-shape:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.octogone-inner {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    overflow: hidden;
    background: #fff;
}

.octogone-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.octogone-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--evalue-bg-light);
}

.octogone-no-photo .dashicons {
    font-size: 100px;
    width: 100px;
    height: 100px;
    color: #ccc;
}

.evalue-honneur-octogone-info h3 {
    font-size: 1.6em;
    color: var(--evalue-text);
    margin: 0 0 10px;
    font-weight: 600;
}

.octogone-poste {
    font-size: 1.1em;
    color: var(--evalue-secondary);
    margin: 0 0 15px;
    font-weight: 500;
}

.octogone-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--evalue-primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--evalue-transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.octogone-btn:hover {
    background: var(--evalue-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===========================
   STYLE LISTE
   =========================== */
.evalue-honneur-liste {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.evalue-honneur-liste-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: var(--evalue-border-radius);
    box-shadow: 0 5px 15px var(--evalue-shadow);
    transition: var(--evalue-transition);
}

.evalue-honneur-liste-item:hover {
    box-shadow: 0 10px 30px var(--evalue-shadow-hover);
    transform: translateY(-5px);
}

.evalue-honneur-liste-photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--evalue-bg-light);
}

.evalue-honneur-liste-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.evalue-honneur-liste-content h3 {
    font-size: 1.8em;
    color: var(--evalue-text);
    margin: 0 0 10px;
    font-weight: 600;
}

.liste-poste {
    font-size: 1.2em;
    color: var(--evalue-secondary);
    margin: 0 0 15px;
    font-weight: 500;
}

.liste-presentation {
    line-height: 1.8;
    color: #666;
}

/* ===========================
   MODAL
   =========================== */
.evalue-honneur-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.evalue-honneur-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.evalue-honneur-modal-content {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: var(--evalue-border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 10000;
}

.evalue-honneur-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--evalue-transition);
    z-index: 10001;
    color: #333;
}

.evalue-honneur-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #f44336;
    color: #fff;
}

.evalue-honneur-modal-body {
    padding: 40px;
}

.evalue-honneur-modal-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--evalue-bg-light);
}

.evalue-honneur-modal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 30px var(--evalue-shadow-hover);
    flex-shrink: 0;
}

.evalue-honneur-modal-info h2 {
    font-size: 2em;
    color: var(--evalue-text);
    margin: 0 0 10px;
    font-weight: 600;
}

.evalue-honneur-modal-poste {
    font-size: 1.3em;
    color: var(--evalue-secondary);
    margin: 0;
    font-weight: 500;
}

.evalue-honneur-modal-presentation {
    line-height: 1.8;
    color: #555;
    font-size: 1.1em;
}

/* ===========================
   STATE VIDE
   =========================== */
.evalue-honneur-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--evalue-bg-light);
    border-radius: var(--evalue-border-radius);
}

.evalue-honneur-empty p {
    font-size: 1.2em;
    color: #999;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablettes */
@media (max-width: 768px) {
    .evalue-honneur-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .evalue-honneur-octogone {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 30px;
    }

    .octogone-shape {
        width: 180px;
        height: 180px;
    }

    .evalue-honneur-liste-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .evalue-honneur-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .evalue-honneur-modal-body {
        padding: 30px 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .evalue-honneur-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .evalue-honneur-octogone {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 10px;
    }

    .octogone-shape {
        width: 160px;
        height: 160px;
    }

    .evalue-honneur-card {
        padding: 20px 15px;
    }

    .evalue-honneur-card-name {
        font-size: 1.5em;
    }

    .evalue-honneur-liste-item {
        padding: 20px;
    }

    .evalue-honneur-liste-photo {
        width: 120px;
        height: 120px;
    }

    .evalue-honneur-modal-content {
        margin: 2vh auto;
        max-height: 96vh;
        border-radius: 10px;
    }

    .evalue-honneur-modal-body {
        padding: 20px 15px;
    }

    .evalue-honneur-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .evalue-honneur-modal-photo {
        width: 120px;
        height: 120px;
    }

    .evalue-honneur-modal-info h2 {
        font-size: 1.5em;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .evalue-honneur-card-photo {
        width: 120px;
        height: 120px;
    }

    .octogone-shape {
        width: 140px;
        height: 140px;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evalue-honneur-card,
.evalue-honneur-octogone-item,
.evalue-honneur-liste-item {
    animation: fadeIn 0.5s ease-out;
}

/* ===========================
   ACCESSIBILITÉ
   =========================== */
.evalue-honneur-card:focus,
.octogone-btn:focus,
.evalue-honneur-card-btn:focus {
    outline: 3px solid var(--evalue-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
