/* Annonces : carte « À la une » et popup (gerees dans /gestion/ > Annonces) */
.ann[hidden], .ann-card[hidden], .ann-pill[hidden], .ann-pop[hidden], .ann-slide[hidden] { display: none !important; }

.ann { position: fixed; right: 20px; bottom: 100px; /* au-dessus de la bulle du chat Tawk */ z-index: 1500; font-family: Lato, Arial, sans-serif; }
.ann-card { width: 272px; background: #FFFFFF; border-radius: 14px; overflow: hidden; color: #384656;
	box-shadow: 0 10px 30px rgba(56, 70, 86, .18), 0 1px 3px rgba(56, 70, 86, .12); }
.ann-bar { height: 4px; background: #DA5C4F; }
.ann-head { display: flex; align-items: center; padding: 10px 8px 0 16px; }
.ann-open { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: default; color: inherit; }
.ann-open svg, .ann-dot, .ann-peek, .ann-x { display: none; }
.ann-kicker { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #A8392E; }
.ann-min, .ann-x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #6B7684; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ann-min:hover, .ann-x:hover { background: #F4F1EE; }
.ann-slides { padding: 4px 16px 0; }
.ann-slide { display: flex; flex-direction: column; gap: 6px; animation: ann-fade .35s ease; }
.ann-title { font-size: 17px; line-height: 1.25; color: #2E3A48; }
.ann-text { margin: 0; font-size: 14px; line-height: 1.45; color: #4A5666; }
.ann-link { font-size: 14px; font-weight: 700; color: #A8392E !important; text-decoration: none; }
.ann-link:hover { text-decoration: underline; }
.ann-dots { display: flex; gap: 6px; justify-content: flex-end; padding: 10px 14px 14px; }
.ann-slides:last-child { padding-bottom: 16px; }
.ann-dotbtn { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #D8D2CD; cursor: pointer; }
.ann-dotbtn.is-on { background: #DA5C4F; }
.ann-pill { position: fixed; right: 96px; bottom: 28px; /* a gauche de la bulle du chat */ z-index: 1500; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
	border: 0; border-radius: 22px; background: #B8473B; color: #FFFFFF; font: 700 15px Lato, Arial, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(56, 70, 86, .25); }
.ann button:focus-visible, .ann a:focus-visible, .ann-pill:focus-visible, .ann-pop button:focus-visible, .ann-pop a:focus-visible { outline: 3px solid #384656; outline-offset: 2px; }
@keyframes ann-fade { from { opacity: 0; } to { opacity: 1; } }

/* --- telephone : languette en bas de l'ecran --- */
@media (max-width: 51.99em) {
	/* au-dessus de la barre de partage (48 px) et a gauche de la bulle du chat */
	.ann { left: 12px; right: 92px; bottom: 60px; }
	.ann-card { width: auto; }
	.ann-bar { display: none; }
	.ann-head { padding: 0 0 0 14px; }
	.ann-open { min-height: 56px; min-width: 0; cursor: pointer; gap: 10px; }
	.ann-open svg { display: block; margin-left: auto; color: #6B7684; flex: none; }
	.ann-dot { display: block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #DA5C4F; }
	.ann-kicker { display: none; }
	.ann-peek { display: block; min-width: 0; font-size: 15px; font-weight: 700; color: #2E3A48; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ann-min { display: none; }
	.ann-x { display: inline-flex; width: 48px; height: 56px; border-radius: 0; border-left: 1px solid #EFEBE8; }
	.ann-slides, .ann-dots { display: none; }
	/* annonce ouverte en grand */
	.ann.is-expanded { left: 0; right: 0; bottom: 0; }
	.ann.is-expanded .ann-card { border-radius: 18px 18px 0 0; padding-bottom: 12px; }
	.ann.is-expanded .ann-bar { display: block; }
	.ann.is-expanded .ann-dot, .ann.is-expanded .ann-peek { display: none; }
	.ann.is-expanded .ann-kicker { display: block; }
	.ann.is-expanded .ann-open svg { transform: rotate(180deg); }
	.ann.is-expanded .ann-slides { display: block; padding: 0 20px; }
	.ann.is-expanded .ann-title { font-size: 20px; }
	.ann.is-expanded .ann-text { font-size: 15px; }
	.ann.is-expanded .ann-link { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 6px; border-radius: 10px; background: #B8473B; color: #FFFFFF !important; font-size: 16px; }
	.ann.is-expanded .ann-dots { display: flex; justify-content: center; padding: 12px 0 4px; }
	.ann-pill { right: 92px; bottom: 62px; }
	/* l'icone cookies remonte au-dessus de la languette */
	html.ann-on #tarteaucitronIcon { bottom: 124px !important; }
	html.ann-on.ann-mini #tarteaucitronIcon { bottom: 56px !important; }
}

/* --- popup --- */
.ann-pop { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: Lato, Arial, sans-serif; }
.ann-pop-shade { position: absolute; inset: 0; background: rgba(28, 35, 44, .55); }
.ann-pop-box { position: relative; display: flex; width: 640px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; background: #FFFFFF; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: ann-fade .25s ease; }
.ann-pop-box:not(.has-img) { width: 480px; }
.ann-pop-img { width: 240px; flex: none; background: #F3E3DF; }
.ann-pop-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ann-pop-body { position: relative; flex: 1; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 12px; color: #384656; }
.ann-pop-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #6B7684; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ann-pop-x:hover { background: #F4F1EE; }
.ann-pop-title { margin: 0; padding-right: 32px; font-size: 26px; line-height: 1.2; font-weight: 900; color: #2E3A48; text-transform: none; border: 0; }
.ann-pop-text { margin: 0; font-size: 16px; line-height: 1.55; color: #4A5666; }
.ann-pop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ann-pop-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: #B8473B; color: #FFFFFF !important; font-weight: 700; font-size: 16px; text-decoration: none; }
.ann-pop-cta:hover { background: #A03C31; }
.ann-pop-later { min-height: 48px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; font: 700 15px Lato, Arial, sans-serif; color: #384656; cursor: pointer; }
.ann-pop-later:hover { background: #F4F1EE; }
html.ann-lock, html.ann-lock body { overflow: hidden; }
html.ann-lock #tarteaucitronIcon { display: none !important; }
.ann-pop-box:focus { outline: none; }
@media (max-width: 560px) {
	.ann-pop { align-items: flex-end; padding: 0; }
	.ann-pop-box { flex-direction: column; border-radius: 18px 18px 0 0; max-height: 90vh; }
	.ann-pop-img { width: auto; height: 160px; }
	.ann-pop-body { padding: 24px 20px 20px; }
	.ann-pop-title { font-size: 22px; }
	.ann-pop-cta { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ann-slide, .ann-pop-box { animation: none; } }
@media print { .ann, .ann-pill, .ann-pop { display: none !important; } }
