:root {
    --bg-primary: #2e2e2e;
    --bg-secondary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-primary: #eaed5d;
    --accent-secondary: #d4d754;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Navigation mise à jour */
.navbar {
    padding: 1.5rem 2rem;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border: none;
    border-bottom: none;
    box-shadow: none;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;      /* Titre plus gras */
    color: #eaed5d;        /* Couleur jaune */
}

.nav-brand-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: #eaed5d;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand-link:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    border: none;
}

.nav-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.nav-icon:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Mise à jour du tooltip pour qu'il ne gêne pas la navigation */
.nav-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem; /* Réduit l'espace entre les icônes sur mobile */
    }
    
    .nav-brand {
        width: 50px; /* Réduit l'espace à gauche sur mobile */
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-primary);
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.profile-container {
    margin-bottom: 2rem;
}

/* Style de la photo de profil */
.profile-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    /* Suppression de toutes les bordures et ombres */
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary); /* Texte foncé pour meilleur contraste sur fond jaune */
    font-weight: 700; /* Plus gras pour meilleure lisibilité */
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(234, 237, 93, 0.3); /* Ajusté pour la couleur jaune */
}

.highlight {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
    background: rgba(234, 237, 93, 0.1); /* Ajusté pour la couleur jaune */
}

/* Projects Section */
.featured-projects {
    padding: 6rem 2rem;
    background-color: var(--bg-secondary);
}

.featured-projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

/* ... styles existants ... */

.greeting {
    margin: 2rem 0;
    text-align: center;
}

.greeting-small {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.greeting-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

.highlight {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Styles pour la page 404 */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-title {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.zero {
    display: inline-block;
    animation: spin 10s linear infinite;
}

.error-message {
    margin-bottom: 2rem;
}

.error-message .main-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-message .sub-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.error-actions {
    margin-top: 2rem;
}

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

/* Animation glitch pour le titre */
.error-title::before,
.error-title::after {
    content: "404";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    overflow: hidden;
    top: 0;
    left: 0;
}

.error-title::before {
    left: 3px;
    text-shadow: -2px 0 var(--accent-primary);
    animation: glitch-1 2s linear infinite;
}

.error-title::after {
    left: -3px;
    text-shadow: 2px 0 var(--accent-secondary);
    animation: glitch-2 2s linear infinite;
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(20% 0 30% 0);
    }
    20% {
        clip-path: inset(60% 0 1% 0);
    }
    40% {
        clip-path: inset(25% 0 58% 0);
    }
    60% {
        clip-path: inset(90% 0 1% 0);
    }
    80% {
        clip-path: inset(1% 0 58% 0);
    }
    100% {
        clip-path: inset(40% 0 40% 0);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(40% 0 43% 0);
    }
    20% {
        clip-path: inset(80% 0 5% 0);
    }
    40% {
        clip-path: inset(35% 0 48% 0);
    }
    60% {
        clip-path: inset(70% 0 3% 0);
    }
    80% {
        clip-path: inset(13% 0 40% 0);
    }
    100% {
        clip-path: inset(52% 0 30% 0);
    }
}

/* Responsive pour la page 404 */
@media (max-width: 768px) {
    .error-title {
        font-size: 6rem;
    }
    
    .error-message .main-text {
        font-size: 1.5rem;
    }
    
    .error-message .sub-text {
        font-size: 1rem;
    }
}

/* Styles pour la page de contact */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem 2rem;
    background-color: var(--bg-primary);
}

.contact-container {
    max-width: 600px;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--text-secondary);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .greeting-small {
        font-size: 1rem;
    }

    .greeting-large {
        font-size: 2rem;
    }
}

.name-highlight {
    color: #eaed5d;
    font-weight: 700;
}

/* Footer styles */
.footer {
    padding: 2rem;
    text-align: center;
    background-color: transparent;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-highlight {
    color: #eaed5d;
    font-weight: 500;
}

.heart {
    color: #eaed5d;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.greeting-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.4;
}

/* Section "Ils m'ont fait confiance" */
.trusted-by {
    padding: 2rem 2rem 4rem 2rem;
    text-align: center;
    background-color: transparent;
}

.trusted-by h2 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    padding: 0 2rem;
}

.logo-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
}

.logo-item img {
    max-width: 100%;
    height: auto;
    min-width: 150px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .trusted-by {
        padding: 1rem 1rem 2rem 1rem; /* Réduit le padding général */
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 colonnes */
        gap: 0.5rem; /* Réduit significativement l'espacement */
        padding: 0;
    }

    .logo-item {
        padding: 0.25rem; /* Réduit le padding autour des logos */
    }

    .logo-item img {
        min-width: auto; /* Permet aux images d'être plus petites */
        width: 100%; /* S'assure que l'image prend la largeur disponible */
        max-width: 150px; /* Limite la taille maximale */
    }
}

/* Flèche de défilement */
.scroll-arrow {
    margin-top: 3rem;
    text-align: center;
}

.scroll-arrow i {
    color: var(--accent-primary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pour rendre la flèche cliquable et interactive */
.scroll-arrow i:hover {
    animation-play-state: paused;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #eaed5d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-brand-link {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-icon {
        font-size: 2rem;
    }
}

.close-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #eaed5d;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    transition: transform 0.3s ease;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    /* ... styles mobile existants ... */

    .close-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }
}
