body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: #E8EBE0;
    color: #354F52;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    color: #52796F;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #354F52;
}
/* --- HERO SECTION (Version Image de Fond) --- */
.hero-section {
    position: relative;
    height: 100vh; /* Prend 100% de la hauteur de l'écran */
    min-height: 600px;
    width: 100%;

    /* L'IMAGE DE FOND */
    /* Remplace 'hero-portrait.jpg' par le vrai nom de ton fichier image */
    background-image: url('/img/portrait.png');
    background-size: cover; /* Couvre tout l'écran sans déformer */
    background-position: center top; /* Centre l'image, alignée vers le haut */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Effet parralax léger (l'image reste fixe quand on scroll) */

    /* Flexbox pour centrer le texte parfaitement */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #E8EBE0; /* Texte blanc cassé */
    overflow: hidden;
}

/* L'OVERLAY (Le filtre sombre par dessus l'image) */
/* Indispensable pour que le texte blanc soit lisible */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Dégradé du vert sombre de ton site vers un peu plus transparent */
    background: linear-gradient(to bottom, rgba(47, 62, 70, 0.6), rgba(47, 62, 70, 0.85));
    z-index: 1;
}

/* LE CONTENU TEXTE */
.hero-content-centered {
    position: relative;
    z-index: 2; /* Pour passer au-dessus du filtre sombre */
    width: 90%;
    max-width: 800px; /* On limite la largeur pour que les lignes ne soient pas trop longues */
    padding-top: 20px;

    /* Petite animation d'arrivée */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    display: inline-block;
    color: #84A98C; /* Ton vert accent */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Ombre portée pour lisibilité */
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem); /* Gros titre fluide */
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 30px 0;
    color: #FFFFFF;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.text-gradient {
    /* Sur fond sombre, on garde un dégradé subtil ou juste blanc */
    color: #84A98C;
    /* Si tu veux le dégradé textuel : */
    background: linear-gradient(135deg, #E8EBE0 0%, #84A98C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #CAD2C5; /* Gris clair */
    margin: 0 auto 50px auto;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* BOUTONS */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}
.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 1px;
    color: #E8EBE0;
    text-transform: uppercase;
}

/* ANIMATIONS */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* MOBILE */
@media (max-width: 600px) {
    .hero-title { font-size: 3rem; }
    .hero-desc { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-actions a { width: 100%; justify-content: center; }
}

/* SECTION 2 : QUI SUIS-JE */
#me-container {
    display: grid;
    grid-template-columns: 40% 60%;
    padding: 60px;
    background-color: #E8EBE0;
    margin: auto;
    color: #354F52;
    align-items: center;
    gap: 50px;
}

#me-container .image-container {
    margin-right: 0; /* Supprimé du style d'origine */
}
#me-container .image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

#me-container .me-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    margin-top: 0;
    color: #2F3E46;
}
#me-container .me-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* SECTION 3 : COMPÉTENCES */
#skills-section {
    padding: 60px 50px;
    text-align: center;
    background-color: #CAD2C5;
}
#skills-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: #2F3E46;
    margin: 0 0 40px 0;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}
.skill-card {
    background-color: #E8EBE0;
    padding: 30px;
    border-radius: 12px;
}
.skill-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #354F52;
    margin-top: 0;
}
.skill-card p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
.skill-card strong {
    color: #52796F;
}

/* SECTION 4 : PROJETS RÉCENTS */
#featured-projects {
    padding: 60px 50px;
    background-color: #E8EBE0;
}
#featured-projects h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: #2F3E46;
    margin: 0 0 10px 0;
    text-align: center;
}
.projects-subtitle {
    font-size: 18px;
    color: #52796F;
    text-align: center;
    margin-bottom: 40px;
}

/* Styles copiés de projets.css pour l'index */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.project-card {
    background-color: #CAD2C5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(47, 62, 70, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-rows: auto 1fr;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47, 62, 70, 0.1);
}
.card-image {
    height: 180px;
    background-color: #CAD2C5;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.project-card:hover .card-image img {
    transform: scale(1.05);
}
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.card-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 9999px;
    background-color: #84A98C;
    color: #E8EBE0;
    align-self: flex-start;
    margin-bottom: 15px;
}
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2F3E46;
    margin: 0 0 10px 0;
}
.card-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #354F52;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}
.all-projects-link {
    text-align: center;
    margin-top: 40px;
}

/* SECTION 5 : CTA CONTACT */
#contact-cta {
    padding: 60px 50px;
    text-align: center;
    background-color: #354F52;
    color: #E8EBE0;
}
#contact-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: #FFFFFF;
    margin: 0 0 15px 0;
}
#contact-cta p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #CAD2C5;
}

/* --- RESPONSIVITÉ --- */
@media (max-width: 900px) {
    .section-content {
        padding: 30px;
        grid-template-rows: auto auto; /* Ajustement pour le contenu */
    }
    .section-content .section-title {
        max-width: 100%;
        font-size: 48px;
    }
    .section-content .section-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 0;
    }
    .section-content .section-footer p {
        max-width: 100%;
    }
    #me-container {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }
}
@media (max-width: 500px) {
    .section-content .section-title {
        font-size: 36px;
    }
    #me-container .me-content p {
        font-size: 16px;
    }
    #skills-section, #featured-projects, #contact-cta {
        padding: 40px 30px;
    }
}

strong, .custom-bold {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #2F3E46; /* Ton vert très foncé */
}

/* Style global pour l'italique (*) */
em, .custom-italic {
    font-style: italic;
    color: #52796F; /* Ton vert moyen pour nuancer l'italique */
    font-family: 'Inter', sans-serif;
}

/* --- FIX ICÔNE BOUTON --- */
.styled-button-primary .icon,
.styled-button-secondary .icon {
    stroke: currentColor !important; /* Force la couleur du texte */
    transition: transform 0.3s ease; /* Animation fluide */
}

/* Petite animation bonus : la flèche bouge quand on survole */
.styled-button-primary:hover .icon,
.styled-button-secondary:hover .icon {
    transform: translateX(3px);
}

.clear-icon{
    color: var(--bg-light) !important;
}