/********************************************************\
 *
 * Extension autopublic — CSS de la partie publique
 * Chargé en complément de aktone.css et html.css
 *
\********************************************************/

/*
  Les variables --ak-* sont définies dans cssvars.php des extensions
  et injectées sur body par pile.php. En mode public, autopublic/cssvars.php
  surcharge les valeurs par défaut d'aktone. Pour personnaliser le thème
  d'un module, surcharger les variables --ak-* dans son cssvars.php.
*/

/******************************************************************************/
/* TYPOGRAPHIE — overrides spécifiques au public uniquement
/* body, font-family, color, --bs-* : déjà gérés par html.css
/* h1-h6 font-family (titraille) : déjà géré par html.css
/******************************************************************************/
h2, .h2  { font-family: 'ak-screen-texte'; }
h3, .h3  { text-align: left; }
h4, .h4  { font-family: 'ak-screen-texte'; font-weight: bold;}

p   { text-align: left; font-size: var(--ak-p-size); }
a   { color: var(--ak-back-link); text-decoration: none !important; }

/******************************************************************************/
/* SURCHARGES SUR LA GRILLE AKTONE
/******************************************************************************/
#aktone-page-pied .xpub-pied { padding: 0 var(--ak-page-pad); }
#aktone-page-pied { padding: 0; }

/******************************************************************************/
/* NAVBAR
/******************************************************************************/
nav.navbar-site {
	font-size: 0.875em; /* 14/16 */
	border-bottom: 2px solid var(--ak-filet-color);
	padding: 0 var(--ak-page-pad);
	min-height: var(--ak-navbar-height);
}
nav.navbar-site .navbar-brand img {
	height: var(--ak-navbrand-height);
	width: auto;
	margin-top: 0.5rem;
}	
nav.navbar-site li.nav-item {
	margin-left: 30px;
}

/******************************************************************************/
/* FOOTER
/******************************************************************************/
.xpub-pied {
	border-top: 2px solid var(--ak-filet-color);
	color: var(--ak-pied-fg);
	margin-top: var(--ak-page-pad) !important;
	padding: 0;
	font-size: 0.875em; /* 14/16 */
}
.xpub-pied-bis {
	position: relative;
	color: var(--ak-pied-fg);
	text-align: center;
	font-size: 0.75em; /* 12/16 */
}
.xpub-footer-item {
	min-height: 60px;
	padding-top: 18px;
}
.xpub-pied img {
	margin-top: -15px;
	height: auto;
}
.xpub-footer-start { text-align: left; }
.xpub-footer-end   { text-align: right; }
.xpub-pied dl      { margin-bottom: 0; }
.xpub-pied dt      { width: auto; }
.xpub-pied dd      { padding: 0; margin: 0; }
.xpub-ddrs a       { margin-left: 10px; }

/******************************************************************************/
/* SECTIONS
/******************************************************************************/
section.section-conteneur,
section.section-conteneur-titre {
	width: 100%;
	margin: 0;
	background-color: var(--ak-body-bg);
	color: var(--ak-body-color);
}
section.section-conteneur {
	padding: var(--ak-ecart-unite);
	flex: 0 0 auto;
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: stretch;
	align-content: stretch;
}
section.section-conteneur-titre {
	padding: 0;
	flex: 0 0 auto;
}
section.section-conteneur-titre > h1,
section.section-conteneur-titre > p,
.nav.navbar-site {
	padding: 0;
	width: 66.666666%;
	margin: 0 auto;
}

/* Icônes en mode dégradé dans les sections */
.section-conteneur .fas {
	color: transparent;
	background: var(--ak-body-bg);
	-webkit-background-clip: text;
	background-clip: text;
	text-shadow: 0px 3px 3px rgba(255,255,255,0.5);
}

/******************************************************************************/
/* BLOCS DE BASE
/******************************************************************************/
.ak-section-bloc {
	width: 100%;
	padding: 0;
	margin: 0;
}
.ak-section-bloc h2 {
	border-bottom: 0.3px dotted var(--ak-body-bg);
	padding-bottom: var(--ak-ecart-unite);
}
.ak-section-template {
	padding: 0;
	margin: 0;
	width: 100%;
}
.backtotop      { position: absolute; font-size: 0.3em; margin-left: -45px; padding-top: 3px; }
.autopublic-icon { min-height: 100px; height: 100px; }

/******************************************************************************/
/* MÉDIAS (media-left / media-right)
/******************************************************************************/
.media {
	display: flex;
	gap: var(--ak-ecart-unite);
	margin: 0;
	padding-bottom: var(--ak-ecart-double);
}
.media-left {
	flex: 0 0 20%;
	max-width: 20%;
}
.media-right {
	flex: 0 0 20%;
	max-width: 20%;
	order: 1;
}
.media-object { max-width: 100%; height: auto; }

/******************************************************************************/
/* LOGOS
/******************************************************************************/
.xpub-logos {
	display: flex;
	flex-flow: row wrap;
	align-items: stretch;
}
.xpub-logo {
	height: 100%;
	margin-bottom: 0;
	display: flex;
	flex-flow: row wrap;
	text-align: center;
}
.xpub-logo img {
	max-height: 60px;
	height: auto;
	margin: auto;
	filter: grayscale(1);
}
.xpub-logos-barre {
	max-height: 100px;
	display: flex;
	flex-flow: row wrap;
	align-items: stretch;
	margin-bottom: 50px;
}
.xpub-logos-barre img {
	max-height: 100px;
	height: auto;
	margin: auto;
	filter: grayscale(1);
}

/******************************************************************************/
/* CARROUSEL
/******************************************************************************/
.autopublic-image-carroussel {
	height: 50vh;
	overflow: hidden;
}
.carousel-inner > .carousel-item > img {
	border: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	height: 50vh;
}
.autopublic-image-carroussel .carousel-caption            { opacity: 0.9; }
.autopublic-image-carroussel .carousel-caption h5,
.autopublic-image-carroussel .carousel-caption p          { text-align: left; }

/******************************************************************************/
/* DIVERS
/******************************************************************************/
span.grey {
	display: inline;
	background-color: var(--ak-filet-color);
	color: var(--ak-div-bg) !important;
	padding: 5px 10px;
}
.embed-responsive,
.embed-responsive-item      { height: auto !important; min-height: 300px; }
.text-bg-light              { background-color: var(--ak-body-bg) !important; }
.xpub-volant                { float: right; }

.trait-rouge { border-bottom: 4px solid red; }

/******************************************************************************/
/* RESPONSIVE MOBILE
/******************************************************************************/
@media (max-width: 767.98px) {

	/* Réduction de la taille de base — tout suit proportionnellement */
	body {
		--ak-font-base: 0.9rem;
		font-size: 0.9rem !important;
	}

	/* Padding horizontal réduit sur mobile */
	#aktone-page-nav nav.navbar,
	#aktone-page-corps,
	#aktone-page-pied .xpub-pied,
	nav.navbar-site {
		padding-left: var(--ak-ecart-unite);
		padding-right: var(--ak-ecart-unite);
	}

	/* Médias : empilement vertical */
	.media {
		flex-direction: column;
	}
	.media-left,
	.media-right {
		flex: 0 0 100%;
		max-width: 100%;
		order: 0;
	}

	/* Sections : pleine largeur */
	section.section-conteneur,
	section.section-conteneur-titre,
	.nav.navbar-site,
	section.section-conteneur-titre > h1,
	section.section-conteneur-titre > p {
		width: 100%;
		margin: 0;
	}

	/* Section spacing réduit */
	section.section-conteneur {
		padding-top: var(--ak-ecart-double);
	}

}

