/* DF24 – Recherche : recherche plein écran de l'en-tête sur mobile (préfixe drm-). */
@media (max-width: 767px) {
	html.drm-open, html.drm-open body { overflow: hidden !important; overscroll-behavior: none; }

	.elementor-location-header .elementor-search-form--skin-full_screen .elementor-search-form--full-screen {
		z-index: 100001 !important;
		background: #0E2350 !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	/* Liseré Périgord en haut */
	.elementor-location-header .elementor-search-form--full-screen::before {
		content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
		background: linear-gradient(90deg, #238E44 0 25%, #FFFFFF 25% 50%, #9A1849 50% 75%, #0A0A0A 75%);
	}
	.elementor-location-header .elementor-search-form--full-screen .dialog-lightbox-close-button { display: none !important; }

	/* Barre : champ + Annuler */
	.drm-bar { display: flex; align-items: center; gap: 12px; width: 100%; flex: 0 0 auto; }
	.drm-champ { position: relative; flex: 1 1 auto; min-width: 0; }
	.elementor-search-form--skin-full_screen .elementor-search-form--full-screen .drm-champ .elementor-search-form__input {
		width: 100% !important; max-width: none !important; height: 52px !important;
		margin: 0 !important; padding: 0 44px 0 46px !important;
		background: #FFFFFF !important; color: #14213D !important;
		border: 2px solid #FFFFFF !important; border-radius: 12px !important;
		box-shadow: none !important; outline: none !important;
		font: 600 17px/1.2 Barlow, sans-serif !important; text-align: left !important;
		-webkit-appearance: none; appearance: none;
	}
	.elementor-search-form--skin-full_screen .elementor-search-form--full-screen .drm-champ .elementor-search-form__input:focus,
	.elementor-search-form--skin-full_screen .elementor-search-form--full-screen .drm-champ .elementor-search-form__input:focus-visible {
		border-color: #52A0D3 !important; box-shadow: 0 0 0 4px rgba(82, 160, 211, .35) !important; outline: none !important;
	}
	.elementor-search-form--skin-full_screen .elementor-search-form--full-screen .drm-champ .elementor-search-form__input::placeholder { color: #6B7A96 !important; opacity: 1; font-weight: 500; }
	.drm-champ .elementor-search-form__input::-webkit-search-cancel-button,
	.drm-champ .elementor-search-form__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
	.drm-loupe { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: #264075; pointer-events: none; z-index: 1; }
	.elementor-search-form--full-screen .drm-effacer {
		position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 1;
		width: 40px; height: 40px; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
		display: flex; align-items: center; justify-content: center;
		background: transparent !important; color: #4A5878 !important; box-shadow: none !important; cursor: pointer;
	}
	.elementor-search-form--full-screen .drm-effacer:hover, .elementor-search-form--full-screen .drm-effacer:focus { background: transparent !important; color: #14213D !important; }
	.drm-effacer svg { width: 18px; height: 18px; padding: 3px; box-sizing: content-box; background: #EAF2FA; border-radius: 50%; }
	.drm-effacer[hidden] { display: none; }
	.elementor-search-form--full-screen .drm-annuler {
		flex: 0 0 auto; min-height: 44px; padding: 0 4px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important;
		color: #FFFFFF !important; font: 600 16px/1 Barlow, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer;
	}
	.elementor-search-form--full-screen .drm-annuler:hover, .elementor-search-form--full-screen .drm-annuler:focus { background: transparent !important; color: #52A0D3 !important; }

	/* Lancer la recherche quand aucune suggestion */
	.elementor-search-form--full-screen .drm-go {
		display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 16px; min-height: 52px;
		border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .08);
		color: #FFFFFF; font: 500 16px/1.3 Barlow, sans-serif; text-align: left; cursor: pointer;
	}
	.drm-go b { font-weight: 700; word-break: break-word; }
	.drm-go svg { flex: 0 0 auto; color: #52A0D3; }
	.elementor-search-form--full-screen .drm-go:hover, .elementor-search-form--full-screen .drm-go:focus { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
	.drm-go[hidden] { display: none; }

	/* Panneau champ vide */
	.drm-panel { width: 100%; margin-top: 22px; color: #DCE7F4; text-align: left; }
	.drm-panel[hidden] { display: none; }
	.drm-sec + .drm-sec { margin-top: 26px; }
	.drm-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
	.drm-titre { margin: 0 0 10px; color: #9FB6D6; font: 700 12px/1.2 Barlow, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
	.drm-tete .drm-titre { margin: 0; }
	.elementor-search-form--full-screen .drm-vider { padding: 6px 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-transform: none !important; color: #52A0D3; font: 600 14px/1 Barlow, sans-serif; cursor: pointer; }
	.elementor-search-form--full-screen .drm-vider:hover, .elementor-search-form--full-screen .drm-vider:focus { background: transparent !important; color: #FFFFFF; }
	.drm-recents, .drm-grille { list-style: none; margin: 0; padding: 0; }
	.elementor-search-form--full-screen .drm-recent {
		display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 2px;
		border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); background: transparent;
		color: #FFFFFF; font: 500 16px/1.3 Barlow, sans-serif; text-align: left; cursor: pointer;
	}
	.drm-recent span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.drm-recent svg { flex: 0 0 auto; width: 18px; height: 18px; color: #9FB6D6; }
	.drm-recent svg:last-child { opacity: .6; }
	.elementor-search-form--full-screen .drm-recent:hover, .elementor-search-form--full-screen .drm-recent:focus { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
	.drm-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.drm-lien {
		display: flex; align-items: center; gap: 10px; height: 100%; min-height: 58px; padding: 10px 12px; box-sizing: border-box;
		border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .07);
		color: #FFFFFF !important; font: 600 15px/1.2 Barlow, sans-serif; text-decoration: none !important; text-align: left; justify-content: flex-start;
	}
	.drm-lien:hover, .drm-lien:focus { background: rgba(255, 255, 255, .13); }
	.drm-ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #264075; color: #52A0D3; }
	.drm-ico svg { width: 18px; height: 18px; }
	.drm-astuce { margin: 26px 0 0; color: #9FB6D6; font: 400 14px/1.5 Barlow, sans-serif; }

	/* Suggestions (df24-clubs.js) : juste sous le champ, pleine largeur, au-dessus du clavier */
	html.drm-open .dcl-pop.dcl-site {
		position: fixed !important; z-index: 2147483001 !important;
		top: var(--drm-top, 90px) !important; bottom: auto !important;
		left: 16px !important; right: 16px !important; width: auto !important;
		max-height: calc(var(--drm-vh, 100vh) - var(--drm-top, 90px) - 12px) !important;
		border-radius: 14px !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .35) !important;
		overscroll-behavior: contain;
	}
	html.drm-open .dcl-pop.dcl-site .dcl-go { display: none !important; }
	html.drm-open .dcl-pop.dcl-site .dcl-opt { min-height: 56px; }
	html.drm-open .dcl-pop.dcl-site .dcl-foot kbd { display: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.elementor-location-header .elementor-search-form--skin-full_screen .elementor-search-form__container { transition: none !important; }
}
