/* =============================================
   PORTFOLIO — Guillaume Crampé
   Palette : Bleu océan #2a5a8c + Vert émeraude #00b050
   ============================================= */

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #1b3a5c;
    background: #ffffff;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- NAVBAR --- */
.navbar {
    background: #1b3a5c;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo { color: #ffffff; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: 1px; }

.nav-menu { list-style: none; display: flex; gap: 28px; align-items: center; }

.nav-link { color: #deeeff; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: #ffffff; }
.nav-link.active { color: #ffffff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #deeeff; border-radius: 2px; transition: all 0.3s; }

/* --- HERO --- */
.hero { background: #2a5a8c; padding: 80px 24px 90px; }

.hero-content { max-width: 1100px; margin: 0 auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,176,80,0.18); border: 1px solid rgba(0,176,80,0.5);
    border-radius: 20px; padding: 5px 14px; font-size: 12px; color: #6dffa8;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
    font-family: 'Outfit', sans-serif; font-weight: 500;
}

.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #00b050; flex-shrink: 0; }

.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(42px, 6vw, 68px); font-weight: 700; color: #ffffff; line-height: 1.05; }
.hero-title em { display: block; font-style: italic; color: #00d060; }
.hero-subtitle { font-size: 18px; color: #c8e0f4; margin-top: 18px; max-width: 520px; line-height: 1.7; }

/* --- SECTIONS --- */
.page-section { padding: 72px 0; background: #ffffff; }
.page-section.bg-light { background: #f5f8fc; }
.page-section.bg-lighter { background: #eaf2fa; }

.section-title { font-size: 28px; color: #1b3a5c; margin-bottom: 32px; font-family: 'Playfair Display', serif; font-weight: 700; }

/* --- HOMEPAGE SECTIONS --- */
.about { padding: 72px 0; background: #ffffff; }
.about h2 { font-size: 32px; color: #1b3a5c; margin-bottom: 32px; }

.about-content { display: flex; gap: 48px; align-items: center; }
.about-text { flex: 1; }
.about-text p { color: #4a6a8a; margin-bottom: 16px; font-size: 16px; line-height: 1.8; }

.about-image { flex-shrink: 0; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; border: 4px solid #c8dff0; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.competences { padding: 72px 0; background: #c8dff0; }
.competences h2 { font-size: 32px; color: #1b3a5c; margin-bottom: 32px; }

.competences-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.competence-card { background: #ffffff; border: 1px solid #a0c4e0; border-radius: 12px; padding: 20px 18px; transition: transform 0.2s, box-shadow 0.2s; }
.competence-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(27,58,92,0.12); }

.card-bar { height: 4px; border-radius: 2px; width: 32px; margin-bottom: 14px; }
.bar-green { background: #00b050; }
.bar-blue { background: #2a5a8c; }
.bar-orange { background: #f0873a; }

.competence-card h3 { font-size: 15px; color: #1b3a5c; margin-bottom: 8px; font-family: 'Outfit', sans-serif; font-weight: 600; }
.competence-card p { font-size: 13px; color: #5a7a96; line-height: 1.6; }

.formation { padding: 72px 0; background: #eaf2fa; }
.formation h2 { font-size: 32px; color: #1b3a5c; margin-bottom: 32px; }

/* --- TIMELINE --- */
.timeline { display: flex; flex-direction: column; max-width: 640px; }
.timeline-item { display: flex; gap: 18px; padding-bottom: 20px; }
.timeline-left { display: flex; flex-direction: column; align-items: center; min-width: 20px; }
.timeline-dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; border: 2px solid #ffffff; }
.dot-green { background: #00b050; }
.dot-blue { background: #2a5a8c; }
.timeline-bar { width: 2px; flex: 1; background: #b8d4ec; margin-top: 6px; }
.timeline-right { flex: 1; }
.timeline-year { font-size: 12px; font-weight: 600; font-family: 'Outfit', sans-serif; margin-bottom: 6px; letter-spacing: 0.5px; }
.year-green { color: #00b050; }
.year-blue { color: #2a5a8c; }
.timeline-box { background: #ffffff; border: 1px solid #c8dff0; border-radius: 10px; padding: 14px 18px; }
.timeline-box h4 { font-size: 15px; color: #1b3a5c; margin-bottom: 4px; font-family: 'Outfit', sans-serif; font-weight: 600; }
.timeline-box p { font-size: 13px; color: #6a8aaa; }

/* Tags dans timeline */
.tag { display: inline-block; font-size: 11px; border-radius: 4px; padding: 2px 8px; margin-top: 6px; font-weight: 600; font-family: 'Outfit', sans-serif; }
.tag-green { background: rgba(0,176,80,0.12); color: #007a38; }
.tag-blue { background: rgba(42,90,140,0.12); color: #1b3a5c; }

/* Centres d'intérêt */
.tags-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-tag { background: #ffffff; border: 1px solid #c8dff0; border-radius: 8px; padding: 8px 16px; font-size: 14px; color: #1b3a5c; font-weight: 500; }

/* --- COMPÉTENCES PAGE --- */
.bloc-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.bloc-number { width: 44px; height: 44px; border-radius: 10px; color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Outfit', sans-serif; }
.bloc-sub { font-size: 14px; color: #5a7a96; margin-top: 2px; }

.skills-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.skill-tag { background: #eaf2fa; color: #2a5a8c; font-size: 13px; border-radius: 6px; padding: 5px 12px; font-weight: 600; }

.competence-detail { background: #fff; border: 1px solid #c8dff0; border-left: 4px solid #00b050; border-radius: 0 10px 10px 0; padding: 16px 20px; margin-bottom: 20px; }
.competence-detail p { font-size: 14px; color: #4a6a8a; line-height: 1.8; }

.img-placeholder { background: #f5f8fc; border: 2px dashed #b8d4ec; border-radius: 10px; padding: 32px 20px; text-align: center; margin-bottom: 16px; }
.img-placeholder p { font-size: 13px; color: #7aafc8; font-weight: 500; }

/* --- RÉALISATIONS PAGE --- */
.projets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.projet-card { background: #fff; border: 1px solid #c8dff0; border-radius: 12px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.projet-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(27,58,92,0.12); }

.projet-img { background: #c8dff0; height: 200px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #b0cce0; overflow: hidden; }
.projet-img img { width: 100%; height: 100%; object-fit: cover; }
.projet-img span { font-size: 13px; color: #4a7aaa; font-weight: 500; }

.projet-body { padding: 20px; }
.projet-body h3 { font-size: 17px; color: #1b3a5c; margin-bottom: 8px; font-family: 'Outfit', sans-serif; font-weight: 700; }
.projet-body p { font-size: 13px; color: #5a7a96; line-height: 1.6; margin-bottom: 12px; }

.projet-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.ptag { background: rgba(0,176,80,0.12); color: #007a38; font-size: 11px; border-radius: 4px; padding: 3px 8px; font-weight: 600; }

.btn-projet { display: inline-block; background: #1b3a5c; color: #fff; border-radius: 7px; padding: 8px 18px; font-size: 13px; font-weight: 700; font-family: 'Outfit', sans-serif; transition: background 0.2s; }
.btn-projet:hover { background: #2a5a8c; }

/* --- VEILLE PAGE --- */
.article-card { background: #fff; border: 1px solid #c8dff0; border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; display: flex; gap: 24px; transition: box-shadow 0.2s; }
.article-card:hover { box-shadow: 0 4px 16px rgba(27,58,92,0.1); }

.article-meta { display: flex; flex-direction: column; gap: 6px; min-width: 110px; }
.article-date { font-size: 12px; color: #00b050; font-weight: 700; font-family: 'Outfit', sans-serif; }
.article-tag-label { display: inline-block; background: #eaf2fa; color: #2a5a8c; font-size: 11px; border-radius: 4px; padding: 3px 8px; font-weight: 600; }

.article-body h3 { font-size: 16px; color: #1b3a5c; margin-bottom: 8px; font-family: 'Outfit', sans-serif; font-weight: 700; }
.article-body p { font-size: 13px; color: #5a7a96; line-height: 1.6; margin-bottom: 10px; }
.article-link { font-size: 13px; color: #00b050; font-weight: 600; transition: color 0.2s; }
.article-link:hover { color: #007a38; }

/* --- CONTACT PAGE --- */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }

.contact-form-wrap h2 { margin-bottom: 28px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: #1b3a5c; }
.form-group input, .form-group textarea {
    padding: 12px 16px; border: 1.5px solid #c8dff0; border-radius: 8px;
    font-family: 'Outfit', sans-serif; font-size: 15px; color: #1b3a5c;
    background: #f5f8fc; transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #00b050; background: #ffffff; }

.contact-infos { background: #f5f8fc; border: 1px solid #c8dff0; border-radius: 12px; padding: 28px 24px; }
.contact-infos h2 { font-size: 22px; margin-bottom: 20px; }

.btn-email {
    display: block; background: #1b3a5c; color: #ffffff; border-radius: 10px;
    padding: 14px 20px; font-size: 14px; font-weight: 700; font-family: 'Outfit', sans-serif;
    text-align: center; margin-bottom: 24px; transition: background 0.2s; word-break: break-all;
}
.btn-email:hover { background: #2a5a8c; }

.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-dot { width: 8px; height: 8px; border-radius: 50%; background: #00b050; flex-shrink: 0; margin-top: 6px; }
.info-label { font-size: 11px; color: #7aafc8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.info-value { font-size: 14px; color: #1b3a5c; font-weight: 500; }

/* --- CONTACT HOMEPAGE --- */
.contact { padding: 72px 0; background: #ffffff; }
.contact h2 { font-size: 32px; color: #1b3a5c; margin-bottom: 32px; }

/* --- BOUTONS --- */
.btn { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; border-radius: 10px; padding: 13px 32px; cursor: pointer; border: none; transition: opacity 0.2s, transform 0.1s; align-self: flex-start; }
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: #00b050; color: #ffffff; }

/* --- FOOTER --- */
footer { background: #1b3a5c; padding: 24px; text-align: center; }
footer p { color: #7aafc8; font-size: 13px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; flex-direction: column;
        position: absolute; top: 56px; left: 0; right: 0;
        background: #1b3a5c; padding: 20px 24px; gap: 18px;
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }

    .hero { padding: 56px 20px 64px; }
    .hero-title { font-size: 38px; }

    .about-content { flex-direction: column-reverse; }
    .about-image { width: 140px; height: 140px; }

    .competences-grid { grid-template-columns: 1fr 1fr; }

    .article-card { flex-direction: column; gap: 10px; }
    .article-meta { flex-direction: row; align-items: center; }

    .bloc-header { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .competences-grid { grid-template-columns: 1fr; }
    .projets-grid { grid-template-columns: 1fr; }
}