/* ============================================================
   APESEQ Membre — PWA
   Styles de base (splash + coquille de l'application)
   Couleurs reprises du site principal (apeseq.ca/fr/gabarit.php)
   ============================================================ */

@font-face {
	font-family: 'Work Sans';
	src: url(/fonts/WorkSans-Regular.ttf);
}

:root {
	--couleur-fond: #FAFAFA;
	--couleur-nav: #d8d4ee;
	--couleur-pied: #bdc2e2;
	--couleur-pied-haut: #cdd2f2;
	--couleur-texte: rgb(13, 9, 94);
	--couleur-lien: #55b;
	--couleur-survol: #007857;
}

html, body {
	height: 100%;
	margin: 0;
}

body {
	font-family: 'Work Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	background-color: var(--couleur-fond);
	color: #333;
}

/* ------------------------------------------------------------
   Écran de chargement (splash)
   Affiche le logo en gros au centre pendant le chargement
   ------------------------------------------------------------ */
#ecran_chargement {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(#ffffff 40%, var(--couleur-pied-haut));
	transition: opacity .5s ease;
}

#ecran_chargement.termine {
	opacity: 0;
	pointer-events: none;
}

#ecran_chargement .logo {
	width: min(70vw, 420px);
	height: auto;
	animation: pulsation 2s ease-in-out infinite;
}

#ecran_chargement .texte {
	margin-top: 1.5em;
	color: var(--couleur-texte);
	font-size: .9rem;
	letter-spacing: .05em;
}

@keyframes pulsation {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: .75; transform: scale(.97); }
}

/* ------------------------------------------------------------
   Coquille de l'application
   ------------------------------------------------------------ */
.barre-haut {
	background-color: var(--couleur-nav);
	box-shadow: 0 .125rem .25rem rgba(0,0,0,.1);
}

.barre-haut .marque {
	display: block;
	background: url(/images/logo_texte.png) no-repeat center / contain;
	width: 220px;
	height: 60px;
}

.contenu {
	min-height: 60vh;
	padding: 1.5rem 1rem;
}

.pied {
	position: fixed;
	width: 100%;
	bottom: 0;
	background-color: var(--couleur-pied);
	background-image: linear-gradient(var(--couleur-pied-haut), var(--couleur-pied));
	font-size: .8rem;
	color: #333;
	text-align: center;
	padding: .8rem;
}

.pied a {
	color: var(--couleur-texte);
}

/* Sur petit écran (cellulaire), la marque devient le logo carré */
@media (max-width: 700px) {
	.barre-haut .marque {
		background-image: url(/images/logo.png);
		width: 44px;
		height: 44px;
	}
}

/* ------------------------------------------------------------
   Bandeau d'installation (avant l'installation de la PWA)
   ------------------------------------------------------------ */
#bandeau_installation {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	background-color: var(--couleur-nav);
	box-shadow: 0 -.125rem .25rem rgba(0,0,0,.1);
	padding: .6rem 1rem;
	align-items: center;
	gap: .75rem;
}

#bandeau_installation.affiche {
	display: flex;
}

#bandeau_installation .message {
	flex: 1;
	font-size: .85rem;
	color: var(--couleur-texte);
}

#bandeau_installation .bouton {
	border: none;
	border-radius: .25rem;
	padding: .5rem .9rem;
	background-color: var(--couleur-survol);
	color: #fff;
	font-family: inherit;
	font-size: .85rem;
	cursor: pointer;
}

#bandeau_installation .fermer {
	border: none;
	background: none;
	color: var(--couleur-texte);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0 .25rem;
}