/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: #0b1120;
    color: #ffffff;
    line-height: 1.6;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s, background 0.3s;
}

.nav-links li a:hover {
    color: #0b1120;
    background: #ffffff;
    border-radius: 5px;
}

/* Header Styles */
.main-header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cv-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.cv-button:hover {
    background-color: #555;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.portfolio-title {
    font-size: 1.5em;
    font-weight: bold;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Navigation Styles */
.main-header {
    position: fixed; /* Fixe tout le header (logo, réseaux sociaux, menu) en haut */
    top: 0;
    left: 0;
    width: 100%; /* Occupe toute la largeur de l'écran */
    background: linear-gradient(to right, #333, #222);
    z-index: 1000; /* Affiche au-dessus du reste de la page */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

body.scrolled .main-header {
    background-color: #222; /* Couleur plus sombre */
    padding: 5px 20px; /* Réduit la hauteur */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.portfolio-title {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #00d4ff;
}

.navbar {
    margin-top: 10px; /* Donne de l'espace si nécessaire */
    position: fixed; /* Fixe le menu en haut de la page */
    top: 0; /* Attaché en haut */
    left: 0;
    width: 100%; /* Menu sur toute la largeur */
    background-color: #333;
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s, background-color 0.3s;
}

.nav-links li a:hover {
    color: #0b1120;
    background: #ffffff;
    border-radius: 5px;
}

body {
    padding-top: 100px; /* Laisse de la place pour le header fixé */
}

    

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background: radial-gradient(circle, #0b1120, #1a2b48);
}

.hero-content {
    max-width: 50%;
    text-align: left;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.8;
}

.hero-image img {
    max-width: 350px;
    border-radius: 50%;
    border: 5px solid #00d4ff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section {
    padding: 3rem 5%;
    background-color: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-section h3 {
    font-size: 1.8rem;
    color: #4A90E2;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-section ul {
    list-style: disc;
    margin-left: 2rem;
    font-size: 1.1rem;
}

.about-section ul li {
    margin-bottom: 0.5rem;
}

/* Generic Section */
.section {
    padding: 60px 20px;
    text-align: center;
    background: #111827;
}

.section:nth-child(even) {
    background: #1a2b48;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.section p {
    font-size: 1rem;
    color: #d1d5db;
}

/* Progress Bars */
.progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 20px;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #81c784);
    transition: width 0.5s ease-in-out;
}

.niveau {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.formation-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 10px auto;
}

.formation {
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #0b1120;
    font-size: 0.9rem;
    color: #d1d5db;
}

.mail {
    padding: 40px;
    margin: 20px auto;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form {
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: #4caf50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #45a049;
}

.erreurs ul {
    list-style: none;
    padding: 0;
    color: #d32f2f;
}

.confirmation {
    color: #4caf50;
    font-weight: bold;
    text-align: center;
}

p {
    font-weight: bold;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

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

    .hero-content p {
        font-size: 1rem;
    }
}

/* Animation Effects */
.fade {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}
