/* Reset rapide */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f5f5f7;
}

a {
    color: #005bbb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & nav */

.site-header {
    background: #111827;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.branding h1 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.branding p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: #e5e7eb;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.main-nav a:hover {
    background: #374151;
}

/* Sections */

.section {
    padding: 3rem 0;
    background: #f5f5f7;
}

.section-alt {
    background: #ffffff;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Grilles */

.grid-2 {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 2fr 1fr;
    }
}

.cards-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Avatar */

.avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    max-width: 220px;
    width: 100%;
    border-radius: 999px;
    border: 4px solid #e5e7eb;
    object-fit: cover;
}

/* Listes, timeline, expériences */

.contact-list {
    list-style: none;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 0.25rem;
}

.card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.timeline {
    list-style: none;
    margin-top: 1.5rem;
    border-left: 2px solid #d1d5db;
    padding-left: 1rem;
}

.timeline li {
    margin-bottom: 1.25rem;
    position: relative;
}

.timeline li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #111827;
    position: absolute;
    left: -6px;
    top: 0.3rem;
}

.timeline-date {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4b5563;
}

.timeline-content {
    margin-top: 0.15rem;
}

.experience {
    margin-bottom: 1.5rem;
}

.experience-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

/* Boutons */

.btn,
.btn-secondary {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn {
    background: #111827;
    color: #fff;
}

.btn:hover {
    background: #1f2937;
    text-decoration: none;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background: #d1d5db;
    text-decoration: none;
}

/* Formulaire */

.contact-form {
    max-width: 600px;
    margin-top: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-row label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
    padding: 0.6rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font: inherit;
    background: #f9fafb;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #111827;
    background: #ffffff;
}

/* Alertes */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #15803d;
    color: #14532d;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #b91c1c;
    color: #7f1d1d;
}

/* Footer */

.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 1rem 0;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 2rem;
}

.site-footer a {
    color: #e5e7eb;
}

/* Responsif global */

@media (max-width: 640px) {
    .branding h1 {
        font-size: 1.3rem;
    }
    .main-nav {
        justify-content: flex-start;
    }
}
.hidden-field {
    display: none;
}
