/* Variables CSS */
:root {
    --primary: #0a192f; /* Deep navy blue */
    --primary-light: #112240; /* Lighter navy blue */
    --secondary: #020c1b; /* Night blue */
    --accent: #64ffda;
    --glass: rgba(17, 34, 64, 0.5);
    --light: #f8fafc; /* Very light white */
    --gray: #8892b0; /* Bluish gray */
    --dark-gray: #495670; /* Dark gray */
    --silver: #ccd6f6; /* Light silver */
    --gold: #d4af37; /* Gold */
    --gold-light: #e6c567; /* Light gold */
    --gold-dark: #b8860b; /* Dark gold */
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --radius: 8px;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--silver);
    background: var(--gradient-primary);
    overflow-x: hidden;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

section{
        scroll-margin-top: 100px;
    }

section {
    padding: 100px 0;
    position: relative;
}


/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.95);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.logo span {
    color: var(--silver);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    color: var(--silver);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--gold);
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--silver);
}
.language-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
}
.language-dropdown.active {
    display: block;
}
.language-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.language-option:hover {
    background-color: rgba(212, 175, 55, 0.1);
}
.language-option.disabled {
    color: var(--gray);
    pointer-events: none;
    opacity: 0.5;
}

/* ================================ */
/* Fusion Portfolio Hero et Timeline */
/* ================================ */

.portfolio-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 240px;
    padding-bottom: 120px;
    border-bottom: 3px solid #d4af37; /* Or classique */
    background: linear-gradient(
        rgba(0, 0, 0, 0.6), 
        rgba(0, 0, 0, 0.6)
        ), 
        url('https://mrdib.com/assets/images/portfolio.jpg') center/cover no-repeat;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.portfolio-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.portfolio-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--silver);
}

.portfolio-hero-content h1 span {
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--silver);
}

.horizontal-bullets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.horizontal-bullets li {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #d4af37;
  border-radius: 4px;
  padding: 6px 12px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.horizontal-bullets li::before {
  content: "✔";
  color: #d4af37;
  margin-right: 8px;
  font-weight: bold;
}

/* Timeline Section */
.timeline-section {
  background: linear-gradient(
    180deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;
  border-radius: 12px;
    z-index: 2;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom, 
        rgba(10, 25, 47, 0.8) 0%, 
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--gradient-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: rgba(17, 34, 64, 0.7);
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
}

.timeline-date {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--silver);
}

.timeline-item:nth-child(odd)::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -13px;
    background: var(--primary-light);
    border: 4px solid var(--gold);
    top: 22px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: -7px;
    background: var(--primary-light);
    border: 4px solid var(--gold);
    top: 22px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: -15px;
    border: medium solid var(--primary-light);
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--primary-light) transparent transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: -15px;
    border: medium solid var(--primary-light);
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--primary-light);
}

/* test d'ici jusqu'à Project Details */ 
      .section-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }
        
        .section-title {
            font-size: 2.8rem;
            font-weight: 700;
            margin-bottom: 15px;
            background: linear-gradient(45deg, var(--gold), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            position: relative;
            display: inline-block;
        }
            .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--gradient-gold);
            border-radius: 2px;
            box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
        }
        .section-subtitle {
            font-size: 1.2rem;
            color: var(--light-gray);
            max-width: 700px;
            margin: 0 auto;
        }

        /* Filters */
        .portfolio-filters {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 50px;
            position: relative;
            z-index: 10;
        }
        
        .filter-btn {
            padding: 12px 25px;
            border-radius: 30px;
            background: transparent;
            border: 2px solid var(--gold);
            color: var(--gold);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .filter-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: linear-gradient(45deg, var(--gold), transparent);
            transition: var(--transition);
            z-index: -1;
        }
        
        .filter-btn:hover::before {
            width: 100%;
        }
        
        .filter-btn.active,
        .filter-btn:hover {
            background: var(--glass);
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-3px);
        }
        
        /* Portfolio Grid */
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }
        
        .portfolio-item {
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
            box-shadow: 0 10px 30px rgba(2, 12, 27, 0.7);
            border: 1px solid rgba(100, 255, 218, 0.1);
            background: var(--glass);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            transform-style: preserve-3d;
            perspective: 1000px;
        }
        
        .portfolio-item:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 40px rgba(100, 255, 218, 0.3);
            border: 1px solid var(--accent);
        }
        
        .portfolio-img-container {
            position: relative;
            height: 250px;
            overflow: hidden;
        }
        
        .portfolio-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .portfolio-item:hover .portfolio-img {
            transform: scale(1.1);
        }
        
        .portfolio-category {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(17, 34, 64, 0.8);
            color: var(--accent);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            backdrop-filter: blur(5px);
            z-index: 2;
        }
        
        .portfolio-overlay {
            padding: 25px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
            background: linear-gradient(180deg, transparent 0%, var(--primary) 100%);
        }
        
        .portfolio-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--silver);
            font-weight: 700;
            position: relative;
            display: inline-block;
        }
        
        .portfolio-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 60px;
            height: 2px;
            background: var(--accent);
        }
        
        .portfolio-description {
            color: var(--light-gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
            line-height: 1.7;
        }
        
        .btn {
            padding: 12px 25px;
            background: #d4af37;
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #f9f9f9;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            max-width: 180px;
            text-align: center;
            margin: 0 auto;
        }
        
        .btn:hover {
            background: rgba(100, 255, 218, 0.1);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
        }
        
        .btn i {
            transition: var(--transition);
        }
        
        .btn:hover i {
            transform: translateX(5px);
        }
        
        /* Project Tags */
        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 10px auto;
        }
        
        .tag {
            background: rgba(100, 255, 218, 0.1);
            color: var(--accent);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        /* Animation Effects */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .portfolio-item {
            animation: fadeIn 0.6s ease-out forwards;
            opacity: 0;
        }
        
        .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
        .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
        .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
        .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
        .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
        .portfolio-item:nth-child(6) { animation-delay: 0.6s; }
        .portfolio-item:nth-child(7) { animation-delay: 0.7s; }
        .portfolio-item:nth-child(8) { animation-delay: 0.8s; }
        .portfolio-item:nth-child(9) { animation-delay: 0.9s; }
        .portfolio-item:nth-child(10) { animation-delay: 1.0s; }
        .portfolio-item:nth-child(11) { animation-delay: 1.1s; }
        .portfolio-item:nth-child(12) { animation-delay: 1.2s; }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .portfolio-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                font-size: 2.2rem;
            }
            
            .portfolio-filters {
                gap: 10px;
            }
            
            .filter-btn {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
            
            .portfolio-grid {
                grid-template-columns: 1fr;
            }
        }

/* Project Details */

.project-details {
    margin-bottom: 30px;
}

/* Section Témoignages */
        .testimonials-section {
            background: rgba(17, 34, 64, 0.2);
            backdrop-filter: blur(10px);
            border-radius: var(--radius);
            padding: 60px 30px;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(212, 175, 55, 0.1);
            box-shadow: var(--shadow);
        }
        
        .testimonials-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--gold), transparent);
            z-index: 1;
        }
    
        
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }
        
        .testimonial-card {
            background: linear-gradient(145deg, rgba(17, 34, 64, 0.7), rgba(10, 25, 47, 0.8));
            border-radius: var(--radius);
            padding: 35px;
            transition: var(--transition);
            border: 1px solid rgba(212, 175, 55, 0.15);
            backdrop-filter: blur(8px);
            position: relative;
            z-index: 2;
            transform: translateY(0);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .testimonial-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
            border-color: var(--gold);
            background: linear-gradient(145deg, rgba(17, 34, 64, 0.8), rgba(10, 25, 47, 0.9));
        }
        
        .quote-icon {
            position: absolute;
            top: 25px;
            right: 25px;
            font-size: 3rem;
            color: rgba(212, 175, 55, 0.1);
            z-index: 1;
        }
        
        .testimonial-content {
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 25px;
            color: var(--light-grey);
            position: relative;
            z-index: 2;
            font-weight: 400;
            padding-right: 20px;
        }
        
        .testimonial-content::before {
            content: '"';
            position: absolute;
            top: -15px;
            left: -15px;
            font-size: 4rem;
            color: rgba(212, 175, 55, 0.2);
            font-family: Georgia, serif;
            z-index: -1;
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
            z-index: 2;
        }
        
        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold), #b8860b);
            color: var(--dark-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.5rem;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
        }
        
        .author-info {
            display: flex;
            flex-direction: column;
        }
        
        .author-info h4 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 3px;
        }
        
        .author-info p {
            font-size: 0.9rem;
            color: var(--silver);
            margin: 0;
        }
        
        .sector-tag {
            display: inline-block;
            background: rgba(212, 175, 55, 0.1);
            color: var(--gold);
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-top: 8px;
            border: 1px solid rgba(212, 175, 55, 0.2);
        }
        
        
/* Section Boîte à outils */
.role-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Contact Section */
.contact {
background: linear-gradient(
    180deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;
/*  border-radius: 12px; */
}

.contact {
    color: var(--gold);
}

.contact {
    color: var(--silver);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-details h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--gold);
}

.contact-details p, .contact-details a {
    color: var(--silver);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--gold);
}

/* Ajoutez dans votre section CSS existante */
.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

input:invalid, textarea:invalid {
    border-color: #ff6b6b;
}

input:invalid + .error-message,
textarea:invalid + .error-message {
    display: block;
}

#formMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--radius);
    display: none;
}

#formMessage.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    display: block;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

#formMessage.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    display: block;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--silver);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-link:hover {
    background: var(--gradient-gold);
    transform: translateY(-5px);
    color: var(--secondary);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(204, 214, 246, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form select {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form select:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form label {
    color: var(--silver);
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}


/* Footer */
footer {
  background: linear-gradient(
    0deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;
/*  border-radius: 12px; */

  /* Bordure dorée en haut */
  border-top: 3px solid #d4af37; /* Or classique */
}


.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-about p {
    margin-bottom: 20px;
    color: var(--silver);
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    transition: var(--transition);
    color: var(--silver);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: var(--silver);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--silver);
}

/* Enhanced Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* Chatbot amélioré */

#chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #112240;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    max-width: 360px;
    font-family: 'Segoe UI', sans-serif;
    color: #ccd6f6;
    z-index: 10000;
}
/*
#chatbox {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 12px;
}
#chatbox div {
    margin-bottom: 8px;
} */
#userInput {
    width: calc(100% - 70px);
    padding: 6px;
    border-radius: 6px;
    border: none;
}
button {
    padding: 6px 10px;
    background: #d4af37;
    color: #020c1b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
a {
    color: #d4af37;
    text-decoration: underline;
}

/* Enhanced Chatbot */
#chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 110px;
    background: var(--gradient-gold);
    color: var(--secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#chatbot-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 320px;
    height: 400px;
    background: rgba(10, 25, 47, 0.95);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(2, 12, 27, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

#chatbot-container.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#chatbot-header {
    background: rgba(17, 34, 64, 0.9);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.chatbot-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--gold);
}

.chatbot-info p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    color: var(--silver);
}

#chatbot-close {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    color: var(--silver);
}

#chatbot-close:hover {
    opacity: 1;
    color: var(--gold);
}

#chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(10, 25, 47, 0.7);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--silver);
}

.user-message {
    background: var(--gradient-gold);
    color: var(--secondary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

#chatbot-input {
    padding: 15px;
    background: rgba(17, 34, 64, 0.9);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    background: rgba(10, 25, 47, 0.7);
    color: var(--silver);
}

#user-input:focus {
    border-color: var(--gold);
}

#send-btn {
    background: var(--gradient-gold);
    color: var(--secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    box-shadow: var(--shadow);
}

#send-btn:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 18px;
    align-self: flex-start;
    margin-top: 5px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}


/* Section All projects */ 
/* Project Modal */
.modal {
  display: none;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
  transition: opacity 0.3s ease;
}


.modal.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}


.modal-content {
    background: rgba(10, 25, 47, 0.95);
    border-radius: var(--radius);
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.5s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

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

.modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold);
}

.modal-title {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: var(--gold-light);
    font-weight: 600;
}

.modal-body {
    margin-bottom: 30px;
}

.project-section {
    margin-bottom: 30px;
}

.project-section h2 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.project-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.project-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--silver);
}

.project-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: var(--silver);
}

.project-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.2rem;
}

.chart-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(17, 34, 64, 0.5);
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.chart-title {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-align: center;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.chart-item {
    background: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

        
.chart-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chart-explanation {
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    border-left: 4px solid var(--accent);
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tagline {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 10px 25px;
    display: inline-block;
    margin: 20px 0;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    background: linear-gradient(45deg, #3498db, #1abc9c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background-color: #e0f7fa;
    color: #0097a7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}


@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.project-section:last-child {
    border-bottom: none;
}

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

.highlight-card {
    background: #897a49;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.highlight-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-card h3 i {
    color: var(--accent);
    font-size: 1.4rem;
}

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

.method-card {
    background-color: #897a49;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--secondary);
}

.method-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.keyword {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

    
        @media (max-width: 768px) {
            .chart-grid {
                grid-template-columns: 1fr;
            }
            
            .modal-content {
                width: 95%;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .subtitle {
                font-size: 1.1rem;
            }
        }


/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 85vw;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        border-width: 8px 16px 8px 0;
        border-color: transparent var(--primary-light) transparent transparent;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustements pour la fusion des sections */
    .portfolio-hero {
        padding-bottom: 100px;
    }
    
    .timeline-section {
        margin-top: -80px;
        padding-top: 110px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 25, 47, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .logo img {
    width: 50px;
    height: 50px;
    }
    .hamburger {
        display: block;
        font-size: 1.3rem;
    }

    .portfolio-hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustements pour la fusion des sections */
    .portfolio-hero {
        padding-bottom: 100px;
    }
    
    .timeline-section {
        margin-top: -60px;
        padding-top: 80px;
    }
}

@media (max-width: 576px) {
        /* Header mobile */
    .header-container {
        flex-wrap: wrap;
    }
    .section {
        padding: 70px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

/*    #chatbot-container {
        width: 300px;
        height: 400px;
    } */

    .modal-content {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }
        .language-selector {
        margin-left: 0;
    }
    .language-btn {
    padding: 6px 10px;
    }
    
    /* Ajustements pour la fusion des sections */
    .portfolio-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    
    .timeline-section {
        margin-top: -50px;
        padding-top: 60px;
    }
    
    .testimonials-grid {
    grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 25px;
    }
}

/* Background patterns */
section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 50px),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0px, transparent 50px);
    z-index: -1;
    pointer-events: none;
}

/* Gold accents */
.gold-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0.3;
    z-index: -1;
}


