/**
 * SMASH Architecture & BOB Core
 * Emplacement : Serveur Web -> /smash/templates/screen.css
 * Rôle : Charte graphique Master pour l'application en ligne (iPad Terrain)
 */

/* 1. FONDATIONS ET CONFIGURATION ÉCRAN ACCUEIL */
body {
    background: #fff;
    font-family: Arial, "sans-serif";
    padding: 20px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}



/* 1.1 BOXE DE FOND */
.wrapper {
    max-width: 800px;
    margin: 40px auto;
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 25px;
    border-radius: 0px 20px 0px 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}



/* 2. TYPOGRAPHIE GÉOMÉTRIQUE ET LOGOS */

/* 2.1 TITRE PRINCIPALE */
h1 {
	margin-left: auto;
	border-radius: 0px 10px 0px 10px;
	width: 70%;
	background-color: #000;
    color: #fff;
	text-align: right;
    font-size: 24px;
    letter-spacing: 2px;
    padding: 5px 20px 5px 20px;
    margin-top: 0;

}


/* 2.2 SOUS TITRE  */
h2 {
    color: #000;
    font-size: 18px;
    margin-top: 35px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-left: 8px;
}




/* 3. FORMULAIRES ET ÉLÉMENTS INTERACTIFS TACTILES IPAD */
.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 12px;
    color: #000;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select, textarea {
    background:#fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 12px;
    color: #000;
	font-weight: bold;

    border-radius: 3px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #000;
    background:#C8C8C8;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}



/* 4. DESIGN DES BOUTONS DE COMMANDE */
button {
    background: #000;
  
    padding: 14px;
	color: #fff;
    
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;

}

button:hover {
    background: #555;

}

button:active {
    background: #999;
}


/* 5. CODES COULEURS ET NOTIFICATIONS SYSTEME */
.alert {
    padding: 12px;
    font-size: 12px;
    margin-bottom: 20px;
    border-radius: 3px;
    border-left: 3px solid;
    letter-spacing: 1px;
    font-weight: bold;
}

.success {
    background: rgba(0, 255, 100, 0.04);
    border-color: #008818;
    color: #008818;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.2);
}

.error {
    background: rgba(255, 0, 50, 0.04);
    border-color: #94001D;
    color: #94001D;
    text-shadow: 0 0 5px rgba(255, 0, 50, 0.2);
}


/* 5. BOUTON MENU SUPERIEUR */

.nav-back { 
	display: inline-block; 
	font-size: 14px;
	font-weight:bolder;
	color: #000; 
	text-decoration: none;
	margin-bottom: 25px;
	text-transform:uppercase;
	letter-spacing: 1px; 
}
       
.nav-back:hover { 
	color: #444; 
}


.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed #000;
    padding-bottom: 12px;
    margin-bottom: 20px;
}


/* 6. HUB MATRICIEL - FORMULAIRE PHASE */

.project-banner { font-size: 14px; line-height: 1.8; color: #000; margin-bottom: 35px; padding-bottom: 15px; border-bottom: 1px solid #000; }
.project-banner span { font-weight: bold; }

.btn-all-phases { display: block; border: 1px solid #000; background: #fff; color: #000; text-align: center; padding: 16px; font-size: 13px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; margin-bottom: 10px; transition: all 0.1s ease; box-sizing: border-box; }
.btn-all-phases:hover { background: #f2f2f2; }
.btn-all-phases.selected { background: #000; color: #fff; }

.matrix-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0px; border-top: 1px solid #000; border-left: 1px solid #000; margin-bottom: 40px; }
@media (max-width: 480px) { .matrix-grid { grid-template-columns: repeat(2, 1fr); } }

.matrix-cell { background: #fff; border-right: 1px solid #000; border-bottom: 1px solid #000; padding: 18px 5px; font-size: 13px; font-weight: normal; letter-spacing: 1px; text-align: center; cursor: pointer; transition: all 0.1s ease; text-decoration: none; color: #000; display: block; position: relative; }
.matrix-cell:hover { background: #f2f2f2; }
.matrix-cell.selected { background: #000; color: #fff; }

.matrix-cell.active-system::after { content: 'en cours'; position: absolute; bottom: 2px; left: 0; right: 0; font-size: 10px; color: #ff0000; letter-spacing: 0px; text-align: center; font-weight: bold; }
.matrix-cell.selected.active-system::after { color: #fff; }

.doc-box { display: flex; flex-direction: column; gap: 10px; }
.doc-button { display: block; background: #fff; border: 1px solid #000; padding: 14px 20px; color: #000; text-decoration: none; font-size: 13px; font-weight: bold; transition: all 0.1s ease; text-transform: uppercase; letter-spacing: 1px; }
.doc-button:hover { background: #000; color: #fff; }


/* 9. BOUTON ANNULER / ACTION SECONDAIRE / MODIFIER INTERVENANT*/
.btn-annuler {
    display: block;
    flex: 1;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 14px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 5px;
    margin-top: 10px;
    box-sizing: border-box;
}
.btn-annuler:hover { background: #f2f2f2; }






/* 10. BLOC FONDAMENTAUX */
.bloc-ligne {width: auto; height: 1px; border-bottom: 1px solid #000; margin-bottom: 20px; margin-top: 0px; }

.bloc-fondamentaux { border-bottom: 1px solid #000; padding-bottom: 15px; margin-bottom: 20px; }
.fond-objet { margin-bottom: 8px; }
.fond-region { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.fond-titre-region { font-size: 24px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.fond-adresse { margin-bottom: 10px; text-align: center; }
.fond-adresse-valeur { font-size: 14px; font-weight: bold; text-transform: uppercase; }
.fond-cadastre { font-size: 12px; color: #555; margin-bottom: 10px; display: flex; gap: 15px; justify-content: flex-end; }
.fond-flags { display: flex; flex-direction: column; gap: 5px; }
.fond-flag { display: flex; justify-content:flex-end; align-items: right; font-size: 11px; margin-top:10px; }
.fond-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #555; }
.fond-value { font-weight: bold; text-transform: uppercase; }
.fond-flag-value { font-weight: bold; text-align: right; padding: 0px 5px 0px 5px }
.flag-oui { color: #000; }
.flag-non { color: #999; }
.fond-flag-value em { font-style: normal; font-size: 9px; letter-spacing: 1px; color: #999; margin-left: 5px; }


/* 13. HEADER DOCUMENT */
.header-document { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header-phase { font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border: 1px solid #000; padding: 5px 10px; }
.header-titre { background: #000; color: #fff; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; padding: 5px 20px; border-radius: 0px 10px 0px 10px; }



/* 11. FOOTER DOCUMENT */
.footer-document { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #000; padding-top: 10px; margin-top: 30px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.footer-code { font-weight: bold; font-size: 24px;color:#fff;background-color: #000;padding: 5px 20px 5px 20px;border-radius: 0px 10px 0px 10px;}
.footer-copyright { color: #555; }



/* 12. BLOCS INTERVENANTS ÉCRAN */
.screen-inv-bloc { border-bottom: 1px solid #000; margin-bottom: 10px; }
.screen-inv-role { font-size: 12px; letter-spacing: 1px; color: #555; text-transform: uppercase; margin-bottom: 4px; }
.screen-inv-nom { font-size: 24px; font-weight: bold; text-transform: uppercase; margin: 4px 0; }
.screen-inv-tva { font-size: 14px; font-weight: bold; background-color: #000; color: #fff; margin-bottom: 4px; width: 40%;padding: 5px;}
.screen-inv-adresse { font-size: 14px; margin-top: 6px; }
.screen-inv-contact { font-size: 14px; margin-top: 4px; }
.screen-inv-signature { font-size: 12px; color: #888; margin-top: 6px; text-align: right; }



/* 13. CHANGEMENT DE PHASE */
.alert-phase-change { display: flex; justify-content: space-between; align-items: center; background: #f2f2f2; border-left: 3px solid #000; padding: 12px 15px; margin-bottom: 20px; font-size: 12px; }
.btn-changer-phase { background: #000; color: #fff; padding: 10px 15px; text-decoration: none; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border-radius: 3px; }
.btn-changer-phase:hover { background: #555; }










