/* Charte e-Agora — gabarit des formulaires publics (prefixe .fp-)
   Sert « S'inscrire comme journaliste » ET « Nous contacter » : meme tetiere,
   meme carte, meme filet, meme largeur. Une seule source pour les deux, sinon
   les deux pages divergent au premier correctif.
   Marianne, couleur principale noire #0A0A0A, accents discrets. */
.fp-wrapper {
  max-width: 880px;
  margin: 32px auto 48px;
  padding: 0 16px;
  font-family: var(--font-base);
  color: #0a0a0a;
}

.fp-tetiere {
  margin-bottom: 16px;
}

.fp-tetiere img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
}

.fp-card {
  background: #fff;
  border: 1px solid #e5e2da;
  border-radius: var(--radius, 8px);
  padding: 32px;
  margin-bottom: 16px;
}

.fp-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e2da;
  padding-bottom: 18px;
}

.fp-header h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #0a0a0a;
  font-family: Marianne, sans-serif;
}

.fp-header p {
  margin: 0;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.5;
  font-family: Marianne, sans-serif;
}

.fp-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 24px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e2da;
  font-family: Marianne, sans-serif;
}

.fp-section-title:first-of-type {
  margin-top: 0;
}

.fp-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.fp-row--full > * {
  grid-column: 1 / -1;
}

/* Civilite | Prenom | Nom de front : l'identite tient sur une seule ligne. */
.fp-row--3 {
  /* La civilite est un select a deux entrees : elle n'a pas besoin d'une
     colonne pleine. 150px, et pas moins : le select reserve 12px de padding a
     gauche et 34px a droite pour son chevron, il ne reste donc que la largeur
     moins 46px pour le texte. « Sélectionner » en Marianne 14px en demande
     ~86px. Valeur dictee par le contenu, pas choisie : c'est en la fixant a
     140px avec le libelle « — Sélectionner — » (~122px) qu'il s'est retrouve
     tronque.
     Pas de palier mobile ici : sous 640px .fp-row repasse deja en une seule
     colonne (regle plus bas), la civilite y prend toute la largeur. */
  grid-template-columns: 150px 1fr 1fr;
}

@media (max-width: 640px) {
  .fp-row {
    grid-template-columns: 1fr;
  }
}

.fp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-field label {
  font-size: 12px;
  font-weight: 600;
  color: #0a0a0a;
  font-family: Marianne, sans-serif;
}

.fp-field .req {
  color: #b5170d;
  font-weight: 700;
}

.fp-field input[type="text"],
.fp-field input[type="email"],
.fp-field input[type="tel"],
.fp-field textarea,
.fp-field select {
  width: 100%;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #e5e2da;
  border-radius: var(--radius, 8px);
  color: #0a0a0a;
  font-family: Marianne, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  height: 40px;
}

.fp-field input:focus,
.fp-field textarea:focus,
.fp-field select:focus {
  outline: none;
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a inset;
}

.fp-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237A7568'%3E%3Cpath d='M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 34px;
}

.fp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4a4a4a;
  margin-top: 6px;
  cursor: pointer;
  font-family: Marianne, sans-serif;
}

.fp-checkbox input {
  accent-color: #0a0a0a;
}

.fp-hint {
  font-size: 12px;
  color: #716D61;
  margin: 4px 0 0 0;
  font-style: italic;
  font-family: Marianne, sans-serif;
}

.fp-required-note {
  font-size: 12px;
  color: #716D61;
  margin: 0 0 18px 0;
  font-family: Marianne, sans-serif;
}

.fp-required-note .req {
  color: #b5170d;
  font-weight: 700;
}

/* Captcha altcha */
.fp-captcha {
  margin: 22px 0 12px 0;
}

.fp-captcha altcha-widget {
  display: block;
}

.fp-submit {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.fp-submit .btn-primary {
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #0a0a0a;
  padding: 11px 22px;
  border-radius: var(--radius, 8px);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background-color 120ms,
    border-color 120ms;
  font-family: Marianne, sans-serif;
}

.fp-submit .btn-primary:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.fp-submit .btn-primary:disabled {
  background: #b0ab9b;
  border-color: #b0ab9b;
  cursor: not-allowed;
}

.fp-alert {
  padding: 14px 16px;
  border-radius: var(--radius, 8px);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-family: Marianne, sans-serif;
}

.fp-alert i {
  font-size: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.fp-alert--success {
  background: #e8f5ec;
  border: 1px solid #167A39;
  color: #0f5a2a;
}

.fp-alert--success i {
  color: #167A39;
}

.fp-alert--error {
  background: #fbe6e4;
  border: 1px solid #b5170d;
  color: #8e1208;
}

.fp-alert--error i {
  color: #b5170d;
}

.fp-rgpd {
  margin-top: 18px;
  padding: 14px 16px;
  background: #faf9f5;
  border: 1px solid #e5e2da;
  border-radius: var(--radius, 8px);
  font-size: 12px;
  color: #4a4a4a;
  line-height: 1.55;
  font-family: Marianne, sans-serif;
}

.fp-rgpd strong {
  color: #0a0a0a;
}

.fp-rgpd a {
  color: #0a0a0a;
  text-decoration: underline;
}

/* Zone de message (formulaire « Nous contacter »). */
.fp-field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
