/* Styles modernes pour projet1.php inspirés de projet4 */

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #863AB1 0%, #CF1717 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, #863AB1, #CF1717);
    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, #863AB1, #CF1717);
    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 #863AB1;
    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: #863AB1;
    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, #863AB1 0%, #CF1717 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d2e8a 0%, #a61414 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: #CF1717;
    background-color: rgba(134, 58, 177, 0.05);
    transform: translateX(10px);
    text-decoration: none;
}

.nav-link::before {
    content: '→ ';
    opacity: 0;
    margin-right: 0;
    transition: all 0.3s ease;
    color: #863AB1;
}

.nav-link:hover::before {
    opacity: 1;
    margin-right: 8px;
}

/* Color Palette Display */
.color-palette {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 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: #863AB1;
}

.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;
}

/* Mission Badges */
.mission-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;
}

.mission-1 { background: linear-gradient(135deg, #863AB1 0%, #CF1717 100%); }
.mission-2 { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.mission-3 { background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%); }
.mission-4 { background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%); color: #212529; }
.mission-5 { background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%); }
.mission-6 { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }

/* 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, #863AB1 0%, #CF1717 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(134, 58, 177, 0.3);
}

.btn-primary-action:hover {
    box-shadow: 0 6px 20px rgba(134, 58, 177, 0.4);
    color: white;
    text-decoration: none;
}

/* 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));
    }
}

/* Additional modern touches */
.bg-gradient-primary {
    background: linear-gradient(135deg, #863AB1 0%, #CF1717 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #863AB1 0%, #CF1717 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Stats or highlights */
.highlight-box {
    background: linear-gradient(135deg, rgba(134, 58, 177, 0.1) 0%, rgba(207, 23, 23, 0.1) 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #863AB1;
}

/* 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);
}