/* Demande de conseil (« question web ») — page faite pour une iframe du site du CAUE : sobre, lisible, adaptée au mobile. */
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #222; background: #fff; }
.demande-conseil { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
.introduction { margin: 0 0 1.25rem; color: #444; }
.champ { margin-bottom: 1rem; }
label, legend { display: block; font-weight: 600; margin-bottom: .3rem; }
fieldset { border: 0; margin: 0; padding: 0; }
.choix, .case { font-weight: normal; display: flex; gap: .5rem; align-items: baseline; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
    width: 100%; padding: .55rem .65rem; font: inherit; border: 1px solid #888; border-radius: 4px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #1a5fb4; outline-offset: 1px; border-color: #1a5fb4; }
.invalide input, .invalide select, .invalide textarea { border-color: #b00020; }
.erreur { color: #b00020; margin: .25rem 0 0; font-size: .95rem; }
.requis { color: #b00020; }
.aide { font-weight: normal; color: #555; font-size: .9rem; }
input[type=file] { width: 100%; font: inherit; padding: .4rem 0; }
p.aide { margin: 0 0 .3rem; }
.fichiers { list-style: none; margin: .4rem 0 0; padding: 0; }
.fichiers li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid #eee; word-break: break-all; }
button.retirer { font-weight: normal; font-size: .9rem; padding: .25rem .6rem; background: #fff; color: #1a5fb4; border: 1px solid #1a5fb4; flex-shrink: 0; }
button.retirer:hover, button.retirer:focus { background: #e8f0fb; }
.alerte { background: #fdecea; border: 1px solid #b00020; color: #7a0016; padding: .75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.succes { background: #e7f4ea; border: 1px solid #2e7d32; color: #1b5e20; padding: 1rem; border-radius: 4px; }
button { font: inherit; font-weight: 600; padding: .7rem 1.4rem; border: 0; border-radius: 4px; background: #1a5fb4; color: #fff; cursor: pointer; }
button:hover, button:focus { background: #154a8c; }
.mention-requis, .rgpd { font-size: .85rem; color: #555; }
.rgpd { margin-top: 1rem; }
/* champ piège : hors de l'écran, pas display:none (certains robots l'ignorent) */
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* select2 (commune) : même aspect que les autres champs */
.select2-container .select2-selection--single { height: auto; padding: .45rem .3rem; border: 1px solid #888; border-radius: 4px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { border-color: #1a5fb4; }
.invalide .select2-selection--single { border-color: #b00020; }
.select2-search__field { font: inherit; }
.section { margin: 0 0 1.5rem; }
.section-titre { font-size: 1.05rem; font-weight: 600; color: #333; padding-bottom: .4rem; margin-bottom: .8rem; border-bottom: 1px solid #ddd; width: 100%; }
