/* General styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: linear-gradient(135deg, #1e293b, #0f172a); /* Modern gradient */
    color: #e2e8f0; /* Light text color */
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.9); /* Semi-transparent header */
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.conteneur-logo {
    max-width: 80px;
}

.logo {
    width: 100%;
    height: auto;
    margin-left: 20px;
}

.menu-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-navigation li {
    margin: 0 20px;
}

.menu-navigation a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.menu-navigation a:hover {
    color: #38bdf8; /* Soft cyan on hover */
    border-bottom: 2px solid #38bdf8;
}

/* Hero Section */
.section-heros {
    position: relative;
    height: 100vh; /* Full viewport height */
    background: url('background.jpg') no-repeat center center/cover; /* Background image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; /* Text color */
}

.contenu-heros {
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Shadow effect */
}

.photo-heros {
    width: 300px;
    height: 300px;
    border-radius: 50%; /* Circular photo */
    border: 4px solid #005bd1; /* Cyan border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Shadow effect */
    margin-bottom: 20px; /* Space below the photo */
}

.contenu-heros h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contenu-heros p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* CV Section */
.cv-section {
    padding: 50px 20px;
    text-align: center;
}

.cv-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cv-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

/* CV Thumbnail and Button */
.cv-thumbnail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.cv-thumbnail {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border: 3px solid #38bdf8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bouton-cta {
    text-decoration: none;
    background: #38bdf8;
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
}

.cv-btn:hover {
    background: #0284c7;
    transform: scale(1.05);
}

/* Competences Section */
.competences-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensures full height of the viewport */
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #0f172a); /* Modern gradient */
    color: #e2e8f0; /* Light text color */
    padding: 20px;
    box-sizing: border-box;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.section-title p {
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* Updated skill container for rows */
.competence-container {
    display: flex;
    flex-wrap: wrap; /* Allows multiple rows */
    justify-content: center; /* Centers items */
    gap: 20px; /* Space between items */
    width: 100%;
    max-width: 1200px; /* Limits the width of the container */
}

.competence-item {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Adds shadow for better visibility */
    border-radius: 8px; /* Rounded corners */
    padding: 20px;
    width: calc(20% - 20px); /* Fits 5 items per row with gap */
    min-width: 150px; /* Ensures a minimum width */
    max-width: 200px; /* Limits the width of each skill card */
    text-align: center; /* Center text */
    transition: transform 0.3s, box-shadow 0.3s;
}

.competence-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.competence-item h3 {
    font-size: 1.2rem;
    color: #38bdf8;
    margin-bottom: 10px;
}

.competence-bar {
    background-color: #ddd; /* Light gray for the bar background */
    border-radius: 4px;
    overflow: hidden;
    height: 10px; /* Bar height */
    margin-top: 10px;
}

.competence-progress {
    background-color: #38bdf8;
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.competence-level {
    font-size: 1rem;
    color: #cbd5e1;
    margin-top: 5px;
}

.competence-item .competence-level {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Form Section */
.competence-form {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    max-width: 1200px; /* Wider form for horizontal layout */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent form background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Adds shadow for better visibility */
    border-radius: 10px; /* Rounded corners */
    padding: 20px;
}

.competence-form form {
    display: flex; /* Horizontal layout */
    flex-wrap: wrap; /* Wraps if content overflows */
    align-items: center; /* Aligns items vertically */
    justify-content: center; /* Centers the items horizontally */
    gap: 15px; /* Space between items */
}

.competence-form h3 {
    color: #fff;
    margin-bottom: 20px;
}

.competence-form label {
    font-weight: bold;
    color: #e2e8f0;
    align-self: center; /* Aligns labels with inputs */
}

.competence-form input[type="range"] {
    display: none; /* Hide range input */
}

.competence-form select#niveau {
    background-color: #1e293b;
    color: #e2e8f0;
    font-size: 16px;
    border: 2px solid #38bdf8;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
}

.competence-form input,
.competence-form select,
.competence-form button {
    flex: 1; /* Allows elements to resize evenly */
    min-width: 120px; /* Minimum width for inputs and buttons */
    max-width: 200px; /* Maximum width for inputs and buttons */
    padding: 10px;
    border: 2px solid #38bdf8;
    border-radius: 5px;
    font-size: 16px;
    background-color: #1e293b;
    color: #e2e8f0;
}

.competence-form span {
    display: block;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 10px;
}

.competence-form button {
    cursor: pointer;
    background-color: #38bdf8;
    transition: background 0.3s ease;
}

.competence-form button:hover {
    background-color: #0284c7;
}

/* Portfolio Section */
.portfolio-section {
    padding: 2rem;
    background-color: #1e293b;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.8);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #444;
}

.portfolio-info {
    padding: 1rem;
    text-align: center;
}

.portfolio-info h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.portfolio-info p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Modal Styles */
.portfolio-item img {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #38bdf8;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Section */
.contact-section {
    background-color: #1e293b;
    padding: 50px 20px;
    text-align: center;
}

.contact-section .section-title {
    margin-bottom: 40px;
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-section .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-section label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

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

.contact-section button {
    padding: 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

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

/* About Me Section */
.about-me {
    background-color: #1e293b;
    padding: 40px 20px;
    text-align: center;
}

.about-me h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about-me p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}


footer {
    display: flex;
    flex-direction: column;
    align-items: center;  /* This centers the items horizontally */
    justify-content: center;  /* This centers the items vertically */
    padding: 20px;
    background-color: #161d3e; /* Add a background color (optional) */
    color: #fff; /* Text color */
    text-align: center;  /* Ensure the text is centered */
    position: relative;  /* Make sure it's positioned relative */
    bottom: 0;
    width: 100%;
}

footer .Suivez-moi {
    margin-top: 10px;
}

footer a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}
