/* 🌟 VARIABLES GLOBALES */
:root {
    --primary-blue: #A7C7E7;
    --primary-purple: #F3E6FF;
    --accent-blue: #4A90E2;
    --accent-purple: #9B51E0;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-light: #f5f6fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 🌍 RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 7rem;
}

/* 🔹 CONTAINER PRINCIPAL */
.page-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

/* 📝 FORMULAIRE DE CONTACT */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 🎯 En-tête du formulaire */
.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h1 {
    color: var(--accent-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 🖊️ Champs du formulaire */
.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--text-dark);
}

input, select, textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background-color: white;
}

/* 🎭 Radio group */
.radio-group {
    display: flex;
    gap: 2rem;
    padding: 0.5rem 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: auto;
    cursor: pointer;
}

/* ✍️ Zone de texte */
textarea {
    min-height: 150px;
    resize: vertical;
}

/* 🔘 Bouton d'envoi */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #357ABD;
    transform: translateY(-2px);
}

/* 🏢 SIDEBAR (INFO CONTACT) */
.info-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 📢 Boîte d'informations */
.info-box:first-child {
    background: var(--accent-blue);
    color: white;
    background-image: url('/api/placeholder/400/200');
    background-size: cover;
    background-position: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.info-box:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.9);
    z-index: 1;
}

.info-box:first-child * {
    position: relative;
    z-index: 2;
}

.info-box h3 {
    color: var(--accent-blue);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.info-box:first-child h3 {
    color: white;
    font-size: 1.5rem;
}

/* 📍 Infos de contact */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-box:first-child .contact-info p {
    color: white;
}

/* 📌 Liste des services */
.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-box ul li::before {
    content: '→';
    color: var(--accent-blue);
}


/* ✅ MESSAGES DE CONFIRMATION / ERREUR */
.success-message, .error-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.success-message {
    background-color: #DEF7EC;
    color: #03543F;
}

.error-message {
    background-color: #FDE8E8;
    color: #9B1C1C;
}
