/* Ajustements propres à l'application réelle, chargés après les feuilles issues des maquettes. */
[hidden] { display: none !important; }

/* Le halo du bandeau suit la couleur d'accent du portail, ou celle de l'application sur sa fiche. */
.scene { --halo: var(--accent); }
.scene[style*="--ton"] { --halo: color-mix(in srgb, var(--ton) 72%, #fff); }
.scene::before { background:
  radial-gradient(42% 60% at 82% 8%, color-mix(in srgb, var(--halo) 62%, transparent), transparent 70%),
  radial-gradient(36% 52% at 8% 96%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 72%),
  radial-gradient(30% 40% at 52% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.capture figure { box-shadow: 0 60px 100px -30px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.14), 0 0 90px -10px color-mix(in srgb, var(--halo) 60%, transparent); color: var(--ton); background: #fff; }
.capture img { display: block; width: 100%; height: auto; border-radius: 16px; }
.doc-une { color: #fff; }
.doc-une::before { background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--ton) 70%, #6f8fd8), transparent 70%); }
.doc-une .feuille { color: var(--ton); }

/* Menu du compte */
.menu-compte { position: relative; margin-left: 8px; }
.menu-compte summary { list-style: none; display: flex; align-items: center; justify-content: center; margin: 0; }
.menu-compte summary::-webkit-details-marker { display: none; }
.menu-compte > div { position: absolute; right: 0; top: 52px; z-index: 20; min-width: 240px; padding: 16px; border-radius: 14px; background: #fff; color: var(--encre); box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5); display: flex; flex-direction: column; gap: 4px; }
.menu-compte b { font-size: 15px; }
.menu-compte small { font-size: 13px; color: var(--encre-3); overflow-wrap: anywhere; }
.menu-compte form { margin-top: 12px; display: block; }
.menu-compte .btn { width: 100%; }

/* Messages d'état */
.etat-page { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: #EAF3EC; color: #1E4A29; font-size: 14.5px; font-weight: 500; }
.etat-page.erreur { background: var(--accent-lavis); color: var(--accent-fonce); }
.remonte > .etat-page { box-shadow: 0 12px 28px -18px rgba(19,14,15,0.3); }

/* Cartes : capture déposée, logo d'application */
.vue img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.carte:hover .vue img { transform: scale(1.04); }
.vue { color: var(--ton); }
img.logo-app { object-fit: contain; background: #fff; padding: 4px; }
.identite b.chantier::before { background: #E2A336; box-shadow: 0 0 0 4px rgba(226,163,54,0.18); }
.dev.seule { position: relative; margin-top: -128px; }
.dev.seule .rubrique { color: #fff; }
.dev.seule .rubrique span { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.86); }
.vide-accueil { padding: 40px; display: flex; flex-direction: column; gap: 10px; }
.vide-accueil h2 { font-size: 24px; }
.vide-accueil p { color: var(--encre-2); line-height: 1.5; }
.aucun-resultat { padding-block: 40px 80px; color: var(--encre-3); }
.fil-actu b a { text-decoration: none; }
.fil-actu b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.suite + .dev { padding-top: 48px; }

/* Fiche */
.reponse-q { margin-top: 10px; padding-top: 10px; border-top: 1px solid #E0DCD5; font-size: 14.5px; line-height: 1.5; color: var(--encre-2); white-space: pre-line; }
.bloc .aide { font-size: 13px; color: var(--encre-3); }
.cote { flex: 1 1 360px; min-width: 0; }
.bas > section { flex: 1 1 360px; }

/* Lecteur de document */
.pdf { display: block; width: 100%; height: min(86vh, 1100px); border: 0; background: #E9E6E0; }
.visionneuse .pages { min-height: 320px; justify-content: center; }
.visionneuse .pages p { font-size: 15px; }
.lecture .cote { flex: 1 1 270px; }

.message-page { padding-block: 72px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.message-page h1 { font-size: 44px; }
.message-page p { font-size: 17px; color: rgba(255,255,255,0.78); max-width: 52ch; }

/* ─────────── Administration ─────────── */
.colonne-form { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.colonne-form form { flex: none; }
.colonne-form > .bloc, .colonne-form > .danger { box-shadow: 0 1px 2px rgba(19,14,15,0.05), 0 12px 28px -18px rgba(19,14,15,0.2); }
.colonne-form > .danger { box-shadow: none; }
.champ input[type=url], .champ input[type=date], .rangee input[type=date], .rangee input[type=url] { height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid #BDBDBD; background: #fff; font: 14px var(--sans); color: var(--encre); width: 100%; }
.champ input[type=file], .rangee input[type=file] { width: 100%; padding: 10px; border: 1px dashed #B0A99F; border-radius: 12px; background: #F8F7F5; font: 13.5px var(--sans); color: var(--encre-2); }
.champ input[type=file]::file-selector-button, .rangee input[type=file]::file-selector-button { margin-right: 12px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ligne); background: #fff; font: 600 13px var(--sans); color: var(--encre); cursor: pointer; }
.teintes input[type=color] { width: 46px; height: 46px; padding: 3px; border-radius: 12px; border: 1px solid #BDBDBD; background: #fff; cursor: pointer; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.remplacer label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--encre-3); }
.rien { color: var(--encre-3); }
[draggable=true] .poignee { cursor: grab; }
.glisse { opacity: 0.4; }
.matrice thead .col-groupe { width: 100%; min-height: 56px; padding: 8px 10px; border-radius: 10px; font: 600 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--encre); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; text-align: center; }
.matrice thead .col-groupe small { font-size: 11.5px; font-weight: 500; color: var(--encre-3); }
.matrice thead .col-groupe:hover { background: #F3F1ED; }
.matrice thead .actif .col-groupe { background: var(--encre); color: #fff; }
.matrice thead .actif .col-groupe small { color: rgba(255,255,255,0.7); }
.pied-matrice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--ligne); }
.membres form { display: block; }
.oter { text-align: left; }
.depot img { max-height: 32px; max-width: 100%; width: auto; }
.connexion-locale { display: flex; flex-direction: column; gap: 12px; }
.boite select { height: 50px; padding: 0 12px; border-radius: 12px; border: 1px solid #BDBDBD; font: 15px var(--sans); width: 100%; background: #fff; }
.oter { height: 46px; padding: 0 10px; border: 0; background: transparent; font: 600 13px var(--sans); color: var(--encre-3); cursor: pointer; }
.oter:hover { color: var(--accent-fonce); }
