article {
    width: 90%;
    max-width: 1024px;
    margin: 2rem auto 4rem;
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--card-foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

article:first-of-type {
    margin-top: 4rem;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/** A Propos **/
#apropos .description {
    width: calc(100% - 320px);
    display: inline-block;
    text-align: justify;
}

#apropos .download {
    display: block;
    position: absolute;
    top: 180px;
    right: 20px;
    width: 225px;
    height: 225px;
    background-color: #1b526e;
    border-radius: 3px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 28px;
}

#apropos .download:hover {
    background-color: #143c50;
}

#apropos .download .cv {
    font-size: 80px;
    font-style: normal;
    vertical-align: middle;
    line-height: 150px;
}

@media only screen and (max-width: 700px) {
	#apropos .description {
		width: 100%;
		display: block;
	}
	
	#apropos .download {
		display: block;
		position: inherit;
		width: 100%;
		height: 100px;
		top: 0;
		right: 0;
	}
	
	#apropos .download .cv {
		font-size: 28px;
		line-height: 50px;
	}

}

/** Compétences **/
#competences .competences {
    padding-left: 40px;
    padding-right: 40px;
    width: 49%;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
}

#competences table {
    width: 100%;
    height: 100%;
}

#competences table tr {
    font-size: 22px;
    font-style: normal;
    vertical-align: middle;
    line-height: 40px;
}

#competences #competences-2 {
    border-left: 3px solid #262b37;
}

#competences .note {
    color: #b3b3b3;
    text-align: right;
    text-shadow: -2px 2px 2px #d1d1d1;
}

#competences .level {
    color: #00aeef;
}

@media only screen and (max-width: 930px) {
	#competences .competences {
		width: 100%;
		display: block;
	}
	
	#competences #competences-2 {
		border-left: 0px solid #262b37;
	}
}

@media only screen and (max-width: 500px) {
	#competences table tr {
		font-size: 15px;
	}
}
	
/** Expériences **/
.dates .element {
    width: calc(100% - 60px);
    min-height: 140px;
    padding: 0 0 3rem 2.5rem;
    margin-left: 55px;
    margin-bottom: 0.5rem;
    position: relative;
}

.dates .element:last-child {
    padding-bottom: 1rem;
}

.dates .date {
    position: absolute;
    top: 0;
    left: -55px;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50%;
    background-color: var(--primary);
    background-image: linear-gradient(135deg, oklch(from var(--primary) l + 0.05 c h), var(--primary));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateX(0);
}

.dates .date:hover {
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.date-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    position: relative;
    transform: translateY(-4px);
}

.date-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.4) 0%, rgba(var(--primary-rgb), 0) 70%);
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.date:hover .date-glow {
    opacity: 1;
    transform: scale(1.5);
}

.date-year {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0 0 2px 0;
}

.date-separator {
    margin: -1px 0.2rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.date-now {
    font-size: 0.7rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 1rem;
    margin-top: 0.1rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.date-icon {
    position: absolute;
    bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.date:hover .date-icon {
    opacity: 1;
    transform: translateY(-3px);
}

.dates .description {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    position: relative;
    transition: none;
    z-index: 1;
    margin-left: 20px;
}

.dates .description:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.dates h3 {
    color: var(--foreground);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.dates h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.dates .description p {
    margin: 0.75rem 0;
}

.dates .description ul {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.dates .description li {
    margin-bottom: 0.5rem;
}

/* Nouvelles styles pour la timeline améliorée */
.timeline {
    position: relative;
    padding-bottom: 1rem;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 0;
    left: 55px;
    width: 2px;
    background: linear-gradient(to bottom, 
                              var(--primary) 0%, 
                              var(--primary) 60%, 
                              rgba(var(--primary-rgb), 0.1) 100%);
    opacity: 0.4;
    z-index: 0;
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.2);
}

.timeline .element::after {
    content: '';
    position: absolute;
    top: 55px;
    left: 55px;
    width: 24px;
    height: 1px;
    background-color: var(--primary);
    opacity: 0.4;
    z-index: 0;
    transform: translateX(-50%);
    box-shadow: 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.experience-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.experience-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-header h4 i {
    color: var(--primary);
    font-size: 0.9rem;
}

.experience-intro {
    color: var(--foreground);
    margin: 1.25rem 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.6;
    font-style: normal;
    border-left: none;
    padding-left: 0;
}

.experience-section {
    margin-bottom: 1.5rem;
}

.experience-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary);
    margin: 1.25rem 0 0.75rem 0;
    font-weight: 600;
}

.experience-section h5 i {
    width: 20px;
    text-align: center;
}

.experience-tech {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tech-tag {
    background-color: var(--accent-muted);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

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

.exp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.exp-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dates .element {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        padding-bottom: 2.5rem;
    }
    
    .dates .date {
        position: relative;
        left: 0;
        width: auto;
        height: auto;
        font-size: 0.8rem;
        background: var(--primary);
        border-radius: 4px;
        padding: 8px 12px;
        display: inline-block;
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        margin-bottom: 1rem;
    }

    .date-content {
        padding: 0;
        flex-direction: row;
        gap: 0.3rem;
        transform: none;
    }

    .date-year, .date-month, .date-now {
        margin: 0;
        font-size: 0.8rem;
    }

    .date-separator {
        margin: 0;
    }

    .date-icon {
        display: none;
    }

    .date-glow {
        display: none;
    }

    .dates .date:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .timeline::before {
        display: none;
    }
    
    .timeline .element::after {
        display: none;
    }

    .timeline .element:first-child::before,
    .timeline .element:last-child::before {
        display: none;
    }

    .dates .description {
        margin-left: 0;
    }

    .tech-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .experience-header h4 {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .tech-tags {
        gap: 0.3rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/** Projets **/
.projets .element {
    width: calc(100% - 75px);
    min-height: 140px;
    padding: 25px 25px 0px 25px;
    margin-left: 75px;
    position: relative;
}

.projets .projet {
    position: absolute;
    top: 15px;
    left: -78px;
    width: 200px;
    height: 156px;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 25px;
    border-style: solid;
    border-width: 3px;
    border-radius: 3px;
    border-color: #00aeef;
    overflow: hidden;
}

.projets .projet img {
    width: 200px;
}

.projets .description {
    width: calc(100% - 140px);
    display: inline-block;
    margin-top: 20px;
    margin-left: 122px;
    padding: 15px 30px;
    background-color: #dadada;
    border-radius: 2px;
    position: relative;
    box-sizing: border-box;
}

.projets .description::before {
    content: "\0000a0";
    position: absolute;
    top: 32px;
    left: -12px;
    background-color: #dadada;
    width: 30px;
    height: 30px;
    transform: rotate(45deg);
}

.projets h3 {
    color: #262b37;
    font-size: 30px;
    margin: 0px;
}

.projet .description p {
    margin: 10px 0px;
}

/** Contacter **/
#contact {
    width: 100%;
    display: block;
}

#contact-mail, #contact-coordonnees {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#contact h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

#contact-form p {
    display: flex;
    gap: 1rem;
    margin: 0;
    width: 100%;
}

#contact-form input,
#contact-form textarea {
    padding: 0.75rem 1rem;
    background-color: var(--background);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
}

#contact-nom, #contact-email {
    flex: 1;
    width: 100%;
}

#contact-message {
    width: 100%;
}

#contact-textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
}

#contact-submit {
    background-color: #0078d7 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 1rem !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    font-size: 16px !important;
    text-shadow: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#contact-submit:hover {
    background-color: #005fa3 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

#contact-coordonnees table {
    width: 100%;
}

#contact-coordonnees td {
    padding: 0.75rem 0;
}

.contactIcone {
    width: 40px;
    color: var(--primary);
    font-size: 1.25rem;
}

.contactValeur {
    font-weight: 500;
}

@media (max-width: 768px) {
    #contact {
        width: 100%;
        display: block;
    }
    
    #contact-form p {
        flex-direction: column;
    }
    
    #contact-nom, #contact-email {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.secret {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left;
}

/* Nouvelles styles pour les compétences */
.competences-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.competence-category {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: none;
}

.competence-category:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.competence-category h3 {
    color: var(--primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.competences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.competence-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.competence {
    font-weight: 500;
}

.note {
    display: flex;
    gap: 3px;
}

.level {
    color: var(--primary);
}

@media (max-width: 768px) {
    .competences-categories {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la section Projets */
#projets .projets-container {
    margin-top: 2rem;
}

.projets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projet-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: none;
}

.projet-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.projet-image {
    height: 200px;
    overflow: hidden;
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.projet-card:hover .projet-image img {
    transform: none;
}

.projet-content {
    padding: 1.5rem;
}

.projet-content h3 {
    margin-top: 0;
    color: var(--foreground);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.projet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.projet-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

.projet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.projet-link:hover {
    color: oklch(from var(--primary) l - 0.1 c h);
}

.projet-link i {
    transition: transform 0.3s ease;
}

.projet-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .projets-container {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la section À propos */
.apropos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 0;
}

.apropos-image {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
}

.apropos-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: none;
}

.apropos-image:hover img {
    transform: none;
}

.apropos-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.apropos-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.apropos-social a:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.apropos-content {
    flex: 2;
    min-width: 300px;
}

.apropos-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.apropos-header h4 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.apropos-text {
    margin-bottom: 2rem;
}

.apropos-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.apropos-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.phone-link-inline {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border-bottom: 1px dashed var(--primary);
    padding-bottom: 1px;
    cursor: pointer;
}

.phone-link-inline:hover {
    color: oklch(from var(--primary) l - 0.1 c h);
    border-bottom-style: solid;
}

.phone-link-inline.revealed {
    color: var(--foreground);
    border-bottom: none;
    font-weight: 600;
}

.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cv-download:hover {
    background-color: oklch(from var(--primary) l - 0.05 c h);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .apropos-container {
        flex-direction: column;
        align-items: center;
    }
    
    .apropos-details {
        justify-content: center;
    }
    
    .cv-download {
        display: block;
        margin: 1rem auto 0;
        text-align: center;
        justify-content: center;
    }
    
    .apropos-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

#contact-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: flex-start;
}