/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #595f66; /* Couleur d'accentuation */
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0;
    background-color: #fff;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #595f66;
}

/* --- SECTIONS GÉNÉRALES --- */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.cards-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex: 1;
    text-align: center;
}

/* --- PORTFOLIO PAGE --- */
.portfolio-header {
    text-align: center;
    background: #fff;
    padding: 60px 0 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.socials {
    margin-top: 15px;
}

.socials a {
    margin: 0 10px;
    color: #ccc;
}

.socials a:hover {
    color: #fff;
}

/* --- MOBILE / RESPONSIVE --- */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* À gérer avec JS pour un menu mobile complet */
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .cards-grid {
        flex-direction: column;
    }
}

/* --- AJOUTS SPECIFIQUES CONTENU --- */

/* Ajustements typographie */
.subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.intro-description {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #555;
    max-width: 600px;
}

/* Section Expériences (Grid) */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.exp-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #595f66; /* Bordure colorée à gauche */
}

.exp-header h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.role {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.exp-card ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #444;
}

.exp-card li {
    margin-bottom: 8px;
}

/* Badges pour la "Stack" technique */
.stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.stack-badge {
    background: #eef2f6;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #ddd;
}

/* Expertise Grid (4 colonnes) */
.expertise-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: left;
}

.expert-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.expert-item h4 {
    color: #595f66;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.expert-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Formation */
.education-card {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.school {
    font-weight: 700;
    color: #595f66;
    margin-top: 10px;
}

/* Call to Action Section (À propos) */
.cta-section {
    background-color: #222;
    color: #fff;
    text-align: center;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 20px;
    color: #ccc;
}

.btn-outline {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    margin-top: 20px;
}

.btn-outline:hover {
    background: #fff;
    color: #222;
}

/* Responsive pour les nouvelles sections */
@media screen and (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}

/* --- AJOUTS PORTFOLIO --- */

.portfolio-section {
    padding: 60px 0;
}

.portfolio-section.bg-light {
    background-color: #f0f2f5; /* Fond légèrement différent pour séparer les sections */
    border-top: 1px solid #e1e4e8;
}

.section-title {
    text-align: left; /* Alignement à gauche pour les sous-titres */
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-left: 10px;
    border-left: 4px solid #595f66;
}

.project-info {
    display: flex;
    flex-direction: column;
    height: 100%; /* Assure que toutes les cartes ont la même structure */
}

.project-desc {
    margin-bottom: 20px;
    flex-grow: 1; /* Pousse la section technique vers le bas */
    color: #555;
    font-size: 0.95rem;
}

.project-tech {
    font-size: 0.85rem;
    color: #444;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    line-height: 1.5;
}

.project-tech strong {
    color: #222;
    display: block;
    margin-bottom: 4px;
}

/* --- STYLE LISTE PROJETS CLIENTS --- */

.client-projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace entre les blocs */
    max-width: 900px; /* Limite la largeur pour la lecture */
    margin: 0 auto; /* Centre la liste */
}

.client-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid #6c757d; /* Bordure grise pour différencier des produits perso */
    transition: transform 0.2s ease;
}

.client-card:hover {
    transform: translateX(5px); /* Petit mouvement vers la droite au survol */
    border-left-color: #007bff; /* La bordure devient bleue au survol */
}

.client-card-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #222;
}

.client-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.client-tech {
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    color: #444;
}

.client-tech strong {
    color: #007bff;
    font-weight: 600;
}