:root {
    --primary-color: #2563eb;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
	--logo-color: #E1C4DD;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Header / Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.navbar .logo {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--logo-color);
}

.navbar nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
}

.navbar nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Layout général */
.container {
    padding: 4rem 2rem;
    max-width: 1200px; /* Augmenté de 1000px à 1200px pour laisser respirer les 4 cartes */
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-color);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Alignement des 4 cartes sur une seule ligne */
.cards-grid {
    display: grid;
    /* Force exactement 4 colonnes de largeur égale */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Responsive : passage en grille adaptée sur mobile et tablette */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 sur tablette */
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr; /* 1 par ligne sur smartphone */
    }
}

.card-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.card-item:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.card-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    gap: 0.5rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Formulaire */
.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
}

/* Liste des messages */
.messages-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.msg-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.status-msg {
    font-size: 0.875rem;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: #64748b;
}