/*
Theme Name: Benjamin Pittino - CV Magazine Bleu Royal v3.7
Theme URI: https://benjaminpittino.fr
Author: Benjamin Pittino
Author URI: https://benjaminpittino.fr
Description: Thème CV moderne style magazine avec palette bleu royal et touches orange dynamiques. Filtrage Civil/Militaire, logos et icônes automatiques, configuration Hero globale en base de données.
Version: 3.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: benjamin-pittino-magazine-bleu
*/

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

:root {
    --primary: #1e3a8a;
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-gray: #eff6ff;
    --orange: #f97316;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

/* Page Header for Archive Pages */
.page-header {
    background: linear-gradient(135deg, #333, #666);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 1001;
}

/* Photo dans header - cachée en desktop */
.nav-profile-mobile {
    display: none;
}

.nav-profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: all 0.5s ease;
}

/* Menu burger - caché en desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Filtre */
.profile-filter {
    position: relative;
}

.filter-select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s;
}

.filter-select:hover {
    background: var(--bg-gray);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-filter::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent);
    font-size: 0.7rem;
}

/* Items filtrables */
.filterable-item {
    transition: all 0.3s ease;
}

.filterable-item.hidden {
    display: none !important;
}

.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent);
}

.hero-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    gap: 2rem;
}

.hero-profile {
    order: 1;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
    transition: all 0.5s ease;
}

.hero-text {
    order: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title {
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.hero-meta-item a:hover {
    opacity: 0.8;
}

.hero-meta-item svg {
    width: 20px;
    height: 20px;
    fill: white;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.stats {
    background: var(--bg-gray);
}

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

.stat-box {
    background: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.skill-box {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.skill-box:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-emoji {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-box h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.skill-content {
    color: var(--text-light);
    line-height: 1.8;
}

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

.skill-content ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skill-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.experience {
    background: var(--bg-gray);
}

.experience-grid {
    display: grid;
    gap: 2rem;
}

.exp-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.exp-header {
    background: linear-gradient(135deg, var(--primary), #1e3a8a);
    color: white;
    padding: 2rem;
}

.exp-company {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
}

.company-logo-small {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    padding: 5px;
}

.exp-date {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exp-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.exp-header h4 {
    font-size: 1.1rem;
    opacity: 0.9;
}

.exp-body {
    padding: 2rem;
}

.exp-body p, .exp-body .timeline-content {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-tag {
    background: var(--bg-gray);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Bouton "Voir plus" */
.more-button-container {
    text-align: center;
    margin-top: 3rem;
}

.more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #333, #666);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

.more-button:hover {
    background: linear-gradient(135deg, #1a1a1a, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.3);
    gap: 1.2rem;
}

.more-button i {
    transition: transform 0.3s;
}

.more-button:hover i {
    transform: translateX(5px);
}

/* Projets Section */
.projets {
    background: var(--background);
    padding: 4rem 0;
}

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

.projet-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.projet-card:hover {
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.projet-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.projet-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #333, #666);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.projet-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.projet-meta {
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
}

.projet-content {
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.projet-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.projet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.projet-tags .tag {
    background: var(--background);
    color: #333;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.projet-tags .tag-accent {
    background: linear-gradient(135deg, #2563eb 0%, #f97316 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.projet-tags .tag:hover {
    background: #333;
    color: white;
}

.projet-tags .tag-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.projet-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.projet-link:hover {
    color: var(--primary);
    gap: 0.8rem;
}

.projet-link i {
    font-size: 0.9rem;
}

/* Formations Section */
.formations {
    background: white;
}

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

.formation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.formation-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.formation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.formation-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.formation-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.formation-meta {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.formation-content {
    color: var(--text-light);
    line-height: 1.7;
}

.contact {
    background: var(--primary);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.1);
    display: block;
}

.contact-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-10px);
    border-color: var(--accent);
}

.contact-card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    fill: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.site-footer {
    background: #0a0f1e;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* HEADER MOBILE AVEC PHOTO */
    header {
        padding: 0;
    }
    
    .header-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    /* Afficher la photo en mobile */
    .nav-profile-mobile {
        display: block;
        order: 1;
    }
    
    /* Logo en dessous de la photo */
    .logo {
        order: 2;
        font-size: 1.2rem;
    }
    
    /* Burger menu */
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
    
    /* Navigation mobile */
    nav {
        order: 3;
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul.active {
        max-height: 500px;
    }
    
    nav li {
        width: 100%;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 0.75rem;
    }
    
    .filter-select {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* HERO - Cacher la photo (déjà dans le header) */
    .hero {
        margin-top: 200px;
        padding: 3rem 1.5rem;
    }
    
    /* Cacher la photo du hero en mobile */
    .profile-image {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    /* SECTIONS */
    section {
        padding: 3rem 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projets-grid {
        grid-template-columns: 1fr;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
