:root { --primary: #198e83; --accent: #09695d; --danger: #e74c3c; --success: #abc6c5; --light: #f8f9fa; }
body { font-family: 'Segoe UI', sans-serif; background: #f0f3f5; padding-bottom: 160px; margin: 0; }
.nav-container { position: sticky; top: 0; background: var(--primary); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.nav-tabs { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; padding: 18px 25px; color: rgba(255,255,255,0.7); text-align: center; cursor: pointer; font-weight: bold; border-bottom: 4px solid transparent; transition: 0.2s; text-transform: uppercase; font-size: 0.9em; }
.tab.active { color: white; border-bottom: 4px solid var(--accent); background: rgba(255,255,255,0.1); }
.header-area { background: white; padding: 15px; border-bottom: 1px solid #ddd; display: flex; justify-content: center; }
.room-name-input { font-size: 1.1em; padding: 10px; border-radius: 8px; border: 1px solid #ccc; width: 90%; max-width: 400px; text-align: center; font-weight: bold; }
.tab-content { display: none; max-width: 1000px; margin: 15px auto; padding: 0 10px; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.wall-card { background: white; padding: 20px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.inputs { display: flex; gap: 15px; margin-bottom: 15px; background: var(--light); padding: 15px; border-radius: 10px; align-items: center; flex-wrap: wrap; }
.stat-box { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; border-left: 2px solid #ddd; padding-left: 15px; }
.stat-val { font-weight: bold; color: var(--primary); }
.net-val { color: var(--success); font-size: 1.2em; }
input, textarea { padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-weight: bold; font-family: inherit; }
.dim-input { width: 75px; }
.canvas-container { width: 100%; overflow: hidden; border-radius: 8px; border: 2px solid #333; margin-bottom: 10px; }
canvas { background: #ffffff; width: 100%; display: block; cursor: crosshair; touch-action: none; }
.work-notes { margin-top: 15px; width: 100%; box-sizing: border-box; min-height: 80px; border: 1px dashed var(--primary); font-weight: normal; }
.edit-panel { background: #fff3e0; padding: 15px; border-radius: 10px; margin-top: 15px; display: none; border: 2px solid var(--accent); }
.active-edit { display: block !important; }
#total-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--success);
    color: white;
    padding: 10px 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.summary-wrapper {
    display: flex;
    align-items: center; /* Aligne verticalement le logo et le texte */
    justify-content: center; /* Centre l'ensemble dans la page */
    gap: 15px; /* Espace entre le logo et le contenu */
    max-width: 1000px;
    margin: 0 auto;
}

.summary-logo {
    height: 50px; /* Ajustez la hauteur selon votre logo */
    width: auto;
    object-fit: contain;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left; /* Aligne le texte à gauche par rapport au logo */
}

.total-text {
    color:#09695d;
    font-size: 1.1em;
    font-weight: bold;
}

/* On ajuste un peu les boutons pour mobile */
.summary-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
button { padding: 10px 18px; border-radius: 10px; border: none; font-weight: bold; cursor: pointer; transition: 0.2s; }
button:active { transform: scale(0.95); }
.btn-action { background: white; color: var(--accent); }
.project-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.project-fields label {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9em;
    margin-bottom: -15px;
    text-transform: uppercase;
}

.project-fields input, .project-fields textarea {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #ddd;
    font-size: 16px !important; /* Évite le zoom auto iOS */
    padding: 15px;
    background: #fff;
    transition: border-color 0.3s;
}

.project-fields input:focus, .project-fields textarea:focus {
    border-color: var(--accent);
    outline: none;
}