/*
Theme Name: Portfolio
Theme URI:
Description: Thème personnalisé pour son Portfolio en IUT Informatique (édition alternance)
Version: 1.0
Author: Florian Hegele
Text Domain: gsa_theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Typographie générale */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #2D3748;
}

/* Titres */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 2rem 0 1rem;
    color: #1A202C;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.8rem;
    border-bottom: 2px solid #E2E8F0;
    color: #2D3748;
}

h4 {
    font-size: 1.4rem;
    border-bottom: 2px solid #E2E8F0;
    color: #4A5568;
}

/* Paragraphes */
p {
    margin-bottom: 1.5rem;
    color: #4A5568;
}

/* Liens */
a {
    color: #3182CE;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover & :not(.cta-button) & :not(.site-branding){
    color: #2C5282;
    text-decoration: underline;
}

/* Listes */
ul, ol {
    margin: 0.5rem 0 1.5rem;
    padding-left: 2rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    color: #4A5568;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* Texte en gras */
strong, b {
    font-weight: 600;
    color: #2D3748;
}

/* Conteneur principal du projet */
.project-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* En-tête du projet */
.project-header {
    margin-bottom: 3rem;
    text-align: center;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: #718096;
}

.project-meta span {
    background: #EDF2F7;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* Contenu du projet */
.project-content {
    margin: 2rem 0;
}

/* Section des compétences */
.project-competences {
    margin: 3rem 0;
    background: #F7FAFC;
    padding: 2rem;
    border-radius: 1rem;
}

.block-competence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.competence-block {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ac-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.ac-badge {
    background: #4299E1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.ac-badge:hover {
    background: #3182CE;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .project-container {
        padding: 1rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .block-competence {
        grid-template-columns: 1fr;
    }
}


/* Section À propos */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items:     start;
}

.about-text-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.personal-info {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-list li:last-child {
    border-bottom: none;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

/* Section Parcours */
.parcours-section {
    background-color: #fff;
    padding: 4rem 0;
}

.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.timeline-title {
    text-align: center;
    color: #0073aa;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 5rem;
    height: calc(100% - 7.2rem);
    width: 2px;
    background: #0073aa;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 5rem;
    width: 1rem;
    height: 1rem;
    background: #68a5c1;
    border-radius: 50%;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-content .date {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin: 0.5rem 0;
    color: #333;
}

.timeline-content p {
    margin: 0.4rem 0;
    color: #666;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-content,
    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        gap: 3rem;
    }

    .about-image {
        margin-top: 2rem;
    }
}

.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    color: #0073aa;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item {
    background: #fff;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recent-projects {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}


/* header / footer */

.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.3rem 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}


.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.primary-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.primary-menu a:hover {
    color: #0073aa;
}

/* Footer Styles */
.site-footer {
    background: #333;
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-widget-area {
    padding: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Accueil */

.hero-section {
    text-align: center;
    padding: 100px 20px;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #666;
}

.cta-wrapper {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #005a87;
}



/* Archive Projet */

.filters-form-archive {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex-direction: row;
    justify-content: center;
}

.filter-container {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Styles pour les dropdowns */
.custom-dropdown {
    position: relative;
}

.dropdown-trigger {
    height: auto;
    width: 20em;
    margin: 0.3em;
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    position: relative;
}

.dropdown-trigger:after {
    content: '▼';
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 10em;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
    padding: 10px;
}

.dropdown-content.active {
    display: block;
}

.checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.checkbox-wrapper {
    padding: 5px 0;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.select-all-label {
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.clear-filter {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 0;
    cursor: pointer;
}

.clear-filter:hover {
    text-decoration: underline;
}


.projects-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-thumbnail {
    height: 300px;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1rem 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-description {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.1rem;
    font-weight: normal;
    color: #494949;
}


.project-date,
.project-semester {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.project-excerpt {
    font-size: 0.95rem;
    color: #555;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-tag {
    background: #e1e1e1;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .page-numbers.current {
    background: #3498db;
    color: #fff;
}

/*
.ac-badge {
    position: relative;
    cursor: help;
}

.ac-badge:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}
*/

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Selecteur */
.filters-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 5px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.select2-container {
    width: 100% !important;
}

#apply-filters {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#apply-filters:hover {
    background: #0056b3;
}


/* En-tête */
.project-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.project-meta span {
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Technologies */
.project-technologies {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-tag {
    background: #e1e1e1;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Compétences */
.block-competence {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.block-competence-sae {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-competences {
    margin: 2rem 0;
}

.competence-block {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
}

.competence-block h3 {
    margin: 0 0 0.8rem 0;
    color: #333;
}

.ac-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.ac-badge {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Images */
.project-images {
    margin: 2rem 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* Titres de section */
.project-technologies h2,
.project-competences h2,
.project-images h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}
