/*
 * Au Marché – pages d'enrôlement (maquettes design/enrolement/) :
 * « Devenir livreur » (aumarche-enrolement.php) et « Devenir vendeur » (bandeau posé par config-enrolement.php).
 * Les couleurs viennent des variables de aumarche-site.css.
 */

/* ---------- Bandeau du haut : titre sombre sur voile clair à gauche, photo à droite ---------- */
.am-enr-hero { border-radius: 20px; overflow: hidden; margin: 6px auto 20px; max-width: 1240px; min-height: 330px; display: flex; align-items: center;
	background: linear-gradient(90deg, #f3f8f3 0%, rgba(243,248,243,.96) 36%, rgba(243,248,243,.5) 58%, rgba(243,248,243,0) 76%), #e9f2ea; background-size: cover; background-position: right center; }
.am-enr-hero-livreur { background-image: linear-gradient(90deg, #f3f8f3 0%, rgba(243,248,243,.96) 36%, rgba(243,248,243,.5) 58%, rgba(243,248,243,0) 76%), url(aumarche-img-devenir-livreur.jpg); background-repeat: no-repeat; background-size: cover; background-position: right center; }
.am-enr-hero-vendeur { background-image: linear-gradient(90deg, #f3f8f3 0%, rgba(243,248,243,.96) 36%, rgba(243,248,243,.5) 58%, rgba(243,248,243,0) 76%), url(aumarche-img-devenir-vendeur.jpg); background-repeat: no-repeat; background-size: cover; background-position: right center; }
/* La photo du livreur est cadrée plus haut que le centre, sinon le visage est coupé par le bord du bandeau. */
.am-enr-hero-livreur { background-position: right 22%; }
.am-enr-hero-in { padding: 34px 28px; max-width: 560px; }
.am-enr-hero h1, .am-enr-hero h2 { color: var(--am-vert-fonce); font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.04; margin: 0 0 12px; font-weight: 800; }
.am-enr-hero p { font-size: 1.05rem; margin: 0 0 18px; color: var(--am-texte); }
.am-enr-atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .92rem; }
.am-enr-atouts li::before { content: "✔"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--am-vert); color: #fff; font-size: .75rem; }
.am-enr-etiquette { display: inline-block; margin-top: 18px; padding: 10px 16px; background: var(--am-jaune); color: #3b2b00; font-weight: 800; border-radius: 8px; transform: rotate(-3deg); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
@media (max-width: 799px) {
	.am-enr-hero { min-height: 0; }
	.am-enr-hero-livreur, .am-enr-hero-vendeur { background-position: 78% center; }
	.am-enr-hero-livreur { background-image: linear-gradient(180deg, rgba(243,248,243,.95), rgba(243,248,243,.9)), url(aumarche-img-devenir-livreur.jpg); }
	.am-enr-hero-vendeur { background-image: linear-gradient(180deg, rgba(243,248,243,.95), rgba(243,248,243,.9)), url(aumarche-img-devenir-vendeur.jpg); }
}

/* ---------- Les 4 étapes (livreur) et les 4 avantages (vendeur) ---------- */
.am-enr-etapes, .am-enr-avantages { list-style: none; max-width: 1240px; margin: 0 auto 20px; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 14px; background: #fff; border: 1px solid var(--am-bord); border-radius: 16px; }
@media (min-width: 600px) { .am-enr-etapes, .am-enr-avantages { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .am-enr-etapes, .am-enr-avantages { grid-template-columns: repeat(4, 1fr); } }
.am-enr-etapes li, .am-enr-avantages li { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--am-gris); }
.am-enr-etapes li > b, .am-enr-avantages li > b { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--am-vert); color: #fff; font-size: 1.05rem; }
.am-enr-etapes li:nth-child(2) > b, .am-enr-etapes li:nth-child(3) > b { background: var(--am-jaune); color: #3b2b00; }
.am-enr-etapes li:nth-child(4) > b { background: var(--am-rouge); }
.am-enr-avantages li > b { background: var(--am-vert-clair); font-weight: 400; font-size: 1.3rem; }
/* Kadence impose ses marges aux listes du contenu : sans ce sélecteur plus précis, les deux blocs se collent à gauche au lieu d'être centrés. */
.entry-content .am-enr-etapes, .entry-content .am-enr-avantages { margin: 0 auto 20px; padding: 16px; }
/* La page livreur est en pleine largeur : cette marge garde le contenu loin des bords sur un petit écran. */
.am-enr-page { padding: 0 16px; }
.entry-content ol.am-enr-fil { margin: 14px 0 10px; padding: 0; }
.am-enr-etapes strong, .am-enr-avantages strong { display: block; color: var(--am-texte); font-size: .95rem; margin-bottom: 2px; }

/* ---------- Carte du formulaire ---------- */
.am-enr-carte { max-width: 1240px; margin: 0 auto 40px; padding: 26px 22px; background: #fff; border: 1px solid var(--am-bord); border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.am-enr-carte > h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 8px; }
.am-enr-carte > p { margin: 0 0 18px; color: var(--am-texte); }
.am-enr-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.am-enr-form legend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; margin: 0 0 12px; background: var(--am-vert-clair); border-radius: 10px; font-size: 1.15rem; font-weight: 700; color: var(--am-texte); }
.am-enr-form legend b { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--am-vert); color: #fff; font-size: 1rem; }
.am-enr-form label, .am-enr-libelle { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.am-enr-form label i, .am-enr-libelle i { color: var(--am-rouge); font-style: normal; }
.am-enr-form label small, .am-enr-libelle small { font-weight: 400; color: var(--am-gris); }
.am-enr-form input[type=text], .am-enr-form input[type=tel], .am-enr-form input[type=email], .am-enr-form input[type=date], .am-enr-form select, .am-enr-form textarea {
	display: block; width: 100%; margin-top: 5px; padding: 11px 12px; min-height: 46px; border: 1px solid var(--am-bord); border-radius: 10px; background: #fff; font: inherit; font-weight: 400; box-sizing: border-box; }
.am-enr-form input:focus-visible, .am-enr-form select:focus-visible, .am-enr-form textarea:focus-visible { outline: 3px solid rgba(20,112,42,.35); outline-offset: 1px; border-color: var(--am-vert); }
.am-enr-grille { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 700px) { .am-enr-2 { grid-template-columns: 1fr 1fr; } .am-enr-3 { grid-template-columns: repeat(3, 1fr); } }
.am-enr-cases { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 14px; }
.am-enr-cases .am-enr-libelle { flex: 0 0 100%; margin-bottom: 2px; }
.am-enr-form label.am-enr-case { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.am-enr-case input { width: 20px; height: 20px; margin: 0; accent-color: var(--am-vert); }
.am-enr-form label.am-enr-puce { padding: 0 14px; border: 1px solid var(--am-bord); border-radius: 999px; background: #fafafa; }
.am-enr-form label.am-enr-accord { display: flex; align-items: flex-start; margin-top: 4px; }
.am-enr-form label.am-enr-accord input { margin-top: 3px; flex: 0 0 20px; }
.am-enr-form label.am-enr-depot { padding: 14px; border: 2px dashed var(--am-bord); border-radius: 12px; background: #fcfcfb; }
.am-enr-depot input[type=file] { display: block; width: 100%; margin: 8px 0 6px; font-weight: 400; font-size: .85rem; }
.am-enr-envoyer { display: block; width: 100%; padding: 15px 20px; border-radius: 999px; font-size: 1.05rem; font-weight: 700; text-align: center; }
.am-enr-note { margin: 12px 0 0; text-align: center; font-size: .85rem; color: var(--am-gris); }
/* Champ piège contre les robots : hors écran, jamais visible ni atteint au clavier */
.am-enr-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-enr-erreurs { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #fde8e8; border-left: 4px solid var(--am-rouge); }
.am-enr-erreurs ul { margin: 8px 0; padding-left: 20px; }
.am-enr-erreurs p { margin: 0; font-size: .9rem; }
.am-enr-merci { padding: 22px; border-radius: 12px; background: var(--am-vert-clair); }
.am-enr-merci h2 { margin: 0 0 8px; color: var(--am-vert-fonce); }
.am-enr-merci p { margin: 0; }

/* ---------- Page « Livreurs » du vendeur : étiquette des livreurs partenaires ---------- */
.am-tag-part { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--am-vert-clair); color: var(--am-vert-fonce); font-size: .72rem; font-weight: 600; vertical-align: middle; }

/* ---------- « Devenir vendeur » : titre et étapes au-dessus du formulaire WCFM ---------- */
.am-enr-intro { max-width: 1240px; margin: 0 auto 6px; }
.am-enr-intro h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 8px; }
.am-enr-fil { list-style: none; margin: 14px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; font-size: .9rem; color: var(--am-gris); }
.am-enr-fil li { display: flex; align-items: center; gap: 8px; }
.am-enr-fil li b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1f1ef; color: var(--am-texte); }
.am-enr-fil li.actif { color: var(--am-texte); }
.am-enr-fil li.actif b { background: var(--am-vert); color: #fff; }
