/* Photos Fix - Cabinet Weinstein V2 */

/* Reset des photos d'équipe */
.team-photo {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
    background: #f0f0f0;
}

.team-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.team-card:hover .team-photo img {
    transform: scale(1.03);
}

/* Photo président */
.president-image {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
    border-radius: 8px;
}

.president-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

/* Grid équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Force l'affichage de la section équipe */
.team-content {
    display: block !important;
    margin-top: 2rem;
}

.team-grid#brevets {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.team-card {
    display: block !important;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.team-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eee;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.team-card h4 {
    padding: 1rem 0.5rem 0.25rem;
    font-size: 0.95rem;
    margin: 0;
}

.team-role {
    display: block;
    padding: 0 0.5rem 1rem;
    font-size: 0.75rem;
    color: #666;
}

/* ============================================
   FIX: Photo du Président - Taille réduite
   ============================================ */

.president-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.president-image {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px;
    border-radius: 50%;
    overflow: hidden;
    padding-top: 0 !important;
    position: relative;
}

.president-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    position: static !important;
}

.president-info {
    flex: 1;
}

.president-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.president-role {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.president-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 480px) {
    .president-card {
        flex-direction: column;
        text-align: center;
    }
    
    .president-image {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px;
    }
}


/* ============================================
   NEW: Section Équipe Moderne
   ============================================ */

/* Carte du Président */
.president-highlight {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.president-card-new {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    padding: 2rem 3rem;
    border-radius: 16px;
    color: white;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(26, 54, 93, 0.3);
}

.president-photo-circle {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

.president-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.president-details h3 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    color: white;
}

.president-title {
    display: inline-block;
    background: #c9a227;
    color: #1a365d;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.president-details p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Grille des stats */
.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.team-stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    color: #1a365d;
    margin-bottom: 1rem;
}

.stat-icon svg {
    width: 48px;
    height: 48px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #c9a227;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.75rem;
}

.stat-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Message équipe */
.team-message {
    text-align: center;
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #c9a227;
}

.team-message p {
    margin: 0;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .team-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .president-card-new {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .president-photo-circle {
        width: 120px;
        height: 120px;
    }
}


/* ============================================
   Section Startups
   ============================================ */

.section-startups {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.startup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.startup-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.startup-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.startup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.startup-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.startup-card p {
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.startup-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.startup-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   Section Actualités
   ============================================ */

.section-news {
    background: #ffffff;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Animation fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .startup-grid {
        grid-template-columns: 1fr;
    }
}


/* FIX: Logo plus visible dans le header */
.navbar {
    background: rgba(26, 54, 93, 0.95) !important;
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px !important;
    width: auto !important;
    filter: brightness(1.1);
}

.navbar.scrolled .logo img {
    height: 45px !important;
}

/* Supprimer le double texte si présent */
.hero-subtitle {
    display: none !important;
}

/* Titre hero sans le sous-titre */
.hero-title {
    display: block !important;
}

/* Améliorer contraste nav */
.nav-link {
    color: white !important;
    font-weight: 500 !important;
}

.nav-cta {
    background: #c9a227 !important;
    color: #1a365d !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 25px !important;
}

