@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

.questionnaire-banner {
  background-color: #8dc63f;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.28) 1.5px,
    transparent 1.5px
  );
  background-size: 14px 14px;
  color: #fff;
  margin: 0 0 32px;
  overflow: hidden;
  padding: 28px 40px 24px;
}

.banner-haut {
  align-items: center;
  display: flex;
  gap: 28px;
}

.banner-photo {
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  height: 150px;
  object-fit: cover;
  width: 150px;
}

.banner-titre {
  color: #fff;
  flex: 1;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  min-width: 0;
}

.banner-titre .banner-logo {
  display: block;
  height: auto;
  margin-bottom: 12px;
  max-width: 150px;
  width: 100%;
}

.banner-titre .titre-ligne {
  display: block;
}

.banner-titre .titre-ligne + .titre-ligne {
  margin-top: 0.15em;
}

.banner-titre .titre-accent {
  color: #0a7340;
}

.banner-cta {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-sizing: border-box;
  color: #1a6b3c;
  display: flex;
  gap: 16px;
  max-width: 540px;
  min-width: 0;
  padding: 16px 28px;
}

.banner-cta-icon {
  align-items: center;
  background: #8dc63f;
  border-radius: 50%;
  color: #1a6b3c;
  display: flex;
  flex-shrink: 0;
  font-size: 1.25rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.banner-cta-texte {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  min-width: 0;
}

.banner-cta-texte strong {
  color: #1a6b3c;
  font-weight: 700;
}

.banner-etapes {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.banner-etape {
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 180px;
  text-align: center;
  text-decoration: none;
}

.banner-etape.active,
.banner-etape.terminee {
  color: #fff;
}

.banner-etape-icon {
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: flex;
  font-size: 1.35rem;
  height: 52px;
  justify-content: center;
  margin-bottom: 8px;
  width: 52px;
}

.banner-etape-icon svg {
  height: 1.35rem;
  width: 1.35rem;
}

.banner-etape.active .banner-etape-icon,
.banner-etape.terminee .banner-etape-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.banner-etape-numero {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.banner-etape-lien:hover {
  color: #fff;
}

.banner-etape-lien:hover .banner-etape-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.questionnaire-form {
  max-width: 900px;
}

.questionnaire-contenu {
  margin: 0 auto;
  max-width: 900px;
}

.form-row {
  margin-bottom: 20px;
}

.identification-champs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.identification-champs .form-row {
  margin-bottom: 20px;
  width: 100%;
}

.identification-champs .form-row:last-child {
  margin-bottom: 0;
}

.fielderrors {
  color: #c0392b;
  margin-bottom: 8px;
}

.questionnaire-form .sm {
  font-size: 0.85rem;
}

.questionnaire-form .error {
  color: #c0392b;
}

label {
  display: block;
}

.field-label,
.form-row > label:not(.checkbox-label) {
  color: #545454;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  margin-top: 20px;
}

.questionnaire-form .form-row .helptext {
  color: #787878;
  font-size: 0.95rem;
  margin: 6px 0 0;
}

textarea,
input[type="number"],
input[type="text"],
select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.questionnaire-form select {
  background-color: #fff;
}

.input-quantite {
  max-width: 120px;
}

.input-avec-unite {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
}

.input-avec-unite input[type="number"] {
  flex: 0 0 120px;
  max-width: 120px;
  min-width: 0;
  width: 120px;
}

.formulaire-section {
  margin-bottom: 32px;
}

.formulaire-section > h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 20px;
}

.formulaire-sous-titre {
  color: #545454;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
}

.adresse-champs {
  margin-bottom: 8px;
}

.adresse-champs-ligne {
  display: flex;
  gap: 20px;
}

.adresse-champs-ligne .form-row {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .adresse-champs-ligne {
    flex-direction: column;
    gap: 0;
  }
}

.recap-block {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
}

.recap-block h2 {
  margin-bottom: 10px;
}

.recap-block p,
.recap-block ul {
  margin: 0;
}

.recap-block ul {
  padding-left: 20px;
}

.recap-carte {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 16px;
  padding: 16px;
}

.recap-carte:last-child {
  margin-bottom: 0;
}

.recap-carte > p:last-child,
.recap-carte .recap-adresse {
  margin-bottom: 0;
}

.recap-carte .contacts-vide {
  margin: 0;
}

.recap-production-nom {
  margin: 0 0 8px;
}

.recap-production-nom strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.recap-liste {
  color: #545454;
  line-height: 1.5;
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.recap-liste li + li {
  margin-top: 4px;
}

.recap-liste-label {
  font-weight: 500;
}

.recap-condense > p,
.recap-condense .recap-adresse,
.recap-carte > p,
.recap-carte .recap-adresse {
  color: #545454;
  line-height: 1.5;
  margin: 0 0 8px;
}

.recap-condense .formulaire-sous-titre {
  margin-bottom: 4px;
  margin-top: 20px;
}

.recap-exploitation-nom {
  font-weight: 600;
}

.recap-contact-nom {
  margin: 0 0 8px;
}

.recap-contact-nom strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.recap-contact-principal {
  background: #eef6ee;
  border-radius: 4px;
  color: #2d6a2d;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
  padding: 2px 8px;
  vertical-align: middle;
}

.recap-ligne {
  margin-bottom: 20px;
}

.recap-ligne > .field-label {
  margin-top: 0;
}

.recap-valeur {
  color: #545454;
  font-size: 1rem;
}

.recap-activite > summary.activite-header {
  cursor: default;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.productions-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.productions-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #787878;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: -1px;
  padding: 10px 16px;
}

.productions-tab.active {
  border-bottom-color: #ffcd1c;
  color: #545454;
  font-weight: 500;
}

.productions-panel {
  display: none;
}

.productions-panel.active {
  display: block;
}

.categorie-production {
  margin-bottom: 20px;
}

.categorie-production > summary.categorie-header {
  background: transparent;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 4px;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 18px 16px;
  width: 100%;
}

.categorie-production > summary.categorie-header::-webkit-details-marker {
  display: none;
}

.categorie-header h2 {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.categorie-quantite {
  color: #545454;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 500;
}

.categorie-header-spacer {
  flex: 1;
  min-width: 12px;
}

.categorie-activites {
  padding: 16px;
}

.categorie-production-enfant {
  margin-bottom: 12px;
}

.categorie-production-enfant > summary.categorie-header {
  padding: 12px 16px;
}

.categorie-production-enfant > summary.categorie-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.categorie-activites .activite-production {
  margin-bottom: 12px;
}

.categorie-activites .activite-production:last-child {
  margin-bottom: 0;
}

.activite-production {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 16px;
}

.activite-production > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 16px;
}

.activite-production > summary::-webkit-details-marker {
  display: none;
}

.activite-production[open] > summary {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 12px;
}

.activite-champs {
  padding: 12px 16px 16px;
}

.activite-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 0;
}

.activite-header h3 {
  margin: 0;
}

.activite-quantite {
  color: #787878;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 400;
}

.activite-header-spacer {
  flex: 1;
  min-width: 12px;
}

.btn-link {
  background: none;
  border: none;
  color: #545454;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.checkbox-label {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}

.recap-consentements .checkbox-label {
  align-items: flex-start;
}

#questionnaire-form .recap-consentements a {
  text-decoration: underline;
}

.types-production,
.demarches-qualite {
  margin-top: 8px;
}

.demarches-qualite ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demarches-qualite li {
  margin-bottom: 8px;
}

.demarches-qualite li:last-child {
  margin-bottom: 0;
}

.demarches-qualite label {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.demarches-qualite input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}

.unite-label {
  color: #787878;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}

.message-erreur {
  background: #fdecea;
  border-radius: 4px;
  color: #c0392b;
  margin-bottom: 16px;
  padding: 12px 16px;
}

#questionnaire-form {
  max-width: none;
}

.contacts-section {
  margin-top: 8px;
}

.contacts-intro {
  color: #787878;
  margin: 0 0 16px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.contacts-vide {
  color: #787878;
  margin: 0;
}

.contact-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.contact-item > summary.contact-item-summary {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  padding: 16px;
}

.contact-item > summary.contact-item-summary::-webkit-details-marker {
  display: none;
}

.contact-item[open] > summary.contact-item-summary {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 12px;
}

.contact-item-infos {
  flex: 1;
  min-width: 0;
}

.contact-item-titre {
  font-weight: 600;
}

.contact-principal-label {
  align-items: center;
  color: #545454;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.9rem;
  gap: 6px;
  margin-top: 4px;
}

.contact-principal-label input {
  margin: 0;
}

.contact-item-modifier {
  color: #545454;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.contact-delete-btn {
  color: #c0392b;
  flex-shrink: 0;
}

.contact-item-form {
  padding: 12px 16px 16px;
}

.contacts-add-btn {
  margin-bottom: 16px;
}

.contact-item-add {
  margin-bottom: 16px;
}

.contacts-flags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.contacts-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .contact-item > summary.contact-item-summary {
    flex-direction: column;
  }

  .contact-delete-btn {
    align-self: flex-start;
  }
}

@media (max-width: 1100px) {
  .banner-haut {
    flex-wrap: wrap;
  }

  .banner-cta {
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .questionnaire-banner {
    padding: 20px 20px 18px;
  }

  .banner-haut {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .banner-titre .banner-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .banner-cta {
    align-items: flex-start;
    border-radius: 20px;
    padding: 14px 18px;
  }

  .banner-cta-icon {
    margin-top: 2px;
  }

  .banner-photo {
    height: 120px;
    width: 120px;
  }

  .banner-etapes {
    flex-wrap: wrap;
    gap: 16px 8px;
  }

  .banner-etape {
    flex: 0 0 calc(50% - 8px);
    max-width: none;
  }
}

@media (max-width: 420px) {
  .banner-etape {
    flex: 0 0 100%;
  }
}
