/* ===== VARIABLES ===== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #111827;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --bg-page: #ffffff;
    --bg-section: #f8fafc;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ===== CONTAINER ===== */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    text-align: center;
}

/* ===== HEADER ===== */
h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p.subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

p.subtitle strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== BOUTON CTA ===== */
.btn-main {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.btn-main:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 3rem 0 1.25rem;
}

/* ===== GRID PROJETS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 3rem;
}

/* ===== CARDS PROJETS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #d1d5db;
}

.card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center top;
    background: var(--bg-section);
}

.card-content {
    padding: 14px 16px 16px;
}

.card h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.card p {
    font-size: 0.8rem;
    color: var(--text-medium);
    line-height: 1.4;
}

/* ===== FORMULAIRE CONTACT ===== */
.contact-form {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 28px 24px;
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
}

.contact-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
    text-align: center;
}

.contact-form > p {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-card);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #c9cdd4;
}

textarea {
    height: 90px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #1f2937;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .container {
        padding: 50px 20px 30px;
    }

    h1 {
        font-size: 2rem;
    }

    p.subtitle {
        font-size: 0.95rem;
    }

    .btn-main {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card-img {
        height: 160px;
    }

    .contact-form {
        padding: 24px 20px;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary);
    color: white;
}
