

.light .icon-link.brand-whatsapp i { color: #25D366; }
.dark .icon-link.brand-whatsapp i { color: #25D366; filter: brightness(0.85); }
.light .icon-link.brand-linkedin i { color: #0A66C2; }
.dark .icon-link.brand-linkedin i { color: #0A66C2; filter: brightness(0.85); }
.light .icon-link.brand-email i { color: #D14836; }
.dark .icon-link.brand-email i { color: #ffb3a7; }
.light .icon-link.brand-phone i { color: #0A66C2; }
.dark .icon-link.brand-phone i { color: #7ab8ff; }

/* Icônes neutres si pas de marque */
.light .icon-link i:not([class*='brand-']) { color: #333; }
.dark .icon-link i:not([class*='brand-']) { color: #fff; }

/* Icône soleil plus visible en dark mode */
.dark #theme-icon.fa-sun {
    color: #fae48a !important;
    text-shadow: 0 0 4px #fae48a, 0 0 16px #fffbe6;
    transition: color 0.2s, text-shadow 0.2s;
}
/* Couleurs d'icônes pour light/dark mode */
.icon-link i {
    font-size: 1.6rem;
    transition: color 0.2s;
}
.icon-link:hover i, .icon-link:focus i {
    filter: brightness(1.2) drop-shadow(0 2px 6px rgba(102,126,234,0.12));
}
/*   section visible */
.fade-in.animated {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.8s, transform 0.8s;
}
/* Bouton retour en haut */
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c5beac;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(102,126,234,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
}
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#backToTop:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
/* Animation d'apparition fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(.23,1.02,.32,1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Transition boutons et icônes */
.btn, .icon-link, .contact-link {
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}


@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #070707; }
}
      * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
            overflow-x: hidden;
        }

        body.light {
    background: #c5beac;
    color: #333;
        }

        body.dark {
            background: #1a1a2e;
            color: #eee;
        }

        nav {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            transition: background-color 0.3s;
        }

        nav.light {
            background:none;
        }

        nav.dark {
            background: none;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-wrapper {
            position: relative;
            width: 220px;
            height: 60px;
            cursor: pointer;
            perspective: 1000px;
        }

        .logo-face {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: center;
            border-radius: 12px;
            backface-visibility: hidden;
            transition: transform 0.9s ease, opacity 0.5s ease;
        }

        .logo-face span {
            font-size: 1.3rem;
            font-weight: bold;
            letter-spacing: 1px;
            transition: color 0.3s ease;
            background: #fcfcfb;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .logo-front {
            transform: rotateY(0deg);
        }

        .logo-back {
            transform: rotateY(180deg);
            opacity: 0;
        }

        .logo-wrapper:hover .logo-front {
            transform: rotateY(180deg);
            opacity: 0;
        }

        .logo-wrapper:hover .logo-back {
            transform: rotateY(0deg);
            opacity: 1;
        }

        .logo-wrapper:hover span {
            color: #c5beac;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: inherit;
            font-weight: 500;
            transition: color 0.3s;
            cursor: pointer;
        }

        .nav-links a:hover {
            color: #f9f2e1;
        }

        .nav-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .theme-toggle {
            background: none;
            border: 2px solid currentColor;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            font-size: 1.2rem;
        }

        .theme-toggle:hover {
            transform: rotate(180deg);
            background: #c5beac;
            border-color: #c5beac;
            color: white;
        }

        .mobile-menu {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: inherit;
        }

        section {
            min-height: 100vh;
            padding: 120px 1.5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            display: none;
        }

        section.active {
            display: block;
            animation: fadeIn 0.5s;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        #accueil {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        #accueil .container div{
    display:inline-block;
    padding: 2rem;
}
img{
    border-radius: 8px;
}

        .profile-pic {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: #eadfc2;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: white;
            margin-bottom: 2rem;
            box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .subtitle {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            opacity: 0.8;
        }

        .btn-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background: l#c5beac;
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        }

        .btn-secondary {
            background: rgba(102, 126, 234, 0.1);
            color: inherit;
        }

        .btn-secondary:hover {
            background: rgba(102, 126, 234, 0.2);
        }

        .card-grid {
            display: grid;
            gap: 2.5rem;
            margin: 2.5rem 0;
            align-items: stretch;
        }

        #competences .card-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        #projets .card-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }

        .card {
            padding: 2.2rem 2rem 2rem 2rem;
            border-radius: 20px;
            transition: all 0.3s;
            text-align: left;
            min-height: 100px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .light .card {
            background: #c5beac;
        }

        .dark .card {
            background: #1a1a2e;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            background: #f6dc9a;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin: 0 auto 1rem;
        }

        .card h3 {
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
            text-align: left;
        }

        .card p {
            margin-bottom: 0.5rem;
            opacity: 0.8;
            line-height: 1.6;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.7rem;
            justify-content: flex-start;
        }

        .tag {
            padding: 0.4rem 1rem;
            border-radius: 12px;
            font-size: 0.97rem;
            background: rgba(102, 126, 234, 0.2);
            color: #e3d4b0;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(52,56,94,0.07);
        }

        footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.icon-links {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}
.about-avatar img {
    border-radius: 8px;
}

.about-avatar .avatar {
        margin-bottom: 1.2rem;
}
.about-avatar .main-title {
        margin-top: 0.2rem;
        margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
    .about-avatar .avatar {
        margin-bottom: 0.7rem;
    }
    .about-avatar .main-title {
        margin-top: 0.1rem;
        margin-bottom: 0.3rem;
    }
}

.tab-button{
    font-size: 1.5rem;
    background-color: #fcc436;
    border-radius:8px;
    color:white;
    border-color: none;
    margin:0.5rem;
    size:2rem;
}

.about-avatar .avatar {
    margin-bottom: 1.2rem;
}
.about-avatar .main-title {
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}
.dark .line {
    color: #fff;
}
.btn.btn-primary[type="submit"] {
    justify-content: center;
    text-align: center;
}

.container .div{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}
.typing-gradient {
    background: #c5beac;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 1px;
}

.skills-animated {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0.7rem 0;
    animation: fadeInUp 1.2s 0.7s both;
}

.subtitle-highlight {
    color: #c5beac;
    font-weight: 700;
    margin-left: 0.3em;
}
@media (max-width: 600px) {
    .headline { font-size: 1.1rem; }
    .main-title { font-size: 1.3rem; }
    .skills-animated { gap: 0.3rem; }
}
/* === Timeline Section === */
.timeline-container {
    position: relative;
    margin: 2rem auto 3rem auto;
    padding-left: 30px;
    max-width: 700px;
}
.timeline-container:before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e4d3a9;
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 30px;
}
.timeline-dot {
    position: absolute;
    left: -2px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: #606060;
    border: 4px solid #fae9bc;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #e0e0ff;
    z-index: 1;
}
.timeline-date {
    font-size: 1rem;
    color: var(--primary, #060606);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.light .timeline-content {
    background: var(--card-bg, #dddcdc);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(80,80,120,0.07);
    margin-left: 0.5rem;
}
.dark .timeline-content {
    background: var(--card-bg, #a1a0a0);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(80,80,120,0.07);
    margin-left: 0.5rem;
}
.timeline-content h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--text, #222);
}
.timeline-content p {
    margin: 0;
    color: var(--text-light, #444);
    font-size: 0.98rem;
}
@media (max-width: 600px) {
    .timeline-container {
        padding-left: 15px;
    }
    .timeline-item {
        padding-left: 20px;
    }
    .timeline-dot {
        left: -6px;
        width: 14px;
        height: 14px;
    }
    .timeline-content {
        padding: 0.8rem 0.7rem;
    }
}
        /* === Tabs Styles === */
        .tabs-menu {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .tab-button {
            padding: 0.8rem 1.5rem;
            border: 2px solid transparent;
            border-radius: 8px;
            font-size: 1.5rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            background: rgba(255, 255, 255, 0.05);
            color: inherit;
            transform: translateY(2px);
        }

        .light .tab-button {
            background: rgba(255, 255, 255, 0.5);
            color: #333;
        }

        .dark .tab-button {
            background: rgba(255, 255, 255, 0.05);
            color: #eee;
        }

        .tab-button.w--current {
            background: #c5beac;
            color: white;
            border-color: #c5beac;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .tab-button:hover {
            transform: translateY(0px);
        }

        .tab-content {
            display: none;
        }

        .tab-content.w--current {
            display: block;
            animation: fadeIn 0.3s ease-in-out;
        }

        .about-container {
            display: flex;
            gap: 3rem;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .about-content {
            background: transparent;
            padding: 0;
            border-radius: 0;
            line-height: 1.8;
            font-size: 1.1rem;
            flex: 1;
            order: 1;
        }

        .about-content p {
            margin-bottom: 1.5rem;
            color: var(--text-light, #666);
        }

        .light .about-content p {
            color: #4a5568;
        }

        .dark .about-content p {
            color: #b0b0b0;
        }

        .about-avatar {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            order: 2;
            max-width: 190px;
        }

        .about-avatar img {
            border-radius: 12px;
            max-width: 100%;
            height: auto;
        }

        .light .about-avatar img {
            border-color: #d0d0d0;
        }

        .dark .about-avatar img {
            border-color: #555;
        }

        .light .contact-form-container {
            background: rgba(255, 255, 255, 0.9);
        }

        .dark .contact-form-container {
            background: rgba(255, 255, 255, 0.05);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border-radius: 10px;
            border: 2px solid rgba(102, 126, 234, 0.2);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .light .form-group input,
        .light .form-group textarea {
            background: white;
            color: #333;
        }

        .dark .form-group input,
        .dark .form-group textarea {
            background: rgba(255, 255, 255, 0.05);
            color: #eee;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #f7e6bc;
        }

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

        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-width: 600px;
            margin: 2rem auto;
        }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            border-radius: 15px;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s;
            cursor: pointer;
        }

        .light .contact-link {
            background: rgba(255, 255, 255, 0.9);
        }

        .dark .contact-link {
            background: rgba(255, 255, 255, 0.05);
        }

        .contact-link:hover {
            transform: translateX(10px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
        }

        .skill-item-mini {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            font-size: 2rem;
            color: var(--text-main);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .dark .skill-item-mini i {
            font-size: 3rem;
            color: none;
            transition: transform 0.3s;
        }
        .light .skill-item-mini i {
            font-size: 3rem;
            color: none;
            transition: transform 0.3s;
        }

        .card:hover .skill-item-mini i {
            transform: scale(1.2);
        }

        .skill-item-mini span {
            font-size: 1.1rem;
            font-weight: 600;
        }

        footer {
            text-align: center;
            padding: 2rem;
            opacity: 1;
            background-color: #070707;
        }

        .about-avatar{
            text-align: center;
            margin-bottom: 2rem;
        }

                .avatar {
            position: relative;
            display: inline-block;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: var(--gradient-main);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: var(--text-light);
            margin: 0 auto;
            box-shadow: 0 20px 40px rgba(52, 56, 94, 0.3);
        }

        .avatar::before {
            content: '';
            position: absolute;
            background: var(--gradient-secondary);
            border-radius: 50%;
            z-index: -1;
            animation: pulse 2s infinite;
        }

        /*icones*/
                .icon-links {
            display: flex;
            gap: 1rem;
            max-width: 300px;
            margin: 2rem auto;
            align-items: center;
        }

        .icon-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            border-radius: 15px;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s;
            cursor: pointer;
        }

        .light .icon-link {
            background: rgba(255, 255, 255, 0.9);
        }

        .dark .icon-link {
            background: rgba(255, 255, 255, 0.05);
        }

        .icon-link:hover {
            transform: translateX(10px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
        }

        .success-message {
            background: #4caf50;
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            display: none;
        }

        .success-message.show {
            display: block;
            animation: slideIn 0.3s;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 992px) {
            #projet .card-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 1.5rem;
            }
            .card-grid {
                grid-template-columns: repeat(2, minmax(100px, 1fr));
                gap: 1.5rem;
            }

            #competences .card-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            h1 {
                font-size: 2rem;
            }

            .subtitle {
                font-size: 1.2rem;
            }

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

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                padding: 1rem;
                gap: 1rem;
            }

            nav.light .nav-links {
                background: rgba(255, 255, 255, 0.98);
            }

            nav.dark .nav-links {
                background: rgba(22, 22, 40, 0.98);
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu {
                display: block;
            }

            .logo-wrapper {
                width: 150px;
            }

            .logo-face span {
                font-size: 1rem;
            }

            h1 {
                font-size: 1.8rem;
            }

            .subtitle {
                font-size: 1.1rem;
            }

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

            .btn {
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }

            .about-content {
                padding: 0;
                font-size: 1rem;
            }

            .about-container {
                flex-direction: column;
                gap: 1.5rem;
            }

            .about-avatar {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            order: 2;
            min-width: auto;
            width: 100%;
            max-width: 200px;
        }

            .card-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            #competences .card-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            section {
                padding: 100px 1rem 2rem;
            }

            .contact-form-container {
                padding: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .logo-wrapper {
                width: 120px;
            }

            /* Styles pour les icônes de contact */
            .contact-icons {
                display: inline-flex;
                gap: 12px;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
            }

            .icon-link {
                display: inline-flex;
                width: 48px;
                height: 48px;
                align-items: center;
                justify-content: center;
                border-radius: 10px;
                background: rgba(255,255,255,0.04);
                transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
                text-decoration: none;
                outline: none;
            }

            .icon {
                width: 26px;
                height: 26px;
                display: block;
            }

            .icon-link:hover,
            .icon-link:focus {
                transform: translateY(-4px);
                box-shadow: 0 8px 20px rgba(0,0,0,0.12);
                background: rgba(255,255,255,0.08);
            }

            .icon-link:focus {
                box-shadow: 0 0 0 3px rgba(102,126,234,0.18);
            }

            /*  responsive  */
            @media (max-width: 480px) {
                .icon-link { width: 44px; height:44px; }
                .icon { width:22px; height:22px; }
            }

            .logo-face span {
                font-size: 0.85rem;
            }

            h1 {
                font-size: 1.5rem;
            }

            .profile-pic {
                width: 120px;
                height: 120px;
                font-size: 3rem;
            }

            .btn-group {
                width: 100%;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }
        }
