/* Muller Core – composants front (formulaires, chatbot, CTA, FAQ, grilles) */
:root {
	--mc-red: #e2311d;
	--mc-red-dark: #c1240f;
	--mc-ink: #161925;
	--mc-navy: #1b1e2b;
	--mc-text: #3d4150;
	--mc-muted: #6b7080;
	--mc-line: #e6e7ec;
	--mc-bg: #f5f5f7;
	--mc-white: #fff;
	--mc-green: #1fa855;
	--mc-radius: 14px;
	--mc-shadow: 0 10px 30px rgba(22, 25, 37, .08);
}

/* ---------- Boutons ---------- */
.mc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--mc-red); color: #fff !important; border: 0; border-radius: 10px;
	padding: .95em 1.4em; font-weight: 700; font-size: 1rem; line-height: 1.1; cursor: pointer;
	text-decoration: none !important; transition: background .2s, transform .2s; font-family: inherit;
}
.mc-btn:hover { background: var(--mc-red-dark); transform: translateY(-1px); }
.mc-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.mc-btn--ghost { background: transparent; color: var(--mc-ink) !important; box-shadow: inset 0 0 0 2px currentColor; }
.mc-btn--ghost:hover { background: rgba(0,0,0,.04); }
.mc-link { background: none; border: 0; color: var(--mc-muted); cursor: pointer; font: inherit; padding: .5em 0; }
.mc-link:hover { color: var(--mc-ink); }

/* ---------- Formulaires ---------- */
.mc-form { background: #fff; border-radius: var(--mc-radius); padding: 26px; box-shadow: var(--mc-shadow); color: var(--mc-text); position: relative; }
.mc-form__title { font-size: 1.35rem; font-weight: 800; color: var(--mc-ink); margin: 0 0 4px; line-height: 1.25; }
.mc-form__subtitle { margin: 0 0 16px; color: var(--mc-muted); font-size: .95rem; }
.mc-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mc-form legend { font-weight: 700; color: var(--mc-ink); margin-bottom: 12px; font-size: 1.05rem; padding: 0; }
.mc-field { display: block; margin-bottom: 12px; }
.mc-field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: var(--mc-ink); }
.mc-field input, .mc-field select, .mc-field textarea, .mc-chat__input input {
	width: 100%; box-sizing: border-box; border: 1.5px solid var(--mc-line); border-radius: 10px; padding: .8em .9em;
	font: inherit; font-size: 16px; color: var(--mc-ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.mc-field input:focus, .mc-field select:focus, .mc-field textarea:focus { outline: 0; border-color: var(--mc-red); box-shadow: 0 0 0 3px rgba(226,49,29,.12); }
.mc-field .is-invalid, .mc-chat__input input.is-invalid { border-color: #d63638; background: #fff6f6; }
.mc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.mc-file input { padding: .6em; font-size: .9rem; }
.mc-file > span { display: flex; align-items: center; gap: 6px; }
.mc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--mc-muted); margin: 6px 0 14px; line-height: 1.45; }
.mc-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--mc-red); flex: none; }
.mc-consent input.is-invalid { outline: 2px solid #d63638; }
.mc-consent a { color: inherit; }
.mc-form .mc-submit { width: 100%; }
.mc-form__reassure { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: .78rem; color: var(--mc-muted); margin: 12px 0 0; text-align: center; }
.mc-form__msg:empty { display: none; }
.mc-form__msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: .92rem; font-weight: 600; }
.mc-form__msg.is-ok { background: #e8f7ee; color: #12693a; }
.mc-form__msg.is-error { background: #fdecec; color: #a01d1d; }
.mc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Étapes */
.mc-steps { display: none; align-items: center; gap: 8px; margin-bottom: 18px; }
.mc-form.is-js .mc-steps { display: flex; }
.mc-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--mc-bg); color: var(--mc-muted); transition: .25s; }
.mc-steps span.is-active { background: var(--mc-red); color: #fff; }
.mc-steps i { flex: 1; height: 2px; background: var(--mc-line); }
.mc-form.is-js .mc-step { display: none; }
.mc-form.is-js .mc-step.is-active { display: block; animation: mcFade .3s ease; }
.mc-form:not(.is-js) .mc-next, .mc-form:not(.is-js) .mc-prev { display: none; }
.mc-form:not(.is-js) .mc-step { margin-bottom: 18px; }
@keyframes mcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mc-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; border-radius: 12px; }
.mc-choices.is-invalid { box-shadow: 0 0 0 2px #d63638; }
.mc-form--urgence .mc-choices { grid-template-columns: 1fr 1fr; }
.mc-choice { cursor: pointer; }
.mc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.mc-choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 82px; padding: 10px 6px; border: 1.5px solid var(--mc-line); border-radius: 12px; font-size: .82rem; font-weight: 600; color: var(--mc-ink); line-height: 1.2; transition: .2s; background: #fff; }
.mc-choice span .mc-ico { color: var(--mc-red); }
.mc-choice:hover span { border-color: var(--mc-red); }
.mc-choice input:checked + span { border-color: var(--mc-red); background: #fff3f1; box-shadow: 0 0 0 1px var(--mc-red); }
.mc-choice input:focus-visible + span { outline: 2px solid var(--mc-ink); outline-offset: 2px; }
.mc-emoji { font-size: 1.6rem; font-weight: 400; }
.mc-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mc-nav .mc-btn { flex: 1; max-width: 70%; }
.mc-step[data-step="1"] .mc-next { width: 100%; }

/* Formulaire sombre */
.mc-form--dark { background: var(--mc-red); color: #fff; box-shadow: none; }
.mc-form--dark .mc-form__title, .mc-form--dark legend, .mc-form--dark .mc-field > span { color: #fff; }
.mc-form--dark .mc-form__subtitle, .mc-form--dark .mc-consent, .mc-form--dark .mc-form__reassure { color: rgba(255,255,255,.88); }
.mc-form--dark .mc-btn { background: var(--mc-navy); }
.mc-form--dark .mc-btn:hover { background: #000; }
.mc-form--dark .mc-field input, .mc-form--dark .mc-field select, .mc-form--dark .mc-field textarea { border-color: transparent; }

.mc-flash { position: fixed; z-index: 99999; left: 50%; top: 20px; transform: translateX(-50%); padding: 14px 20px; border-radius: 10px; font-weight: 600; box-shadow: var(--mc-shadow); max-width: 90vw; }
.mc-flash.is-ok { background: #e8f7ee; color: #12693a; }
.mc-flash.is-error { background: #fdecec; color: #a01d1d; }

/* ---------- CTA dans les contenus ---------- */
.mc-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; padding: 26px 28px; border-radius: var(--mc-radius); margin: 36px 0; background: var(--mc-red); color: #fff; position: relative; overflow: hidden; }
.mc-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.mc-cta__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px !important; color: #fff; line-height: 1.3; }
.mc-cta p { margin: 0; color: rgba(255,255,255,.92); }
.mc-cta__btns { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.mc-cta .mc-btn { background: #fff; color: var(--mc-red) !important; }
.mc-cta .mc-btn:hover { background: var(--mc-ink); color: #fff !important; }
.mc-cta .mc-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.mc-cta__more { color: #fff !important; font-size: .88rem; text-align: center; opacity: .9; }
.mc-cta--dark { background: var(--mc-navy); }
.mc-cta--dark .mc-btn { background: var(--mc-red); color: #fff !important; }
.mc-cta--light { background: var(--mc-bg); color: var(--mc-ink); }
.mc-cta--light .mc-cta__title, .mc-cta--light p, .mc-cta--light .mc-cta__more { color: var(--mc-ink) !important; }
.mc-cta--light .mc-btn { background: var(--mc-red); color: #fff !important; }
.mc-cta--light .mc-btn--ghost { color: var(--mc-ink) !important; box-shadow: inset 0 0 0 2px var(--mc-ink); background: transparent; }

/* ---------- Réassurance ---------- */
.mc-reassure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mc-reassure li { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--mc-shadow); margin: 0 !important; }
.mc-reassure li::before { display: none !important; }
.mc-reassure .mc-ico { color: var(--mc-red); flex: none; }
.mc-reassure span { font-size: .82rem; color: var(--mc-muted); line-height: 1.35; }
.mc-reassure strong { display: block; color: var(--mc-ink); font-size: .95rem; }

/* ---------- Listes ---------- */
.mc-list-check { list-style: none !important; padding-left: 0 !important; }
.mc-list-check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.mc-list-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #fdeae7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2311d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.mc-steps-list { counter-reset: mcstep; list-style: none !important; padding-left: 0 !important; }
.mc-steps-list li { counter-increment: mcstep; position: relative; padding: 2px 0 12px 46px; margin: 0 0 6px; min-height: 34px; }
.mc-steps-list li::before { content: counter(mcstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--mc-navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.mc-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--mc-line); }
.mc-table th { background: var(--mc-navy); color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; }
.mc-table td { padding: 11px 14px; border-top: 1px solid var(--mc-line); }
.mc-table tr:nth-child(even) td { background: #fafafb; }

/* ---------- FAQ ---------- */
.mc-faq { display: grid; gap: 10px; }
.mc-faq__item { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--mc-line); overflow: hidden; }
.mc-faq__item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--mc-ink); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.mc-faq__item summary::-webkit-details-marker { display: none; }
.mc-faq__item summary .mc-ico { flex: none; transition: transform .25s; color: var(--mc-red); }
.mc-faq__item[open] summary .mc-ico { transform: rotate(180deg); }
.mc-faq__item[open] { box-shadow: 0 0 0 1.5px var(--mc-red); }
.mc-faq__a { padding: 0 20px 18px; color: var(--mc-text); }
.mc-faq__a p { margin: 0; }

/* ---------- Grille services ---------- */
.mc-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.mc-service-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--mc-radius); overflow: hidden; box-shadow: var(--mc-shadow); text-decoration: none !important; color: var(--mc-text); transition: transform .25s, box-shadow .25s; }
.mc-service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,25,37,.14); }
.mc-service-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--mc-bg); display: block; }
.mc-service-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mc-service-card:hover .mc-service-card__img img { transform: scale(1.05); }
.mc-service-card__body { position: relative; padding: 34px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mc-service-card__ico { position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; border-radius: 12px; background: var(--mc-red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(226,49,29,.35); }
.mc-service-card__title { font-weight: 800; font-size: 1.1rem; color: var(--mc-ink); line-height: 1.25; }
.mc-service-card__txt { font-size: .9rem; color: var(--mc-muted); flex: 1; }
.mc-service-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--mc-red); }

/* ---------- Villes ---------- */
.mc-villes__title { margin: 28px 0 12px; font-size: 1.1rem; }
.mc-villes__title small { color: var(--mc-muted); font-weight: 500; }
.mc-villes__list { list-style: none !important; padding: 0 !important; margin: 0 0 10px !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.mc-villes__list li { margin: 0 !important; }
.mc-villes__list li::before { display: none !important; }
.mc-villes__list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--mc-line); text-decoration: none !important; color: var(--mc-ink); font-size: .9rem; font-weight: 600; transition: .2s; }
.mc-villes__list a:hover { box-shadow: 0 0 0 1.5px var(--mc-red); color: var(--mc-red); }
.mc-villes__list a span { color: var(--mc-muted); font-weight: 500; font-size: .8rem; }
.mc-zone-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.mc-zone-card { display: block; padding: 24px; border-radius: var(--mc-radius); background: var(--mc-navy); color: #fff !important; text-decoration: none !important; transition: .25s; }
.mc-zone-card:hover { background: var(--mc-red); }
.mc-zone-card strong { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.mc-zone-card span { opacity: .85; font-size: .92rem; }

/* ---------- Réalisations ---------- */
.mc-real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.mc-real-card { border-radius: var(--mc-radius); overflow: hidden; background: #fff; box-shadow: var(--mc-shadow); transition: transform .25s, box-shadow .25s; }
.mc-real-card[hidden] { display: none; }
.mc-real-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,25,37,.14); }
.mc-real-card__link { display: block; color: inherit; text-decoration: none !important; }
.mc-real-card__img { display: block; aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--mc-bg); }
.mc-real-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mc-real-card:hover .mc-real-card__img img { transform: scale(1.05); }
.mc-real-card__count { position: absolute; right: 10px; bottom: 10px; background: rgba(22,25,37,.78); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.mc-real-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.mc-real-card__title { font-weight: 800; color: var(--mc-ink); font-size: 1.05rem; }
.mc-real-card__meta { display: flex; align-items: center; gap: 4px; color: var(--mc-muted); font-size: .85rem; }
.mc-tag { align-self: flex-start; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--mc-red); background: #fdeae7; padding: 4px 9px; border-radius: 99px; }

/* ---------- Étoiles ---------- */
.mc-stars { color: #d9d9de; letter-spacing: 1px; }
.mc-stars .on { color: #f5b400; }

/* ---------- Plan du site ---------- */
.mc-sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* ---------- Chatbot WhatsApp ---------- */
.mc-chat { position: fixed; right: 20px; bottom: 20px; z-index: 9990; font-family: inherit; }
.mc-chat__fab { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(37,211,102,.45); position: relative; transition: transform .2s; }
.mc-chat__fab:hover { transform: scale(1.06); }
.mc-chat__fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: mcPulse 2.4s infinite; }
@keyframes mcPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.mc-chat__bubble { position: absolute; right: 74px; bottom: 12px; white-space: nowrap; background: #fff; color: var(--mc-ink); font-size: .88rem; font-weight: 700; padding: 10px 14px; border-radius: 12px; box-shadow: var(--mc-shadow); opacity: 0; transform: translateX(8px); pointer-events: none; transition: .3s; }
.mc-chat.show-bubble .mc-chat__bubble { opacity: 1; transform: none; }
.mc-chat[data-open="1"] .mc-chat__bubble { opacity: 0; }
.mc-chat__panel { position: absolute; right: 0; bottom: 78px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); background: #efeae2; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: mcFade .25s ease; }
.mc-chat__panel[hidden] { display: none; }
.mc-chat__head { background: #075e54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 14px; }
.mc-chat__head small { display: flex; align-items: center; gap: 5px; font-size: .75rem; opacity: .9; font-weight: 400; }
.mc-chat__head small i { width: 8px; height: 8px; border-radius: 50%; background: #25d366; display: inline-block; }
.mc-chat__head strong { display: block; font-size: .98rem; }
.mc-chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mc-red); display: grid; place-items: center; flex: none; }
.mc-chat__close { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; opacity: .85; }
.mc-chat__body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.mc-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.4; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: mcFade .2s ease; }
.mc-msg--bot { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.mc-msg--me { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.mc-msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.mc-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa; animation: mcDot 1s infinite; }
.mc-msg--typing span:nth-child(2) { animation-delay: .15s; }
.mc-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mcDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mc-chip { border: 1.5px solid #075e54; background: #fff; color: #075e54; border-radius: 99px; padding: 7px 12px; font-size: .84rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.mc-chip:hover, .mc-chip.is-primary { background: #075e54; color: #fff; }
.mc-chat__input { display: flex; gap: 8px; padding: 10px; background: #f0f0f0; }
.mc-chat__input[hidden] { display: none; }
.mc-chat__input input { border-radius: 99px; padding: .7em 1em; }
.mc-chat__input button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #075e54; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mc-chat__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mc-chat__wa, .mc-chat__call { display: block; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; text-decoration: none !important; font-size: .92rem; }
.mc-chat__wa { background: #25d366; color: #fff !important; }
.mc-chat__call { background: #fff; color: #075e54 !important; box-shadow: inset 0 0 0 1.5px #075e54; }
.mc-chat__legal { margin: 0; padding: 6px 12px 10px; font-size: .68rem; color: #667; background: #f0f0f0; line-height: 1.35; }
.mc-chat__legal a { color: inherit; }

@media (max-width: 900px) {
	.mc-reassure { grid-template-columns: 1fr 1fr; }
	.mc-cta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.mc-row { grid-template-columns: 1fr; }
	.mc-choices { grid-template-columns: 1fr 1fr; }
	.mc-form { padding: 20px 16px; }
	.mc-zone-cards, .mc-sitemap { grid-template-columns: 1fr; }
	.mc-reassure li { padding: 12px; }
	.mc-chat { right: 14px; bottom: 82px; }
	.mc-chat__fab { width: 56px; height: 56px; }
	.mc-chat__bubble { display: none; }
	.mc-chat__panel { position: fixed; right: 8px; left: 8px; bottom: 150px; width: auto; max-width: none; height: auto; top: 70px; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .mc-chat__fab::before { animation: none; } * { scroll-behavior: auto !important; } }
@media (max-width: 900px) { .mc-real-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mc-real-grid { grid-template-columns: 1fr; } }
