/* Styles modernes pour projet2.php - Barec Automatismes */

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #007bff 0%, #28a745 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;
}

/* Section Title */
.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, #007bff, #28a745);
    border-radius: 2px;
}

/* Cards */
.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;
    border: none;
    margin-bottom: 30px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 20px 25px 15px;
    font-weight: 600;
}

.card-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.card-body {
    padding: 25px;
}

/* Tech Icons Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.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%;
}

/* Context Styles */
.context-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.context-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 2px;
}

.context-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Timeline for missions */
.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 #007bff;
    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;
}

/* Tables */
.competences-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.competences-table th {
    background-color: #007bff;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 12px 15px;
}

.competences-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.competences-table td {
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
}

.competences-table tr:hover {
    background-color: #f1f3f5;
}

/* Buttons */
.btn {
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.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;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    border: none;
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border: none;
    color: white;
}

/* Navigation Links */
.nav-link {
    color: #4A5568;
    padding: 12px 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding-left: 10px;
    margin-bottom: 5px;
}

.nav-link:hover {
    color: #28a745;
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(10px);
    text-decoration: none;
}

.nav-link::before {
    content: '→ ';
    opacity: 0;
    margin-right: 0;
    transition: all 0.3s ease;
    color: #007bff;
}

.nav-link:hover::before {
    opacity: 1;
    margin-right: 8px;
}

/* Sprint Badges */
.sprint-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sprint-1 { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.sprint-2 { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.sprint-3 { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }

/* Images */
img {
    border-radius: 12px;
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-in-visible {
    opacity: 1;
}

.slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-delay-1 {
    transition-delay: 0.2s;
}

.slide-in-delay-2 {
    transition-delay: 0.4s;
}

.slide-in-delay-3 {
    transition-delay: 0.6s;
}

.fade-delay-1 {
    transition-delay: 0.2s;
}

.fade-delay-2 {
    transition-delay: 0.4s;
}

.fade-delay-3 {
    transition-delay: 0.6s;
}

/* Tech Details Section */
.tech-details {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.tech-details-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #007bff;
}

.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;
}

/* Action Buttons */
.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;
}

.btn-primary-action {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary-action:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

/* Interactive elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* PCB Cycle Diagram */
.pcb-cycle-container {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.pcb-cycle-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Trello Board Style */
.trello-board {
    background: #0079bf;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.trello-board img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Architecture Diagram */
.architecture-diagram {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

/* Stats counters */
.stat-counter {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
}

/* Company Logo Styling */
.company-logo {
    max-height: 80px;
    width: auto;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.company-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Clickable images */
.clickable-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 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, #007bff 0%, #28a745 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;
}

/* Additional modern touches */
.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
        min-height: 300px;
    }

    .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;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .modal-xl {
        max-width: 95%;
    }
}