:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family:Lato, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-bottom: 70px; /* Espace pour la navigation en bas */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.bottom-nav {
    bottom: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.bottom-nav li {
    flex: 1;
    text-align: center;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.bottom-nav i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== SECTIONS COMMON STYLES ===== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-top: 80px; /* Compensation pour le header fixe */
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-image img {
    max-width: 200px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    margin: 20px 0 15px;
    color: var(--primary-color);
}

.info-list {
    list-style: none;
    margin: 20px 0;
}

.info-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.info-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 20px;
    position: absolute;
    left: 0;
}

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

.level {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    margin-top: 5px;
}

.level.native { background-color: #2ecc71; }
.level.fluent { background-color: #3498db; }
.level.intermediate { background-color: #f39c12; }

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill {
    margin-bottom: 20px;
}

.skill h3 {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-info p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.project-tech {
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;      
    margin: 0 auto;        
    padding: 0 20px; 
}

.contact-info, .contact-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.status {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: none;
}

.status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.loading {
    display: block;
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    margin: 10px 5px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.text-center {
    text-align: center;
    margin: 20px 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .hero .container {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-content {
        flex: 1;
        padding-right: 50px;
        margin-bottom: 0;
    }
    
    .hero-image {
        flex: 1;
    }
    
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .contact-container {
        flex-direction: row;
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-nav a {
        font-size: 1rem;
    }
    
    .bottom-nav i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}
 /* ==== SKILLS SECTION ==== */
 .skills-section {
    padding: 80px 0 100px;
    background-color: var(--bg-color);
 }


 .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
 }

 .skill-category {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    }
.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

 .skill-category h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
 }

 .skill {
    margin-bottom: 20px;
    }

 .skill h3 {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--dark-color);
 }
 
.skill-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
 }
 @media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    .skill-category {
     padding: 20px;
    }
 }
 .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: rgba(0,0,0,0.5);
    justify-content: center;  /* centre horizontalement */
    align-items: center;      /* centre verticalement */
    }

.modal.active {
    display: flex;
    }

#cv-modal .download-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 10px 20px;
    background: #0073e6;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}    

/* Card pop-up */
.modal-content {
  background-color: #fff;
  border-radius: 10px;      
  padding: 20px;
  width: 80%;
  max-width: 700px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;         /* scroll si contenu trop long */
  transition: all 0.3s ease;
}

/* Bouton fermer */
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}