/* Section Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px 20px;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.main-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
}

.main-btn:hover:before {
    width: 100%;
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--light-color);
    border-right: 2px solid var(--light-color);
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll-down 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Section À propos */
/* Section About - Mobile First */
.about {
    padding: 40px 0;
    background-color: var(--darker-color);
}

/* Desktop: plus d'espace */
@media screen and (min-width: 769px) {
    .about {
        padding: 100px 0;
    }
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    position: relative;
    padding: 0 15px;
}

@media screen and (min-width: 769px) {
    .section-title {
        margin-bottom: 60px;
        padding: 0;
    }
}

.section-title span {
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex-wrap: wrap;
    gap: 30px;
}

/* Mobile-first: empiler verticalement par défaut */
@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }
}

.about-img {
    flex: 1;
    min-width: 100%;
    max-width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.img-card {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 3/4;
    perspective: 1000px;
}

@media screen and (min-width: 769px) {
    .about-img {
        min-width: 300px;
        max-width: none;
        padding: 20px;
    }
    
    .img-card {
        width: 300px;
        height: 400px;
    }
}

.img-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.img-card:hover .img-card-inner {
    transform: rotateY(180deg);
}

.img-card-front, .img-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 769px) {
    .img-card-front, .img-card-back {
        width: 80%;
    }
}

.img-card-front {
    background-color: var(--dark-color);
}

.img-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-card-back {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.img-card-back h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 10px;
}

.img-card-back p {
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 5px;
}

.about-text {
    flex: 1;
    min-width: 100%;
    max-width: 100%;
    padding: 10px;
}

@media screen and (min-width: 769px) {
    .about-text {
        min-width: 300px;
        max-width: none;
        padding: 20px;
    }
}

.about-text h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-text p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.9;
    text-align: justify;
}

@media screen and (min-width: 769px) {
    .about-text h3 {
        margin-bottom: 20px;
    }
    
    .about-text p {
        margin-bottom: 20px;
        text-align: left;
    }
}

.soft-skills h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 25px 0 15px;
    color: var(--primary-color);
}

@media screen and (min-width: 769px) {
    .soft-skills h3 {
        margin: 30px 0 20px;
    }
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media screen and (min-width: 769px) {
    .skills-container {
        gap: 10px;
    }
}

.skill {
    padding: 8px 15px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.skill:before {
    content: attr(data-skill);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
}

.skill:hover:before {
    width: 100%;
}

/* Timeline - Mobile First */
.timeline {
    width: 100%;
    padding: 30px 10px;
    margin-top: 30px;
}

.timeline h3 {
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 30px;
    color: var(--primary-color);
    padding: 0 15px;
}

@media screen and (min-width: 769px) {
    .timeline {
        padding: 50px 20px;
        margin-top: 50px;
    }
    
    .timeline h3 {
        margin-bottom: 40px;
        padding: 0;
    }
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

@media screen and (min-width: 769px) {
    .timeline-container {
        padding: 0;
    }
}

.timeline-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--light-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd):after {
    right: -10px;
}

.timeline-item:nth-child(even):after {
    left: -10px;
}

.timeline-content {
    padding: 15px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

@media screen and (min-width: 769px) {
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        transform-origin: right center;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        transform-origin: left center;
    }
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.timeline-content p {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    line-height: 1.6;
    opacity: 0.9;
    word-break: break-word;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Section Projets */
.projects {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    height: 250px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: var(--transition);
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(77, 68, 219, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-title {
    color: var(--light-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-category {
    color: var(--light-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition);
    opacity: 0.8;
}

.project-link {
    color: var(--light-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-title,
.project-card:hover .project-category,
.project-card:hover .project-link {
    transform: translateY(0);
}



/* Section Compétences */
.skills {
    padding: 100px 0;
    background-color: var(--darker-color);
}

.skills-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.skill-category {
    flex: 1;
    min-width: 300px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

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

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

.skill-info span {
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress-width, 0%);
    background-color: #007bff; /* Bleu vif */
    border-radius: 5px;
    transition: width 1.5s ease;
}

.skill-circle {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.circle-progress {
    position: relative;
    width: 150px;
    height: 150px;
}

.circle-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(108, 99, 255, 0.1);
    stroke-width: 3;
}

.circle-fill {
    fill: none;
    stroke: #007bff; /* Bleu vif */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 0, 100;
    transition: stroke-dasharray 1.5s ease;
}

.circle-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circle-info span {
    display: block;
}

.circle-info .percent {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff; /* Bleu vif */
}

/* Section Citation */
.quote {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.quote-slide {
    display: none;
    animation: fade 1.5s ease;
}

.quote-slide.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.quote-slide p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quote-slide span {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.quote-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(108, 99, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* Section Contact - Mobile First */
.contact {
    padding: 40px 0;
    background-color: var(--darker-color);
}

/* Desktop: plus d'espace */
@media screen and (min-width: 769px) {
    .contact {
        padding: 100px 0;
    }
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

/* Mobile-first: empiler verticalement par défaut sur petits écrans */
@media screen and (max-width: 767px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 15px;
    }

    .contact-info,
    .contact-form {
        min-width: 100%;
        width: 100%;
    }
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.info-item p {
    font-size: 1rem;
    opacity: 0.9;
}

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

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    color: var(--light-color);
    font-size: 16px; /* Évite le zoom automatique sur iOS */
    transition: var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

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

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gray-color);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--darker-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.error-message {
    display: block;
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 5px;
    opacity: 0;
    transition: var(--transition);
}

.form-group.error .error-message {
    opacity: 1;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--error-color);
}

.submit-btn {
    position: relative;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    width: auto;
    min-width: 200px;
    touch-action: manipulation; /* Améliore la réactivité tactile */
    display: inline-block;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top-color: var(--light-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: var(--transition);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    padding: 60px 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo a {
    color: var(--light-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.footer-links a:hover:after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    flex: 1;
    min-width: 150px;
}

.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.scroll-top {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Section Blog */
.blog {
    padding: 100px 0;
    background-color: var(--darker-color);
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-card {
    background-color: var(--dark-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.15);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.blog-content {
    padding: 25px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.blog-summary {
    font-size: 1rem;
    color: var(--light-color);
    opacity: 0.9;
    margin-bottom: 20px;
    flex: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 8px 22px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.08);
}

.blog-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Styles pour les projets dynamiques */
.project-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.status-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.completed .status-badge {
    background: #28a745;
}

.project-status.in_progress .status-badge {
    background: #ffc107;
    color: #212529;
}

.project-status.planned .status-badge {
    background: #17a2b8;
}

.project-status.on_hold .status-badge {
    background: #6c757d;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-tag.more {
    background: var(--text-muted);
    font-style: italic;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.project-link.github {
    background: #333;
}

.project-link.live {
    background: #28a745;
}

.project-link.demo {
    background: #17a2b8;
}

.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-projects p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.no-projects p:last-child {
    font-size: 1rem;
    opacity: 0.8;
}

/* Styles pour la page de détail des projets */
.project-detail {
    padding: 120px 0 80px;
    background: var(--bg-color);
    min-height: 100vh;
}

.project-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.project-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* En-tête du projet */
.project-header {
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.project-category, .project-status, .project-duration, .project-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-status.completed i {
    color: #28a745;
}

.project-status.in_progress i {
    color: #ffc107;
}

.project-status.planned i {
    color: #17a2b8;
}

.project-status.on_hold i {
    color: #6c757d;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-image {
    margin: 0;
    overflow: hidden;
    text-align: center;
    background: var(--bg-color);
    padding: 20px;
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Résumé du projet */
.project-summary {
    padding: 30px 40px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.project-summary p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    text-align: center;
    font-style: italic;
}

/* Technologies utilisées */
.project-technologies-section {
    padding: 30px 40px;
    background: var(--card-bg);
}

.project-technologies-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.technologies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.tech-badge:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Description complète */
.project-description {
    padding: 30px 40px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.project-description h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Liens du projet */
.project-links-section {
    padding: 30px 40px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.project-links-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.project-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.project-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-link-card.github {
    background: #333;
}

.project-link-card.live {
    background: #28a745;
}

.project-link-card.demo {
    background: #17a2b8;
}

/* Informations du projet */
.project-info {
    padding: 30px 40px;
    background: var(--bg-color);
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.project-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.info-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.status-text.completed {
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #28a745;
}

.status-text.in_progress {
    color: #ffc107;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #ffc107;
}

.status-text.planned {
    color: #17a2b8;
    font-weight: 600;
    background: rgba(23, 162, 184, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #17a2b8;
}

.status-text.on_hold {
    color: #6c757d;
    font-weight: 600;
    background: rgba(108, 117, 125, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #6c757d;
}

/* Projets similaires */
.similar-projects {
    margin-top: 60px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.similar-projects h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.similar-project-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.similar-project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-project-content {
    padding: 20px;
}

.similar-project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.similar-project-category {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.similar-project-summary {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.similar-project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.similar-project-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Bouton retour */
.back-to-projects {
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.back-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

/* Styles pour la page d'article détaillée */
.article-detail {
    padding: 120px 0 80px;
    background: var(--bg-color);
    min-height: 100vh;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.article-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* En-tête de l'article */
.article-header {
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-date, .article-author, .article-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-image {
    margin: 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

/* Corps de l'article */
.article-body {
    padding: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

.article-body h2, .article-body h3, .article-body h4 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-body h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
}

.article-body ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
    font-size: 1.2em;
}

.article-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Styles pour le formatage Markdown avancé */
.article-paragraph {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.article-heading {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.custom-list {
    margin: 20px 0;
    padding-left: 30px;
}

.custom-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
}

.custom-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
    font-size: 1.2em;
}

/* Styles pour le code */
.article-body code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.article-body pre {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.article-body pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--text-color);
}

/* Styles pour les tableaux */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-body th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-body tr:hover {
    background: var(--bg-color);
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
}

.article-body code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.article-body pre {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Pied de l'article */
.article-footer {
    padding: 30px 40px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.article-tags {
    margin-bottom: 25px;
}

.tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.article-share h4 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Articles similaires */
.similar-articles {
    margin-top: 60px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.similar-articles h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.similar-article-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.similar-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.similar-article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.similar-article-content {
    padding: 20px;
}

.similar-article-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.similar-article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.similar-article-summary {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.similar-article-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.similar-article-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Bouton retour */
.back-to-home {
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.back-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

/* Message pas d'articles */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-articles p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.no-articles p:last-child {
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive pour la page de détail des projets */
@media screen and (max-width: 768px) {
    .project-detail {
        padding: 100px 20px 60px;
    }
    
    .project-content {
        border-radius: 15px;
    }
    
    .project-header {
        padding: 30px 25px 25px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .project-summary,
    .project-technologies-section,
    .project-description,
    .project-links-section,
    .project-info {
        padding: 25px;
    }
    
    .project-links-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .similar-projects {
        padding: 25px;
        margin-top: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .back-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .project-header {
        padding: 25px 20px 20px;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-summary,
    .project-technologies-section,
    .project-description,
    .project-links-section,
    .project-info {
        padding: 20px;
    }
    
    .project-links-grid {
        grid-template-columns: 1fr;
    }
    
    .project-link-card {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Responsive pour la page d'article */
@media screen and (max-width: 768px) {
    .article-detail {
        padding: 100px 20px 60px;
    }
    
    .article-content {
        border-radius: 15px;
    }
    
    .article-header {
        padding: 30px 25px 25px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .article-body {
        padding: 25px;
        font-size: 1rem;
    }
    
    .article-footer {
        padding: 25px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .similar-articles {
        padding: 25px;
        margin-top: 40px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .back-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .article-header {
        padding: 25px 20px 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-body {
        padding: 20px;
    }
    
    .article-footer {
        padding: 20px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item {
        margin: 15px 0;
    }

    /* Bouton CV sur mobile */
    .cv-download-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        justify-content: center;
        width: auto;
        min-width: 120px;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .about-container, .contact-container {
        flex-direction: column;
    }

    /* Optimisations About pour mobile */
    .about {
        padding: 30px 0;
    }

    .about-container {
        gap: 25px;
        padding: 0 10px;
    }

    .about-img {
        padding: 5px;
    }

    .img-card {
        max-width: 250px;
    }

    .img-card-back h3 {
        font-size: 1.4rem;
    }

    .img-card-back p {
        font-size: 0.9rem;
    }

    .about-text {
        padding: 5px;
    }

    .about-text h3 {
        margin-bottom: 12px;
    }

    .about-text p {
        margin-bottom: 12px;
        text-align: justify;
    }

    .soft-skills h3 {
        margin: 20px 0 12px;
    }

    .skills-container {
        gap: 6px;
    }

    .skill {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .timeline {
        padding: 25px 5px;
        margin-top: 25px;
    }

    .timeline h3 {
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .timeline-container {
        padding: 0 5px;
    }

    .timeline-content {
        padding: 12px;
    }

    .timeline-content h4 {
        margin-bottom: 6px;
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Optimisations Contact pour mobile */
    .contact {
        padding: 60px 0;
    }

    .contact-container {
        gap: 40px;
        padding: 0 15px;
    }

    .contact-info,
    .contact-form {
        min-width: 100%;
        width: 100%;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .info-item {
        margin-bottom: 18px;
        flex-wrap: wrap;
    }

    .info-item i {
        font-size: 1.1rem;
        margin-right: 12px;
        width: 25px;
    }

    .info-item p {
        font-size: 0.95rem;
        line-height: 1.5;
        word-break: break-word;
    }

    .social-links {
        margin-top: 25px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 14px 12px;
        font-size: 16px; /* Évite le zoom sur iOS */
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .form-group label {
        top: 14px;
        left: 12px;
        font-size: 0.95rem;
    }

    .form-group input:focus + label,
    .form-group textarea:focus + label,
    .form-group input:valid + label,
    .form-group textarea:valid + label {
        top: -8px;
        left: 8px;
        font-size: 0.75rem;
        padding: 0 4px;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        margin-top: 10px;
        min-width: auto;
    }

    .timeline-container:before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:after {
        left: 20px;
    }



    .theme-switch-wrapper {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .skills-container {
        gap: 20px;
        max-width: 90%;
    }

    .skill-category {
        min-width: 250px;
    }

    .skill-bar {
        margin-bottom: 15px;
        max-width: 90%;
    }

    .progress-bar {
        height: 8px;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .hero-heading {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .skills-container {
        gap: 15px;
        max-width: 85%;
    }

    .skill-category {
        min-width: 200px;
    }

    .skill-bar {
        margin-bottom: 12px;
        max-width: 85%;
    }

    .progress-bar {
        height: 6px;
    }

    .circle-progress {
        width: 100px;
        height: 100px;
    }

    .circle-info .percent {
        font-size: 1rem;
    }

    .circle-info span {
        font-size: 0.8rem;
    }

    /* Contact - Très petits écrans */
    .contact {
        padding: 40px 0;
    }

    .contact-container {
        gap: 30px;
        padding: 0 10px;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

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

    .info-item i {
        font-size: 1rem;
        margin-right: 10px;
        width: 22px;
    }

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

    .social-links {
        margin-top: 20px;
        gap: 10px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 12px 10px;
        font-size: 16px;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-group label {
        top: 12px;
        left: 10px;
        font-size: 0.9rem;
    }

    .form-group input:focus + label,
    .form-group textarea:focus + label,
    .form-group input:valid + label,
    .form-group textarea:valid + label {
        top: -7px;
        left: 6px;
        font-size: 0.7rem;
    }

    .submit-btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.95rem;
        min-width: auto;
    }

    .form-message {
        font-size: 0.85rem;
        padding: 8px;
        margin-top: 15px;
    }
}

/* Mode clair amélioré */
body.light-mode {
    background-color: var(--lighter-color);
    color: #000000 !important;
}

body.light-mode .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Texte en mode clair - Version plus contrastée */
body.light-mode .navbar-links,
body.light-mode .navbar-logo,
body.light-mode .hero-description,
body.light-mode .footer-links a,
body.light-mode .footer-logo a,
body.light-mode .footer-logo p,
body.light-mode .footer-bottom p,
body.light-mode .info-item p,
body.light-mode .timeline-content p,
body.light-mode .about-text p,
body.light-mode .project-category,
body.light-mode .project-title,

body.light-mode .quote-slide p,
body.light-mode .form-group label,
body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .skill-info span,
body.light-mode .circle-info span,
body.light-mode .section-title,
body.light-mode .contact-info p,
body.light-mode .contact-form p,
body.light-mode .timeline-content h4,
body.light-mode .about-text h3,
body.light-mode .soft-skills h3,
body.light-mode .timeline h3 {
    color: #000000 !important;
    font-weight: 500 !important;
}

/* Liens en mode clair - Version plus contrastée */
body.light-mode a {
    color: #0000EE !important;
    text-decoration: none !important;
}

body.light-mode a:hover {
    color: #551A8B !important;
    text-decoration: none !important;
}

/* Liens spécifiques en mode clair */
body.light-mode .navbar-links,
body.light-mode .footer-links a,
body.light-mode .footer-logo a,
body.light-mode .project-link,

body.light-mode .blog-btn {
    text-decoration: none !important;
}

/* Bouton CV en mode clair */
body.light-mode .cv-download-btn {
    background-color: #007bff;
    color: #ffffff !important;
}

body.light-mode .cv-download-btn:hover {
    background-color: #0056b3;
    color: #ffffff !important;
}

/* Titres en mode clair - Version plus contrastée */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Sections spécifiques en mode clair - Version plus contrastée */
body.light-mode .section-title span,

body.light-mode .contact-info h3,
body.light-mode .contact-form h3,
body.light-mode .skill-category h3 {
    color: #0000EE !important;
    font-weight: 700 !important;
}

/* Formulaire en mode clair - Version plus contrastée */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
    color: #000000 !important;
    border: 2px solid #000000 !important;
    background-color: #FFFFFF !important;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    border-color: #0000EE !important;
    box-shadow: 0 0 5px rgba(0, 0, 238, 0.5) !important;
}

/* Boutons en mode clair - Version plus contrastée */
body.light-mode .filter-btn {
    color: #000000 !important;
    border: 2px solid #000000 !important;
    background-color: #FFFFFF !important;
}

body.light-mode .filter-btn.active,
body.light-mode .filter-btn:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* Icônes en mode clair - Version plus contrastée */
body.light-mode .info-item i,
body.light-mode .social-links a i,
body.light-mode .social-icons a i {
    color: #0000EE !important;
}

/* Barres de progression en mode clair */
body.light-mode .progress-bar {
    background-color: #CCCCCC !important;
}

body.light-mode .progress-bar:after {
    background-color: #007bff !important; /* Bleu vif */
}

/* Cercles de progression en mode clair */
body.light-mode .circle-bg {
    stroke: #CCCCCC !important;
}

body.light-mode .circle-fill {
    stroke: #007bff !important; /* Bleu vif */
}

/* Section Blog en mode clair */
body.light-mode .blog {
    background-color: var(--lighter-color);
}

body.light-mode .blog-card {
    background-color: var(--light-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

body.light-mode .blog-title {
    color: var(--primary-color);
}

body.light-mode .blog-summary {
    color: var(--dark-color);
}

body.light-mode .blog-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
}

body.light-mode .blog-btn:hover {
    background-color: var(--secondary-color);
}

@media screen and (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-img {
        height: 180px;
    }
}

}

