/* =====================================================================================
   Accord 2026 : fenetre de sortie de page « Ne nous quittez pas maintenant » (29/09/2026).
   Gabarit : templates/temp/front_office_page/pages/popup/popup_sortie.tpl (prefixe acs-).
   js/scripts.js ($.stickToMe) clone le bloc dans .stick_container en lui posant des styles en ligne
   (position fixe, hauteur 925 px, marges negatives) : on les neutralise ici, d'ou les !important.
   Couleurs Accord (nuit / ambre), Plus Jakarta Sans, arrondis 7 px maximum.
   ===================================================================================== */
.acs-sortie {
	--acs-nuit: #16283A;
	--acs-ardoise: #435E79;
	--acs-ambre: #F3AC4B;
	--acs-ambre-fonce: #C97B14;
	--acs-ambre-clair: #FDF4E6;
	--acs-encre: #14202C;
	--acs-texte: #4A5868;
	--acs-ligne: #E3E8EE;
	--acs-fond: #F3F6F9;
	--acs-police: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
.acs-sortie *, .acs-sortie *::before, .acs-sortie *::after { box-sizing: border-box; }
/* les anciennes feuilles des mini-sites imposent « JF Flat » a tous les elements */
.acs-sortie:not(#acs), .acs-sortie:not(#acs) * { font-family: var(--acs-police); }

/* fenetre ouverte (clone place par stickToMe) : plein ecran, carte centree */
.stick_container .acs-sortie:not(#acs) {
	position: fixed !important; inset: 0 !important; left: 0 !important; top: 0 !important;
	width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important;
	display: flex !important; align-items: center; justify-content: center; padding: 24px;
	background: rgba(22, 40, 58, .62); box-shadow: none; animation: acs-entree .28s ease-out; z-index: 99991 !important;
	text-align: left;
}
@keyframes acs-entree { from { opacity: 0; } to { opacity: 1; } }
.acs-sortie .acs-fond:not(#acs) { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

.acs-carte {
	position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 48px); overflow: auto;
	background: #fff; border-radius: 7px; border-top: 4px solid var(--acs-ambre);
	box-shadow: 0 24px 60px rgba(20, 32, 44, .28);
	animation: acs-monte .32s ease-out;
}
@keyframes acs-monte { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* bouton fermer (remplace l'ancienne image close_pop.png) */
.acs-sortie .acs-fermer:not(#acs) {
	position: absolute; top: 12px; right: 12px; float: none; width: 38px; height: 38px; margin: 0; padding: 0;
	display: grid; place-items: center; background: var(--acs-fond); border: 0; border-radius: 6px; cursor: pointer;
	color: var(--acs-nuit); transition: background .15s;
}
.acs-sortie .acs-fermer:not(#acs):hover { background: var(--acs-ligne); }
.acs-fermer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.acs-tete { padding: 30px 64px 20px 32px; }
.acs-sortie .acs-surtitre:not(#acs) { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acs-ambre-fonce); }
.acs-sortie .acs-titre:not(#acs) { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--acs-nuit); }
.acs-sortie .acs-accroche:not(#acs) { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--acs-texte); }
.acs-accroche strong { color: var(--acs-nuit); font-weight: 700; }

/* six raccourcis */
.acs-liens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 32px 22px; background: var(--acs-fond); border-top: 1px solid var(--acs-ligne); border-bottom: 1px solid var(--acs-ligne); }
.acs-sortie .acs-liens a:not(#acs) {
	display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px; margin: 0;
	background: #fff; border: 1px solid var(--acs-ligne); border-radius: 7px; box-shadow: none;
	color: var(--acs-texte); font-size: 13px; line-height: 1.35; text-decoration: none; text-transform: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.acs-sortie .acs-liens a:not(#acs):hover { border-color: var(--acs-ambre); box-shadow: 0 8px 20px rgba(20, 32, 44, .08); transform: translateY(-1px); color: var(--acs-texte); }
.acs-liens b { display: block; margin-bottom: 2px; font-size: 14.5px; font-weight: 700; color: var(--acs-nuit); }
.acs-picto { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; background: var(--acs-ambre-clair); color: var(--acs-ambre-fonce); }
.acs-picto svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* pied : blog, forum, plus tard */
.acs-pied { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px 20px; }
.acs-sortie .acs-plus:not(#acs) { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.acs-sortie .acs-plus a:not(#acs) { padding: 0; font-size: 14.5px; font-weight: 600; color: var(--acs-ardoise); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(67, 94, 121, .35); }
.acs-sortie .acs-plus a:not(#acs):hover { color: var(--acs-ambre-fonce); text-decoration-color: currentColor; }
.acs-sortie .acs-plus-tard:not(#acs) {
	min-height: 44px; padding: 0 22px; margin: 0; border: 0; border-radius: 6px; cursor: pointer;
	background: var(--acs-ambre); color: var(--acs-encre); font-size: 15px; font-weight: 700; transition: background .15s;
}
.acs-sortie .acs-plus-tard:not(#acs):hover { background: #EB9E36; }

@media (max-width: 720px) {
	.stick_container .acs-sortie:not(#acs) { padding: 12px; }
	.acs-tete { padding: 24px 56px 16px 20px; }
	.acs-sortie .acs-titre:not(#acs) { font-size: 23px; }
	.acs-liens { grid-template-columns: 1fr 1fr; padding: 14px 20px 16px; gap: 8px; }
	.acs-sortie .acs-liens a:not(#acs) { min-height: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
	.acs-pied { flex-direction: column; align-items: stretch; padding: 14px 20px 18px; }
	.acs-sortie .acs-plus:not(#acs) { justify-content: center; }
}
