/* ========== General Styles ========== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ========== Navbar Styles ========== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    position: relative;
    margin: 0 10px;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 1.5rem);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* ========== Hero Section ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-group-custom .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-group-custom .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-group-custom .btn-outline-primary {
    color: white;
    border-color: white;
}

.btn-group-custom .btn-outline-primary:hover {
    background-color: white;
    color: #667eea;
}

.hero-image {
    font-size: 150px;
    color: white;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ========== Feature Cards ========== */
.feature-card {
    padding: 40px 30px;
    border-radius: 15px;
    background: white;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card h3 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.95rem;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section .btn-light {
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ========== Stats Section ========== */
.stat-card {
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
    font-size: 1rem;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ========== About Section ========== */
.about-image {
    font-size: 200px;
    color: var(--primary-color);
    opacity: 0.8;
}

.about-image i {
    animation: float 3s ease-in-out infinite;
}

/* ========== Value Cards ========== */
.value-card {
    padding: 35px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.value-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.value-card:hover::after {
    top: -30%;
    right: -30%;
}

.value-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
    display: block;
}

.value-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 1.15rem;
}

.value-card p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.value-card:hover i {
    transform: scale(1.15) rotate(-10deg);
}

/* ========== Timeline ========== */
.timeline {
    position: relative;
    padding: 40px 0 60px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    z-index: 1;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    margin-right: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--light-bg);
    z-index: 10;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.timeline-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 30px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 0;
    }
}

/* ========== Education Cards ========== */
.education-card {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), rgba(102, 126, 234, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-card:hover::before {
    opacity: 1;
}

.education-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.education-card p {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.education-card p strong {
    color: var(--dark-text);
}

.education-card:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ========== Skills Section ========== */
.skill-item {
    padding: 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-item:hover::before {
    transform: scaleX(1);
}

.skill-item h4 {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.skill-bar {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.progress {
    height: 25px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    border-radius: 10px;
    transition: width 1s ease;
}

.soft-skill-badge {
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.soft-skill-badge i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.soft-skill-badge p {
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--dark-text);
}

.soft-skill-badge small {
    display: block;
    color: var(--secondary-color);
    font-size: 0.85rem;
    line-height: 1.4;
}

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

/* ========== Contact Form ========== */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.contact-info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item p {
    margin: 0;
    color: var(--secondary-color);
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-item a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* ========== Social Links ========== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-5px);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========== Footer ========== */
footer {
    width: 100%;
    margin-top: 80px;
    border-top: 1px solid #e9ecef;
    background-color: #212529;
    padding: 30px 0;
}

footer .container-fluid {
    text-align: center;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* ========== Success Message ========== */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 8px;
}

/* ========== Responsive ========== */
/* Grand écran - Desktop XL */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    .hero-section h1 {
        font-size: 4.5rem;
    }

    .hero-section .lead {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 40px;
    }

    .feature-card:hover {
        transform: translateY(-15px);
    }
}

/* Tablet et iPad */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        font-size: 100px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .feature-card {
        padding: 25px;
    }

    .stat-card {
        padding: 20px;
    }

    .timeline-item {
        margin-left: 0;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* Mobile - Médium */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-section .lead {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .btn-group-custom {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-group-custom .btn {
        margin: 0 !important;
        width: 100%;
    }

    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header .lead {
        font-size: 1rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    .education-card {
        padding: 20px;
    }

    .education-card h3 {
        font-size: 1rem;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .timeline-content ul {
        font-size: 0.9rem;
    }

    .contact-info-item {
        margin-bottom: 20px;
    }

    .contact-info-item i {
        font-size: 1.5rem;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.5rem !important;
        margin: 0 5px;
        font-size: 0.9rem;
    }
}

/* Mobile - Petit */
@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
        min-height: 70vh;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero-section .lead {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .hero-image {
        font-size: 80px;
        margin-top: 20px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header .lead {
        font-size: 0.9rem;
    }

    .btn-group-custom {
        gap: 8px;
    }

    .btn-group-custom .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .stat-card p {
        font-size: 0.8rem;
    }

    .education-card {
        padding: 15px;
        margin-bottom: 12px;
    }

    .education-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .education-card p {
        font-size: 0.8rem;
    }

    .skill-item {
        padding: 15px;
        margin-bottom: 12px;
    }

    .skill-item h4 {
        font-size: 0.95rem;
    }

    .timeline {
        padding: 0;
    }

    .timeline-item {
        margin-bottom: 25px;
        margin-left: 0;
    }

    .timeline-content {
        padding: 12px;
    }

    .timeline-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .timeline-content ul {
        font-size: 0.8rem;
        padding-left: 20px;
    }

    .contact-info-item {
        margin-bottom: 15px;
    }

    .contact-info-item h5 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .contact-info-item p {
        font-size: 0.85rem;
    }

    .contact-info-item a {
        font-size: 0.85rem;
    }

    .social-links-extended a {
        margin: 0 8px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-nav .nav-link {
        padding: 0.4rem 0.4rem !important;
        margin: 0 3px;
        font-size: 0.8rem;
    }

    .navbar-nav .nav-link::after {
        height: 2px;
    }

    footer {
        padding: 20px 0 !important;
    }

    footer p {
        font-size: 0.8rem;
    }
}

/* ========== Animations ========== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Print Styles ========== */
@media print {
    .navbar,
    footer,
    .cta-section {
        display: none;
    }

    body {
        background: white;
    }
}
