/* accueil.css - Styles pour la page d'accueil du site de Nicolas TARIELLO */

/* Polices et couleurs cohérentes avec header et footer */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Styles généraux de la page */
.home {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-bottom: 4rem;
}

/* Section hero */
.home__hero {
    padding: 5rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.home__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, #ffffff 0%, #f7f9fc 100%);
    z-index: -1;
    transform: skewY(-3deg);
    transform-origin: bottom left;
}

.home__hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.home__hero-title {
    color: #0a4c81;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    line-height: 1.2;
}

/* Style pour le curseur de Typed.js */
.typed-cursor {
    color: #0a4c81;
    font-size: 2.8rem;
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.home__hero-subtitle {
    color: #1a67a3;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.home__hero-text {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.home__hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.home__hero-img {
    max-width: 70%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(10, 76, 129, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.home__hero-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 76, 129, 0.2);
}

/* Boutons CTA */
.home__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.home__cta-button {
    padding: 1rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}

.home__cta-button--primary {
    background-color: #3e6bba;
    color: white;
    box-shadow: 0 6px 12px rgba(10, 76, 129, 0.2);
}

.home__cta-button--primary:hover {
    background-color: #090844;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(10, 76, 129, 0.3);
}

.home__cta-button--secondary {
    background: transparent;
    color: #3e6bba;
    border: 2px solid #0a4c81;
}

.home__cta-button--secondary:hover {
    background-color: #090844;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(10, 76, 129, 0.1);
}

/* Media queries pour responsive */
@media (max-width: 768px) {
    .home__hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
    }

    .home__hero-content {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }

    .home__hero-title {
        font-size: 2.4rem;
    }

    .typed-cursor {
        font-size: 2.4rem;
    }

    .home__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home__hero-title {
        font-size: 2rem;
    }

    .typed-cursor {
        font-size: 2rem;
    }

    .home__cta-buttons {
        flex-direction: column;
    }

    .home__cta-button {
        width: 100%;
    }
}

/* Section compétences */
.home__highlights {
    padding: 4rem 0;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.home__highlights-title {
    text-align: center;
    color: #0a4c81;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.home__highlights-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #40c8ff;
}

.home__highlights-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.home__highlights-item {
    flex: 1;
    min-width: 220px;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home__highlights-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 76, 129, 0.1);
}

.home__highlights-item-title {
    color: #1a67a3;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home__highlights-item-text {
    color: #666;
    font-size: 0.95rem;
}

/* Section projets récents */
.home__projects {
    background-color: #f9fafb;
    padding: 4rem 0;
}

.home__projects-inner {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.home__projects-title {
    text-align: center;
    color: #0a4c81;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.home__projects-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #40c8ff;
}

.home__projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.home__project-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.home__project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 76, 129, 0.15);
}

.home__project-image {
    height: 200px;
    overflow: hidden;
}

.home__project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home__project-card:hover .home__project-img {
    transform: scale(1.05);
}

.home__project-info {
    padding: 1.5rem;
}

.home__project-title {
    color: #1a67a3;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.home__project-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.home__project-link {
    color: #2f87c8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.home__project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #40c8ff;
    transition: width 0.3s ease;
}

.home__project-link:hover {
    color: #0a4c81;
}

.home__project-link:hover::after {
    width: 100%;
}

.home__view-all {
    text-align: center;
    margin-top: 2rem;
}

.home__view-all-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #3e6bba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(10, 76, 129, 0.2);
}

.home__view-all-button:hover {
    background-color: #090844;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(10, 76, 129, 0.3);
}

/* Section CV */
.home__cv {
    padding: 4rem 0;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.home__cv-title {
    color: #0a4c81;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.home__cv-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    color: #666;
}

.home__cv-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #3e6bba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(10, 76, 129, 0.2);
}

.home__cv-button:hover {
    background-color: #090844;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(10, 76, 129, 0.3);
}

/* Media queries pour responsive */
@media (max-width: 768px) {
    .home__hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }

    .home__hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .home__cta-buttons {
        justify-content: center;
    }

    .home__highlights-container {
        gap: 1rem;
    }

    .home__projects-container {
        justify-content: center;
    }

    .home__project-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .home__hero-title {
        font-size: 2rem;
    }

    .home__hero-subtitle {
        font-size: 1rem;
    }

    .home__cta-buttons {
        flex-direction: column;
    }

    .home__cta-button {
        width: 100%;
    }

    .home__highlights-title,
    .home__projects-title,
    .home__cv-title {
        font-size: 1.8rem;
    }
}