/* Fin de chantier — mêmes couleurs et polices que le site synum.fr. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }

:root {
  --fond: #F6F4EF;
  --fond-2: #EDE9E0;
  --encre: #1C1B19;
  --texte-2: #46433D;
  --texte-3: #5C5850;
  --bordure: #D6D0C4;
  --accent: #B23A0B;
  --accent-fonce: #962F08;
  --erreur: #A3200F;
  --blanc: #FFFFFF;
  --titres: "Archivo", system-ui, sans-serif;
  --tactile: 56px; /* hauteur des zones à toucher : doigts épais, gants, écran sale */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Barre du haut */
.barre {
  position: sticky; top: 0; z-index: 1;
  background: var(--encre); color: var(--fond);
  padding: calc(env(safe-area-inset-top) + .75rem) 1rem .75rem;
}
.barre__titre { font-family: var(--titres); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.barre__etat { margin-top: .35rem; font-size: .95rem; color: #F3C9B3; }

.contenu {
  max-width: 40rem; margin: 0 auto;
  padding: 1.25rem 1rem calc(env(safe-area-inset-bottom) + 2rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  outline: none;
}
.titre { font-family: var(--titres); font-weight: 800; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; }

/* Boutons */
.bouton {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tactile); padding: .75rem 1.25rem; border-radius: 10px;
  border: 0; background: var(--accent); color: var(--blanc);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
}
.bouton:active { background: var(--accent-fonce); }
.bouton:disabled { opacity: .6; }
.bouton--grand { width: 100%; min-height: 64px; font-size: 1.2rem; }

.retour {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: 48px; padding-right: 1rem; font-weight: 600; text-decoration: none; color: var(--texte-2);
}

/* Liste des chantiers */
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.carte {
  display: flex; flex-direction: column; gap: .15rem;
  min-height: 72px; padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--blanc); border: 1.5px solid var(--bordure); text-decoration: none;
}
.carte:active { border-color: var(--accent); }
.carte__titre { font-weight: 600; font-size: 1.2rem; }
.carte__ligne { color: var(--texte-2); }
.carte__ligne--discrete { color: var(--texte-3); font-size: 1rem; }
.vide { color: var(--texte-2); }

/* Formulaires */
.formulaire { display: flex; flex-direction: column; gap: 1.25rem; }
.champ { display: flex; flex-direction: column; gap: .4rem; }
.champ label { font-weight: 600; }
.facultatif { font-weight: 400; color: var(--texte-3); }
.champ input, .champ textarea {
  width: 100%; min-height: var(--tactile); padding: .75rem .9rem;
  border: 1.5px solid var(--bordure); border-radius: 10px; background: var(--blanc);
  font: inherit; font-size: 1.15rem; color: var(--encre);
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ textarea:focus { border-color: var(--encre); outline: none; }
.erreur { color: var(--erreur); font-weight: 600; }
.erreur:empty { display: none; }

.puces { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.puce {
  min-height: 48px; padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--bordure); background: var(--fond-2); color: var(--encre);
  font: inherit; font-size: 1rem; cursor: pointer; touch-action: manipulation;
}
.puce:active { border-color: var(--accent); }

/* Fiche chantier */
.infos { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.infos dt { color: var(--texte-3); }
.infos dd { font-weight: 600; overflow-wrap: anywhere; }
.bientot { padding: 1rem 1.1rem; border-radius: 12px; background: var(--fond-2); color: var(--texte-2); }
.bientot h2 { font-size: 1rem; margin-bottom: .25rem; color: var(--encre); }
