/* Mise à jour des fiches — s'appuie sur les variables du thème Annuaire du solaire, avec valeurs de repli */
.amf { --amf-vert: var(--as-vert, #196e3c); --amf-bord: var(--as-bord, #dbe4dd); --amf-fond: var(--as-fond, #f6f8f6); --amf-doux: var(--as-texte-doux, #55635a); --amf-rayon: var(--as-rayon, 14px); }
.amf-conteneur { max-width: 960px; }
body .amf-titre { margin: 0 0 18px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.1; }
.amf-message { margin: 0 0 22px; padding: 16px 20px; border-radius: 10px; background: #eef3fb; border: 1px solid #cfdcf1; }
.amf-message--succes { background: #e9f4ec; border-color: #b9dbc3; }
.amf-message--erreur { background: #fdecea; border-color: #f2c4bf; }
.amf-carte { padding: 26px; background: #fff; border: 1px solid var(--amf-bord); border-radius: calc(var(--amf-rayon) + 4px); box-shadow: 0 4px 14px rgba(8, 45, 24, .05); }
.amf-email { margin: 14px 0 20px; font: 700 20px/1.3 var(--as-police-titre, inherit); color: var(--amf-vert); }
.amf-note { margin: 10px 0 0; font-size: 14px; color: var(--amf-doux); }
.amf-piege { position: absolute; left: -9999px; }
.amf-formulaire { display: grid; gap: 22px; }
.amf-bloc { margin: 0; padding: 22px 24px 24px; background: #fff; border: 1px solid var(--amf-bord); border-radius: calc(var(--amf-rayon) + 4px); }
.amf-bloc legend { padding: 0 8px; margin-left: -8px; font: 700 18px/1.3 var(--as-police-titre, inherit); color: var(--as-vert-fonce, #0e4a27); }
.amf-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.amf-bloc--textes .amf-grille { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .amf-grille { grid-template-columns: minmax(0, 1fr); } }
.amf-champ { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.amf-champ label { font-weight: 600; font-size: 14px; }
.amf-champ small { font-weight: 400; color: var(--amf-doux); }
body .amf-champ :is(input[type=text], input[type=email], input[type=tel], select, textarea) {
	width: 100%; min-height: 46px; padding: 10px 13px; box-sizing: border-box; font: 16px/1.4 inherit;
	background: #fff; border: 1px solid var(--amf-bord); border-radius: 8px;
}
body .amf-champ textarea { min-height: 96px; resize: vertical; }
body .amf-champ :is(input, select, textarea):focus { border-color: var(--amf-vert); outline: 0; box-shadow: 0 0 0 3px rgba(25, 110, 60, .15); }
.amf-compteur { align-self: flex-end; font-size: 13px; color: var(--amf-doux); }
.amf-compteur.est-depasse { color: #b42318; font-weight: 700; }
.amf-erreur { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #b42318; }
.amf-sous-titre { margin: 20px 0 8px; font-weight: 700; }
.amf-domaine { margin-bottom: 8px; border: 1px solid var(--amf-bord); border-radius: 10px; background: var(--amf-fond); }
.amf-domaine summary { padding: 10px 14px; font-weight: 600; cursor: pointer; }
.amf-domaine[hidden] { display: none; }
.amf-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; padding: 4px 14px 14px; }
.amf-cases label { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.amf-cases input { margin-top: 3px; accent-color: var(--amf-vert); }
.amf-cases input:disabled + * , .amf-cases label:has(input:disabled) { opacity: .5; }
.amf-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.amf-logo > img { max-width: 200px; max-height: 110px; padding: 10px; border: 1px solid var(--amf-bord); border-radius: 10px; object-fit: contain; background: #fff; }
.amf-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; padding: 0; list-style: none; }
.amf-photos li { overflow: hidden; border: 1px solid var(--amf-bord); border-radius: 10px; background: #fff; }
.amf-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.amf-photos label { display: block; cursor: pointer; }
.amf-photos span { display: flex; gap: 6px; align-items: center; padding: 8px 10px; font-size: 14px; }
.amf-photos li:has(input:checked) img { opacity: .35; }
.amf-nouvelles { display: grid; gap: 10px; margin-top: 10px; }
.amf-nouvelle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; background: var(--amf-fond); border-radius: 10px; }
.amf-nouvelle[data-amf-masque] { display: none; }
.amf-nouvelle input[type=text] { min-height: 40px; padding: 8px 12px; border: 1px solid var(--amf-bord); border-radius: 8px; }
.amf-apercu { max-height: 70px; border-radius: 6px; }
@media (max-width: 640px) { .amf-nouvelle { grid-template-columns: minmax(0, 1fr); } }
.amf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.amf-etat { display: inline-block; margin: 0 0 16px; padding: 6px 14px; font-weight: 700; border-radius: 999px; background: var(--amf-fond); }
.amf-etat--en_attente { background: #fff7d6; } .amf-etat--publiee { background: #e9f4ec; } .amf-etat--refusee, .amf-etat--echec { background: #fdecea; }
.amf-decision { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 22px; }
.amf-refus summary { padding: 12px 6px; cursor: pointer; font-weight: 600; color: #8a3b2e; }
.amf-refus .amf-champ { margin: 8px 0 12px; min-width: min(480px, 90vw); }
