/* Styles généraux */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Cartes */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.card-content {
    padding: 20px;
}

/* Formulaires */
.input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.checkbox {
    margin-right: 8px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

select {
    height: 40px;
}

/* Sections et grilles */
.section-divider {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.section-divider h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mt-6 {
    margin-top: 30px;
}

.checkbox-grid {
    display: grid;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

/* Boutons */
.button-primary {
    background-color: #2c974b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    width: 100%;
}

.button-primary:hover {
    background-color: #227539;
}

.button-secondary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 15px;
}

.button-secondary:hover {
    background-color: #2563eb;
}

@media (min-width: 768px) {
    .button-primary, .button-secondary {
        width: auto;
    }
}

/* Boîtes d'information */
.blue-box {
    background-color: #e6f0fd;
    border-radius: 6px;
    padding: 15px;
}

.blue-box h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.note-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Résultats */
.hidden {
    display: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.result-box {
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.result-box h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.full-width {
    grid-column: 1 / -1;
}

.bg-blue {
    background-color: #e6f0fd;
}

.bg-green {
    background-color: #e6f7ef;
}

.bg-amber {
    background-color: #fef6e6;
}

.bg-purple {
    background-color: #f1e6fe;
}

.bg-indigo {
    background-color: #e6e6fe;
}

/* Alertes */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.alert-red {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.alert-yellow {
    background-color: #fef6e6;
    color: #713f12;
}

.alert-blue {
    background-color: #e6f0fd;
    color: #1e3a8a;
}

.alert-green {
    background-color: #e6f7ef;
    color: #14532d;
}

.alert-purple {
    background-color: #f1e6fe;
    color: #581c87;
}

/* Profil de consommation */
.profile-container {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid #e9ecef;
}

.profile-bar {
    display: flex;
    align-items: center;
}

.profile-bar-fill {
    height: 16px;
    background-color: #3b82f6;
    border-radius: 4px;
}

.profile-bar-text {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Spécificités Martinique */
.info-box-yellow {
    background-color: #fef6e6;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 15px;
}

.info-box-yellow h4 {
    color: #92400e;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-list {
    list-style-type: none;
}

.info-list li {
    font-size: 0.9rem;
    color: #713f12;
    margin-bottom: 5px;
    line-height: 1.4;
}