/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
}

nav ul { display: flex; }
nav ul li { margin-left: 20px; }
nav ul li a { font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: #0056b3; }

/* --- HERO HEADER --- */
header {
    height: 85vh;
    background: linear-gradient(135deg, #0056b3, #002a5c);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

header h1 { font-size: 3.5rem; margin-bottom: 10px; }
header h2 { font-size: 1.5rem; font-weight: 300; margin-bottom: 20px; color: #cbdced; }

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn.primary { background-color: #ff9800; color: white; }
.btn.primary:hover { background-color: #e68900; }

.btn.secondary { border: 2px solid white; color: white; background: transparent; }
.btn.secondary:hover { background-color: white; color: #0056b3; }

.btn.small { font-size: 0.9rem; padding: 8px 15px; }

/* --- SECTIONS GÉNÉRALES --- */
section { padding: 4rem 10%; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #002a5c;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ff9800;
    margin: 10px auto 0;
}

/* --- COMPÉTENCES --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.skill-card {
    flex: 1 1 300px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.skill-card:hover { transform: translateY(-5px); }
.skill-card i { font-size: 2.5rem; color: #0056b3; margin-bottom: 1rem; }
.skill-card h3 { margin-bottom: 1rem; color: #002a5c; }
.skill-card ul { text-align: left; padding-left: 20px; }
.skill-card ul li::before { content: "•"; color: #ff9800; font-weight: bold; display: inline-block; width: 1em; }

/* --- PROJETS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }

.project-img-placeholder {
    background-color: #e9ecef;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    overflow: hidden;
}

.project-info { padding: 20px; }
.project-info h3 { margin-bottom: 10px; color: #002a5c; }
.tag {
    background-color: #e3f2fd;
    color: #0056b3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

/* --- CENTRES D'INTÉRÊT --- */
.interests-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.interest-item {
    flex: 1 1 250px;
    text-align: center;
    padding: 20px;
    max-width: 350px;
}

.interest-icon {
    width: 80px;
    height: 80px;
    background-color: #e3f2fd;
    color: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px auto;
    transition: 0.3s;
}

.interest-item:hover .interest-icon {
    background-color: #0056b3;
    color: white;
    transform: scale(1.1);
}

.interest-item h3 {
    color: #002a5c;
    margin-bottom: 10px;
}

.interest-item p {
    font-size: 0.95rem;
    color: #555;
}

/* --- GESTION DES IMAGES (FIT) --- */
.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- VUES DÉTAILS (FICHE PRODUIT & PARCOURS) --- */
.detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.btn-back {
    background: none;
    border: 2px solid #0056b3;
    color: #0056b3;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-back:hover { background-color: #0056b3; color: white; }

.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.img-box-large {
    background-color: #e9ecef;
    height: 400px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    overflow: hidden;
}
.product-details h1 { font-size: 2.5rem; color: #002a5c; margin-bottom: 15px; }
.product-details h3 {
    margin-top: 25px; margin-bottom: 10px; color: #0056b3;
    border-bottom: 2px solid #ff9800; display: inline-block;
}
.product-details li { margin-bottom: 8px; }

/* --- TIMELINE (EXPÉRIENCES) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e3f2fd;
    top: 0; bottom: 0; left: 20px;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}
.timeline-dot {
    position: absolute;
    width: 20px; height: 20px;
    left: 12px;
    background-color: #0056b3;
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 2px #0056b3;
}
.timeline-date { font-weight: bold; color: #ff9800; margin-bottom: 5px; font-size: 0.9rem; }
.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.timeline-content h3 { color: #002a5c; margin-bottom: 5px; }
.timeline-content h4 { color: #666; font-weight: normal; font-style: italic; margin-bottom: 15px; }
.timeline-content ul { list-style-type: disc; padding-left: 20px; color: #444; }

/* --- FOOTER --- */
footer {
    background-color: #002a5c;
    color: white;
    text-align: center;
    padding: 3rem 10%;
}
.social-links { margin: 20px 0; }
.social-links a { margin: 0 15px; font-size: 1.2rem; transition: 0.3s; color: white; }
.social-links a:hover { color: #ff9800; }
.copyright { font-size: 0.8rem; color: #aaa; margin-top: 20px; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    header h1 { font-size: 2.2rem; }
    nav ul { display: none; }
    .product-container { grid-template-columns: 1fr; }
    .img-box-large { height: 250px; }
    .timeline::after { left: 15px; }
    .timeline-dot { left: 7px; }
    .timeline-item { padding-left: 45px; padding-right: 0; }
}
