/* Mur des Réussites */
.success-wall-section {
    padding: 4rem 0;
}

.success-wall-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-wall-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.success-wall-header p {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* Grille Masonry */
.success-wall-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .success-wall-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .success-wall-grid {
        column-count: 1;
    }
}

/* Cartes Post-it */
.success-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.success-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-card:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.success-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.success-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
}

.success-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.success-author strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.success-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.success-like {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.success-like:hover {
    background: rgba(0,0,0,0.05);
    color: #e74c3c;
}

.success-like.liked {
    color: #e74c3c;
}

.success-like.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.success-like i {
    font-size: 1.1rem;
}

/* Formulaire de soumission */
.success-form-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.success-form-container h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Message de succès */
.success-message {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.success-message i {
    font-size: 1.5rem;
}

/* Version compacte pour index.html */
.success-wall-compact .success-wall-grid {
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.success-wall-compact .success-wall-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.success-wall-more {
    text-align: center;
    margin-top: 2rem;
}

.success-wall-more .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .success-wall-section {
        padding: 3rem 0;
    }
    
    .success-wall-header h2 {
        font-size: 2rem;
    }
    
    .success-form-container {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
}
