.dots-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    margin-top: 8px;
}
.dot {
    font-size: 2rem;
    color: #222;
    margin: 0 6px;
    opacity: 0.85;
    transition: opacity 0.2s;
}
/* Lockscreen macOS style */
.lockscreen-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(30,30,30,0.35);
    padding: 40px 32px 32px 32px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    z-index: 9999;
}

@media screen and (max-width: 768px) {
    .lockscreen-container {
        padding: 30px 20px 25px 20px;
        border-radius: 20px;
        width: 85%;
        max-width: 300px;
    }
}

.profile-section {
    margin-bottom: 24px;
}
.profile-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.7);
    background: #eee;
}

@media screen and (max-width: 768px) {
    .profile-img {
        width: 80px;
        height: 80px;
    }
}

.input-section {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lockscreen-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.85);
    outline: none;
    letter-spacing: 0.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

@media screen and (max-width: 768px) {
    .lockscreen-input {
        font-size: 1rem;
        padding: 10px 14px;
    }
}
.input-animation {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #007aff 0%, #00c6ff 100%);
    border-radius: 12px;
    opacity: 0.25;
    z-index: 1;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}
.access-btn {
    width: 240px;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #007aff 0%, #00c6ff 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.access-btn:hover {
    background: linear-gradient(90deg, #0051a8 0%, #0096c7 100%);
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media screen and (max-width: 768px) {
    body::before {
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    }
}

@media screen and (min-width: 769px) {
    body::before {
        background-image: url('../assets/fond-1080.jpg');
        background-size: cover;
        background-position: center;
    }
}

@media screen and (min-width: 1921px) {
    body::before {
        background-image: url('../assets/fond-1920.jpg');
    }
}

[x-cloak] { 
    display: none !important; 
}

.transition {
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.translate-y-full {
    transform: translate(-50%, 100vh);
}

.translate-y-0 {
    transform: translate(-50%, -50%);
}

.background-img {
    display: none;
}

header  {
    background: rgba(22, 22, 22, 0.2);
    color: white;   
    width: 100%;
    height: 1px;
    align-items: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    position: fixed;
}


header nav ul {
    list-style: none;
    display: flex;
    margin-right: 20px;
}

header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

header nav a:hover {
    color: #b6b1b1;
    cursor: pointer;
}

.experience {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 20px;
    color: white;
    max-width: 90%;
    max-height: 85%;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
    .experience {
        max-width: 95%;
        max-height: 90%;
        padding: 20px;
        border-radius: 15px;
    }
}

.experience[x-cloak] {
    transform: translate(-50%, 100%) !important;
    opacity: 0;
}


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

.experience li img {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}
.experience li img:hover {
    transform: scale(1.2);
    cursor: pointer;
}


#close-nav {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}

#close-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ===== STYLES SECTION EXPERIENCE ===== */

/* En-tête profil */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.profile-info h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role {
    margin: 0 0 8px 0;
    color: #B0B0B0;
    font-size: 16px;
    font-style: italic;
}

.location {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* Sections avec icônes */
.section-block {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.section-block h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.section-block h3 .icon {
    margin-right: 10px;
    font-size: 24px;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: #667eea;
    font-size: 18px;
}

.timeline-date {
    color: #B0B0B0;
    font-size: 14px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

/* Badges */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
}

/* Grille des compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.skill-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.skill-item span {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.skill-level {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 2s ease;
    animation: fillBar 2s ease-in-out;
}

.skill-bar[data-level="90"] { width: 90%; }
.skill-bar[data-level="85"] { width: 85%; }
.skill-bar[data-level="80"] { width: 80%; }
.skill-bar[data-level="75"] { width: 75%; }
.skill-bar[data-level="70"] { width: 70%; }

@keyframes fillBar {
    from { width: 0; }
}

/* Liens sociaux */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.social-link img {
    width: 24px;
    height: 24px;
}

.linkedin:hover {
    border-color: #0077b5;
    box-shadow: 0 8px 16px rgba(0, 119, 181, 0.3);
}

.github:hover {
    border-color: #333;
    box-shadow: 0 8px 16px rgba(51, 51, 51, 0.3);
}

/* Responsive pour la section experience */
@media screen and (max-width: 768px) {
    .experience {
        max-width: 98%;
        padding: 20px;
        margin: 5px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .experience {
        max-width: 98%;
        padding: 20px;
        margin: 5px;
    }
}

.project {
    background-color: rgba(237, 237, 237, 0.95);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 10px;
    color: #333;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1000;
}

@media screen and (max-width: 768px) {
    .project {
        max-width: 95%;
        max-height: 90%;
        padding: 15px;
        border-radius: 10px;
    }
}

.project[x-cloak] {
    transform: translate(-50%, 100%) !important;
    opacity: 0;
}

.close-nav {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}

.close-nav:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.projet {
background-color: rgb(237, 237, 237);
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.contact{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .contact {
        max-width: 95%;
        padding: 10px;
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.menu-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#hover-text {
    position: absolute;
    text-align: center;
    width: 100px;
    font-size: 16px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 5px;
    border-radius: 5px;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.3s ease;
}

li:hover #hover-text {
    opacity: 1; 
}

footer nav ul {
    list-style: none;
    display: flex;
    border-radius: 12px;
    margin-right: 20px;
    background-color: rgba(22, 22, 22, 0.2);
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 22px 0;
}

@media screen and (max-width: 768px) {
    footer nav ul {
        padding: 15px 0;
        margin-right: 0;
        width: 100%;
    }
    
    footer nav ul img {
        width: 45px !important;
        margin: 0 8px !important;
    }
}

footer nav ul li {
    position: relative;
    display: inline-block;
}

footer nav ul img {
    width: 60px;
    height: auto;
    margin: 0 10px;
    transition: transform 0.3s;
}

footer nav ul img:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* Tooltips au-dessus des icônes */
.hover-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(22, 22, 22, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hover-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(22, 22, 22, 0.9);
}

footer nav ul li:hover .hover-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

footer nav a {
    text-decoration: none;
    color: white ;
    font-weight: bold;
}










@media screen and (max-width: 680px) {
    header h1 {
        display: none;

    }

}


form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: #4A90E2;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

form button[type="submit"]:active {
    transform: translateY(-1px);
}

form button[type="submit"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

form button[type="submit"]:hover:before {
    left: 100%;
}


form input::placeholder,
form textarea::placeholder {
    color: #999;
    font-style: italic;
}


@media screen and (max-width: 600px) {
    form {
        margin: 10px;
        padding: 20px;
    }
    
    form input[type="text"],
    form input[type="email"],
    form textarea {
        padding: 12px 15px;
    }
}




.projects-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.projects-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-header .icon {
    margin-right: 15px;
    font-size: 32px;
}

.projects-subtitle {
    color: #B0B0B0;
    font-size: 16px;
    margin: 0;
    font-style: italic;
}

/* Grille des projets */
.projects-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* Cartes de projet */
.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Informations du projet */
.project-info {
    padding: 25px;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: bold;
}

.project-card p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Stack technologique */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Actions du projet */
.project-actions {
    display: flex;
    gap: 15px;
}

.preview-btn,
.live-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.preview-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    border: 2px solid rgba(102, 126, 234, 0.4);
    flex: 1;
    font-weight: 700;
}

.preview-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    color: #4c51bf;
}

.live-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Preview des projets */
.project-preview {
    position: relative;
    height: 400px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.project-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%;
    height: 125%;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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


.project-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: #B0B0B0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive pour les projets */
@media screen and (max-width: 768px) {
    .project {
        max-width: 98%;
        padding: 20px;
        margin: 5px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-preview {
        height: 300px;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .projects-header h2 {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .project, .experience, .contact {
        max-width: 100vw !important;
        width: 100vw !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
        padding: 15px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        top: 50% !important;
    }
}

@media screen and (max-width: 440px) {
    footer nav ul img{
        width: 40px;
        height: auto;
        margin: 0 5px;
    }
    
    .project-card {
        margin: 0;
    }
    
    .project-info {
        padding: 10px;
    }
    
    .experience,
    .project,
    .contact {
        max-width: 100vw !important;
        width: 100vw !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        top: 50% !important;
    }
}