/* Styles spécifiques pour la page projet4 */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #0061a8 0%, #003e6b 100%);
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-patterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiPjwvcmVjdD4KPHBhdGggZD0iTTAgNUw1IDBaTTUgNUwwIDBaIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMC41IiBzdHJva2Utb3BhY2l0eT0iMC4wNSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.8;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDMyMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHBhdGggZmlsbD0iI2Y0ZjRmNCIgZD0iTTAgNDh2MjcyaDEyODBWMGwxNjAgNDh2MjcySDAgMFYweiIvPjwvc3ZnPg==');
    background-size: cover;
    background-repeat: no-repeat;
}

.tech-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto 12px;
}

.tech-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tech-icon img {
    max-width: 70%;
    max-height: 70%;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0061a8, #00b0ff);
    border-radius: 2px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card .card-header {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-card .card-body {
    padding-top: 10px;
}

.sprint-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    text-align: center;
    margin-right: 10px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #0061a8;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -13px;
}

.timeline-item:nth-child(even)::after {
    left: -13px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content::after {
    content: '';
    position: absolute;
    border-width: 10px;
    border-style: solid;
    top: 15px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    border-color: transparent transparent transparent white;
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    border-color: transparent white transparent transparent;
    left: -20px;
}

.competence-pill {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: #e9ecef;
    margin: 0 5px 5px 0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.competence-pill:hover {
    background-color: #0061a8;
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    padding: 15px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
}

.gallery-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

/* Clickable images */
.clickable-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-image:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

.fade-in-delay-3 {
    transition-delay: 0.6s;
}

/* Media queries pour responsive design */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -20px;
        border-color: transparent white transparent transparent;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Styles supplémentaires pour la section modélisation des données */
.model-diagram {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.model-diagram:hover {
    transform: scale(1.02);
}

.model-diagram img {
    width: 100%;
    height: auto;
}

.code-block {
    background-color: #f8f9fa;
    border-left: 4px solid #0061a8;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.tech-comparison {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-comparison th {
    background-color: #0061a8;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
}

.tech-comparison tr:nth-child(even) {
    background-color: #f8f9fa;
}

.tech-comparison td {
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
}

.tech-comparison tr:hover {
    background-color: #e9ecef;
}

/* Styles pour les boutons d'action */
.action-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.action-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary-action {
    background: linear-gradient(135deg, #0061a8 0%, #00a2ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 97, 168, 0.3);
}

.btn-primary-action:hover {
    box-shadow: 0 6px 20px rgba(0, 97, 168, 0.4);
    color: white;
}

.btn-secondary-action {
    background: white;
    color: #0061a8;
    border: 2px solid #0061a8;
}

.btn-secondary-action:hover {
    background: #f8f9fa;
    color: #0061a8;
}

/* Styles pour les détails techniques */
.tech-details {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.tech-details-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #0061a8;
}

.tech-details-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.tech-details-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tech-details-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

/* Styles pour le bandeau de statistiques */
.stats-bar {
    background: linear-gradient(135deg, #0061a8 0%, #003e6b 100%);
    color: white;
    padding: 40px 0;
    margin: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Modal customization */
.modal-xl {
    max-width: 90%;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #0061a8 0%, #00b0ff 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-header .close {
    color: white;
    opacity: 1;
    font-size: 1.5rem;
    font-weight: 300;
}

.modal-header .close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.modal-body {
    padding: 30px;
}

/* Fallback styles for manual modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.show {
    display: block !important;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-footer {
    border-top: none;
    padding: 20px 30px;
}

@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
    }
}