/**
 * Schweiz Express Teams - Frontend Styles
 * 
 * Styles pour l'affichage des équipes côté frontend
 * Version: 1.0
 */

/* ==========================================================================
   Formulaire d'édition d'équipe
   ========================================================================== */

.team-edit-form {
    max-width: 600px;
    margin: 20px 0;
}

.team-edit-form input[type="text"],
.team-edit-form input[type="email"],
.team-edit-form input[type="url"],
.team-edit-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.team-edit-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.team-edit-form h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.team-edit-form h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   Grille des équipes (liste)
   ========================================================================== */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

/* Responsive pour la grille */
@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 10px 0;
    }
}

/* ==========================================================================
   Carte d'équipe
   ========================================================================== */

.team-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.team-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.team-square-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.team-photo:hover .team-square-image {
    transform: scale(1.05);
}

/* Responsive pour les images carrées */
@media (max-width: 480px) {
    .team-photo {
        border-radius: 8px;
        margin-bottom: 15px;
    }
    .team-square-image {
        border-radius: 8px;
    }
}

.team-members {
    margin-bottom: 15px;
}

.team-bio {
    margin-bottom: 15px;
    font-style: italic;
}

.team-social {
    margin-bottom: 15px;
}

.team-social a {
    margin-right: 10px;
    text-decoration: none;
    color: #ee4555;
}

.team-actions {
    margin-top: 15px;
}

.team-link {
    display: inline-block;
    margin-top: 10px;
    margin-right: 15px;
    color: #ee4555;
    text-decoration: none;
    font-weight: bold;
}

.team-parrainage-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.team-parrainage-button:hover {
    background: #ee5555;
    color: white;
}

/* ==========================================================================
   Page single équipe
   ========================================================================== */

.team-single-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.team-hero-image {
    margin-bottom: 40px;
    text-align: center;
}

.team-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-info-section {
    margin-bottom: 40px;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.member-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.member-card h3 {
    margin-top: 0;
    color: #333;
}

.member-social {
    margin-top: 15px;
}

.member-social .social-link {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.member-social .social-link:hover {
    opacity: 0.8;
}

.member-social .social-link.facebook {
    background: #3b5998;
}

.member-social .social-link.instagram {
    background: #e1306c;
}

.member-social .social-link.twitter {
    background: #1da1f2;
}

.member-social .social-link.tiktok {
    background: #000000;
}

.team-description,
.team-bio-section {
    margin-bottom: 40px;
}

.team-social-section {
    margin-bottom: 40px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #555;
}

.social-link.facebook { background: #3b5998; }
.social-link.instagram { background: #e1306c; }
.social-link.twitter { background: #1da1f2; }
.social-link.tiktok { background: #000000; }

.team-single-profile .team-actions {
    margin-top: 40px;
    text-align: center;
}

.team-single-profile .team-actions .button {
    display: inline-block;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 5px;
}

.team-single-profile .team-actions .button-edit {
    background: #27ae60;
}

.team-single-profile .team-actions .button-parrainage {
    background: #ff6b6b;
}

.team-single-profile .team-actions .button:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .team-members-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   Vidéo de présentation
   ========================================================================== */

.team-video-section {
    margin-bottom: 40px;
    text-align: center;
}

.team-video-section h4 {
    margin-bottom: 20px;
    color: #333;
}

.team-video-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* YouTube embed - ratio 16:9 */
.team-video-youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.team-video-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* TikTok embed */
.team-video-tiktok {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.team-video-tiktok blockquote {
    margin: 0 auto;
}

/* TikTok link fallback */
.team-video-tiktok-link {
    text-align: center;
}

.tiktok-video-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tiktok-video-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.tiktok-icon {
    font-size: 24px;
}

/* Aperçu vidéo dans le formulaire d'édition */
.team-video-preview {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.team-video-preview p {
    margin-bottom: 15px;
}

/* Responsive pour la vidéo */
@media (max-width: 768px) {
    .team-video-youtube {
        border-radius: 8px;
    }
    
    .team-video-youtube iframe {
        border-radius: 8px;
    }
    
    .tiktok-video-link {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Formulaire d'inscription
   ========================================================================== */

.team-registration-form {
    max-width: 600px;
    margin: 20px auto;
}

.member-section {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.team-registration-form input[type="text"],
.team-registration-form input[type="email"],
.team-registration-form input[type="password"],
.team-registration-form input[type="url"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.team-registration-form label {
    display: block;
    margin-bottom: 15px;
}

.team-registration-form h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #666;
}

.team-registration-form .button {
    background: #ee4555;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.team-registration-form .button:hover {
    background: #d63447;
}

/* ==========================================================================
   Formulaire de connexion
   ========================================================================== */

.se-login-form {
    max-width: 400px;
    margin: 20px 0;
}

.se-login-form input[type="email"],
.se-login-form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.se-login-form label {
    display: block;
    margin-bottom: 15px;
}

.se-login-form .button {
    background: #ee4555;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffebee;
    border-radius: 5px;
}

