:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #fff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
}

.bg-light {
    background-color: #f8f9fb !important;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.sticky {
    padding: 15px 0;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 24px;
}

.navbar-toggler {
    border: none;
    padding: 0;
    outline: none;
}

.navbar-toggler-icon {
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon i {
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}
.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-item.active .nav-link:before {
    width: 100%;
}

.language-switch {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 5px 10px !important;
    border-radius: 4px;
}

/* Ajout de la police Brittany */
@font-face {
    font-family: 'Brittany';
    src: url('../fonts/Brittany.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.hero-section {
    position: relative;
    height: 100vh;
    background-color: var(--light-color);
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajout de l'overlay pour toute la section hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/IMG03.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

/* Ajout d'un second overlay avec dégradé pour améliorer la lisibilité du texte */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(247, 247, 250, 0.7), rgba(143, 148, 251, 0.3));
    z-index: -1;
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 48px; /* Taille augmentée pour HELLO JE SUIS */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif; /* Police par défaut pour HELLO JE SUIS */
    text-align: center;
    width: 100%;
}

.hero-content h1 span:first-of-type {
    font-family: 'Brittany', sans-serif; /* Conserver Brittany uniquement pour Napo GNOFAM */
}

.hero-title-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Modification pour mettre le texte dynamique sur la même ligne */
.typed-text-output {
    font-size: 25px;
    font-weight: 600;
    color: var(--accent-color);
    display: inline;
    margin-left: 10px;
    font-family: 'Brittany', sans-serif; /* Appliquer Brittany au texte dynamique */
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.85;
}

.hero-img img {
    max-width: 80%;
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* About Section */
.about-content h3, .about-education h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-image {
    text-align: center;
    margin-bottom: 30px;
}

.about-image img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.personal-info {
    margin-top: 30px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.education-item {
    margin-bottom: 25px;
}

.education-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-item .institution {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.education-item .year {
    font-size: 14px;
    color: #777;
}

.certificate-item p {
    margin-bottom: 10px;
}

.certificate-item i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Experience Section */
.timeline {
    position: relative;
    padding: 40px 0;
}

.company-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 5px;
}

.company-details {
    display: flex;
    flex-direction: column;
}

.company-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--primary-color);
}

.company-info h5 {
    font-size: 14px;
    font-weight: 400;
    color: #777;
    margin-top: 0;
}

.timeline:before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    left: 50px;
    top: 0;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 40px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.timeline-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 10px;
}

/* Skills Section */
.skills-content h3,
.tools-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #f1f1f1;
}

.progress-bar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

/* Nouvelles classes pour les catégories de compétences */
.skill-category {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 8px;
}

.skill-category h4 i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.skill-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.skill-list li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
}

.skill-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 18px;
    line-height: 1;
}

/* Styles pour les compétences avec menu déroulant */
.dropdown-skill {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-skill:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-skill h4 i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.skill-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 10px;
}

.dropdown-skill:hover .skill-details {
    max-height: 300px; /* Valeur suffisamment grande pour contenir tout le contenu */
}

.skill-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.skill-list li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    font-size: 15px;
}

.skill-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Mise en page équilibrée pour les compétences et outils */
.skills-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.skills-section .col-md-6 {
    margin-bottom: 30px;
}

/* Hauteur minimale pour les conteneurs de compétences et d'outils */
.skills-content, .tools-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    flex-grow: 1;
    align-content: flex-start;
}

.tool-item {
    background-color: #fff;
    padding: 18px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-item i {
    font-size: 18px;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.tool-item:hover i {
    color: #fff;
}

/* Contact Section */
.contact-info h3,
.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 16px;
    color: #777;
}

.form-control {
    height: 50px;
    border-radius: 25px;
    padding: 0 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    box-shadow: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(78, 84, 200, 0.1);
}

textarea.form-control {
    height: auto;
    padding: 15px 20px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    padding: 50px 0 20px;
    color: #fff;
}

.footer-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.footer-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}



.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-btn {
        justify-content: center;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-year {
        width: 80px;
        font-size: 12px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .typed-text-output {
        font-size: 20px;
    }
    
    .about-education {
        margin-top: 40px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tool-item {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .dropdown-skill {
        padding: 15px;
    }
    
    .skills-section .row {
        display: block;
    }
    
    .skills-content, .tools-content {
        height: auto;
        margin-bottom: 30px;
    }
    
    .contact-form {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 30px;
    }
    
    .typed-text-output {
        font-size: 18px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Portfolio Section */
.portfolio-filters {
    margin-bottom: 30px;
}

.btn-filter {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 30px;
    margin: 0 5px 10px;
    transition: var(--transition);
    font-size: 14px;
}

.btn-filter.active, .btn-filter:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-container {
    margin-top: 20px;
}

.portfolio-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 84, 200, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
}

.portfolio-link, .portfolio-zoom {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    margin: 0 5px;
    color: var(--primary-color);
    line-height: 45px;
    text-align: center;
    transition: var(--transition);
}

.portfolio-link:hover, .portfolio-zoom:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.portfolio-info p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .portfolio-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .btn-filter {
        padding: 6px 15px;
        font-size: 13px;
        margin: 0 3px 8px;
    }
    
    .portfolio-img img {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .portfolio-img img {
        height: 200px;
    }
}

/* Application de la police Brittany pour Napo Gnofam dans le footer et la navbar */
.navbar-brand, .footer-info h3, .copyright p {
    font-family: 'Brittany', sans-serif;
}