/* Module Demandes 0.3.0 (couleurs de la charte en 0.3.4) - formulaires de la page de resultat et de la page Contact. Reprend les variables de app.css (.scpd). */
.scpd-form-demande { display: grid; gap: .2em; }
.scpd-champ { margin: 0 0 .4em; }
.scpd-champ label, .scpd-champ > .scpd-sous-titre { display: block; font-weight: 600; }
.scpd-champ .scpd-texte { margin: .3em 0 .2em; max-width: 100%; }
.scpd-champ .scpd-aide { margin: 0 0 .4em; }
.scpd-texte-large { max-width: 100% !important; width: 100%; }
.scpd-texte-cp { max-width: 7.5em !important; }
textarea.scpd-texte { min-height: 5em; resize: vertical; }
.scpd-champ-ligne { display: flex; flex-wrap: wrap; gap: 0 1em; }
.scpd-champ-ligne .scpd-champ:last-child { flex: 1 1 12em; }
.scpd-champ-ligne .scpd-champ:last-child .scpd-texte { max-width: 100%; }
.scpd-form-demande .scpd-sous-titre { margin: .8em 0 .1em; }
.scpd-form-demande > .scpd-aide { margin: 0 0 .5em; }

.scpd-creneaux { display: grid; gap: .4em; margin-bottom: .8em; }
.scpd-creneau-jour { display: grid; grid-template-columns: 6.5em 1fr 1fr; gap: .4em; align-items: center; }
.scpd-creneau-date { font-weight: 600; font-size: .95em; }
.scpd-creneau { min-height: 44px; padding: .4em .6em; justify-content: center; text-align: center; font-size: .95em; }
.scpd-creneau:disabled { opacity: .4; cursor: default; }
.scpd-creneau:disabled:hover { border-color: var(--scpd-bord); }

.scpd-formule-choix { margin-top: .4em; }
.scpd-formule-choix .scpd-options-ligne { grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); margin-bottom: .3em; }
.scpd-formule-choix input { width: 20px; height: 20px; flex: none; accent-color: var(--scpd-accent); }

.scpd-accord { align-items: flex-start; font-size: .95em; margin: .4em 0; }
.scpd-accord input { margin-top: 2px; }

.scpd-btn-large { width: 100%; margin-left: 0 !important; font-size: 1.05em; }
.scpd-mention-rgpd { font-size: .82em; margin: .6em 0 0; }

/* Champ piege : hors ecran, jamais visible ni lu par un lecteur d'ecran */
.scpd-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.scpd-merci { padding: 1em 1.1em; border-radius: var(--scpd-rayon); background: var(--scpd-ok-pale, #E9F2EC); border-left: 6px solid var(--scpd-ok); }
.scpd-merci:focus { outline: none; }
.scpd-merci p { margin: .3em 0; }
.scpd-merci-titre { font-weight: 700; font-size: 1.1em; color: #22623d; }

@media (max-width: 380px) {
  .scpd-creneau-jour { grid-template-columns: 1fr 1fr; }
  .scpd-creneau-date { grid-column: 1 / -1; }
}
.scpd .scpd-formule-choix legend { font-size: 1em; font-weight: 600; margin: .8em 0 .4em; }
.scpd-creneau { white-space: nowrap; padding: .4em .3em; }

/* Page Contact (0.3.2) : [scp_contact] */
.scpd-contact .scpd-objet-choix .scpd-options-ligne { grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); margin-bottom: .3em; }
.scpd-contact .scpd-objet-choix input { width: 20px; height: 20px; flex: none; accent-color: var(--scpd-accent); }
.scpd .scpd-objet-choix legend { font-size: 1em; font-weight: 600; margin: .8em 0 .4em; }
.scpd-champ-photo { margin-top: .6em; }
.scpd-champ-photo .scpd-sous-titre { font-weight: 600; margin: .4em 0 .1em; }
/* Le vrai champ fichier reste lisible par les lecteurs d'ecran ; le bouton visible est son libelle */
.scpd-fichier { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.scpd-fichier:focus-visible + .scpd-btn-photo { outline: 3px solid var(--scpd-accent); outline-offset: 2px; }
.scpd-btn-photo { margin: .3em 0; }
.scpd-photo-apercu { margin: .5em 0 0; }
.scpd-photo-apercu img { display: block; max-width: 100%; width: 260px; height: auto; border-radius: var(--scpd-rayon); border: 1px solid var(--scpd-bord); }

/* 0.3.6 : téléphone avec indicatif du pays (menu natif + numéro sur une ligne) */
.scpd .scpd-tel-groupe { display: flex; gap: .5em; align-items: stretch; width: 100%; max-width: 22em; min-width: 0; }
.scpd .scpd-tel-groupe .scpd-indicatif { flex: 0 0 auto; width: auto; min-width: 6.4em; padding-right: .4em; background-color: #fff; color: inherit; font-variant-numeric: tabular-nums; }
.scpd .scpd-tel-groupe .scpd-tel-numero { flex: 1 1 0; min-width: 0; width: 0; max-width: none; }
