/* Styles spécifiques au portfolio */

/* Section Recherche d'emploi */
.glass-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: #dc143c;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.glass-card h3 {
    color: #dc143c;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 10px 0;
}

/* Section Projets */
.masonry-section {
    padding: 80px 20px;
    background: #0a0a0a;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.masonry-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.masonry-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.masonry-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-content {
    padding: 25px;
}

.masonry-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: #dc143c;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.masonry-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 10px 0;
}

.projet-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.projet-links a {
    padding: 10px 20px;
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid #dc143c;
    color: #dc143c;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.projet-links a:hover {
    background: #dc143c;
    color: #fff;
}

/* Section Compétences */
.carousel-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.competence-categorie {
    margin-bottom: 50px;
}

.competence-categorie h3 {
    color: #dc143c;
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc143c;
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.competence-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.competence-item:hover {
    border-color: #dc143c;
    transform: translateY(-5px);
}

.competence-nom {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

.competence-niveau {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
    border-radius: 12px;
    font-size: 0.85em;
}

/* Timeline (Expériences / Formations) */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dc143c;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #dc143c;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
}

.timeline-item h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 5px;
}

.timeline-item h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 10px;
}

.timeline-date {
    color: #dc143c;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Certifications */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.certification-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.certification-item:hover {
    border-color: #dc143c;
    transform: translateY(-5px);
}

.certification-item h3 {
    color: #fff;
    margin-bottom: 10px;
}

.certification-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0;
}

.certification-item a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid #dc143c;
    color: #dc143c;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.certification-item a:hover {
    background: #dc143c;
    color: #fff;
}

/* Loisirs */
.loisirs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.loisir-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.loisir-item:hover {
    border-color: #dc143c;
    transform: translateY(-5px);
}

.loisir-icone {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.loisir-item h3 {
    color: #fff;
    margin-bottom: 10px;
}

.loisir-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Documents */
.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.document-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.document-item:hover {
    border-color: #dc143c;
}

.document-type {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
    border-radius: 15px;
    font-size: 0.85em;
    margin: 10px 0;
}

.document-item h3 {
    color: #fff;
    margin-bottom: 10px;
}

.document-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 0;
}

.document-item a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #dc143c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-item a:hover {
    background: #ff1744;
    transform: translateX(5px);
}

/* Titres de section */
h2.scroll-reveal {
    color: #fff;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .masonry-grid,
    .glass-grid,
    .competence-grid,
    .certification-grid,
    .loisirs-grid,
    .documents-list {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    h2.scroll-reveal {
        font-size: 2em;
    }
}
