.school-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.school-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #121212;
    width: 95%;
    max-width: 1400px;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 149, 255, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 149, 255, 0.1);
    overflow: hidden;
}

.school-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 149, 255, 0.1);
}

.modal-title {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    background: #121212;
    padding: 30px;
    display: block;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 149, 255, 0.1);
}

.info-section h3 {
    color: var(--accent-color);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.info-section p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.modal-links {
    display: flex;
    gap: 15px;
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.modal-link:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Styles pour le bouton "Voir les détails" */
.blog-read-more {
    cursor: pointer;
    padding: 8px 16px;
    background: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.blog-read-more:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.2);
}

.blog-read-more::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(var(--accent-color-rgb), 0.1),
        transparent
    );
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.6s ease;
}

.blog-read-more:hover::before {
    animation: shine 1.5s ease-out;
}

@keyframes shine {
    0% {
        transform: translateX(-200%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 10px auto;
    }

    .modal-body {
        padding: 15px;
    }

    .stage-section {
        padding: 15px;
    }

    .stage-details h2 {
        font-size: 24px;
    }

    .stage-section h3 {
        font-size: 20px;
    }
}

.stage-details {
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.stage-details h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.stage-duration {
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.stage-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.entreprise-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.entreprise-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

.entreprise-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
}

.entreprise-description p {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
    text-align: justify;
}

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

.projet-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.projet-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag, .skill-tag {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tech-tag:hover, .skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.3);
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.competence-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.competence-category h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Style pour les listes */
.stage-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stage-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.stage-section ul li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .projets-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .competences-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Amélioration du défilement */
.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
    border: 2px solid #121212;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
    
    .entreprise-description {
        padding: 15px;
    }
    
    .entreprise-description p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Styles pour l'en-tête avec logo */
.stage-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
}

.stage-logo {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .stage-logo {
        width: 150px;
        height: 150px;
    }
}

.entreprise-activites {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.entreprise-activites h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.entreprise-activites ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entreprise-activites li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.entreprise-activites li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

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

.technologie-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.technologie-category h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .technologies-grid {
        grid-template-columns: 1fr;
    }
    
    .entreprise-activites {
        padding: 15px;
    }
    
    .entreprise-activites li {
        font-size: 14px;
    }
}

.skills-section {
    margin: 30px 0;
}

.skills-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-category h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.skill-item:before {
    content: '✓';
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .skills-category {
        padding: 15px;
    }
} 