/*
	CREMI v2 : compléments à assets/css/main.css (Arcana)
	Chargée après main.css (assets/ est partagé par cremi/ et admin/) ;
	fond et polices limités à body.v2, le reste à des classes propres au site (.bloc, .carte…).
	Couleurs : charte graphique de l'université de Bordeaux (juin 2026)
	cyan #009DE0 et marron #3B1C13 (couleurs du logo) ;
	bleu contrasté #0077B6 pour le texte sur fond clair (accessibilité, p. 104)
	fonds beige : page #F8F7F2 > #F0EBDA, blocs #F8F7F2, tuiles #F0EBDA, bordures #DDD7C2 (p. 104)
	polices web : Bitter (titres) et Work Sans (texte), repli Arial (p. 18-19 et 105) ;
	textes alignés à gauche, pas de titres en capitales (p. 19)
*/

/* Polices de la charte, hébergées localement (licence SIL OFL, assets/fonts/OFL-*.txt) */
@font-face {
	font-family: 'Bitter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/bitter-latin.woff2') format('woff2');
}

@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/work-sans-latin.woff2') format('woff2');
}

@font-face {
	font-family: 'Work Sans';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/work-sans-latin-italic.woff2') format('woff2');
}

:root {
	--ub-marron: #3B1C13;
	--ub-bleu: #009DE0;
	--ub-bleu-texte: #0077B6;
	--surface: #F8F7F2;
	--surface-tuile: #F0EBDA;
	--bord: #DDD7C2;
	--texte: #3B1C13;
	--texte-doux: #6e5f59;
	--rayon: 10px;
}

/* ---------- Base ---------- */

/* Fond : le dégradé d'origine, dans les beiges de la charte */
body.v2 {
	background: linear-gradient(#F8F7F2, #F0EBDA);
	background-color: #F0EBDA;
	font-family: 'Work Sans', Arial, sans-serif;
	color: var(--texte);
}

.v2 h1, .v2 h2, .v2 h3, .v2 h4,
.v2 .site-titre #logo {
	font-family: 'Bitter', Arial, serif;
}

.contenu a {
	color: var(--ub-bleu-texte);
	border-bottom-color: transparent;
}

.contenu a:hover {
	color: var(--ub-marron);
	border-bottom: dotted 1px;
}

.aller-contenu {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--surface);
	padding: 0.5em 1em;
}

.aller-contenu:focus {
	left: 1em;
}

.badge {
	display: inline-block;
	font-size: 0.7em;
	font-weight: 600;
	line-height: 1.6;
	padding: 0 0.5em;
	border-radius: 999px;
	background: var(--ub-bleu);
	color: var(--ub-marron);
	vertical-align: middle;
}

/* ---------- En-tête ---------- */

.v2 #header {
	padding-top: 1.4em;
}

.v2 .site-titre {
	margin: 0;
	padding: 0 170px 0 170px;
	line-height: 1.4;
	font-size: 1.15em;
}

.v2 .site-titre a {
	color: var(--ub-marron);
	border: 0;
}

.v2 .site-titre #logo {
	font-size: 1.6em;
	letter-spacing: 0.02em;
	margin-right: 0.3em;
}

.v2 .site-titre em {
	font-style: normal;
	font-weight: 300;
}

.v2 #nav > ul > li a {
	padding: 1.2em 0.9em 1em 0.9em;
}

/* Supervision : outil d'administration, séparé visuellement */
.v2 #nav > ul > li.menu-admin {
	margin-left: 1.5em;
}

.v2 #nav > ul > li.menu-admin > a:before {
	content: "\f013";
	font-family: 'ForkAwesome';
	margin-right: 0.4em;
	opacity: 0.7;
}

/* Lien externe (UF Info) */
.v2 #nav > ul > li > a[target="_blank"]:after {
	content: "\f08e";
	font-family: 'ForkAwesome';
	font-size: 0.75em;
	margin-left: 0.4em;
	opacity: 0.6;
}

/* ---------- Contenu ---------- */

.contenu {
	padding: 2.5em 1.5em 1em 1.5em;
}

.page-titre,
.accueil-intro {
	margin-bottom: 2em;
}

.page-titre h1,
.accueil-intro h1 {
	font-size: 2em;
	line-height: 1.2;
	margin-bottom: 0.4em;
}

.v2 header.page-titre p.chapo,
.chapo {
	margin-top: 0;
	font-size: 1.1em;
	color: var(--texte-doux);
	max-width: 52em;
	margin-bottom: 1em;
}

.lecture {
	max-width: 52em;
}

.suite .fa,
.tout-voir .fa {
	font-size: 0.85em;
	margin-left: 0.3em;
}

.tout-voir {
	text-align: right;
	margin: 1em 0 0 0;
}

.bloc {
	background: var(--surface);
	border: 1px solid var(--bord);
	border-radius: var(--rayon);
	padding: 1.75em 2em;
	margin-bottom: 2em;
}

.bloc > :last-child {
	margin-bottom: 0;
}

/* Horaires d'ouverture */
.horaires {
	width: 100%;
	margin: 0 0 1.2em 0;
	line-height: 1.45;
}

.horaires th,
.horaires td {
	padding: 0.45em 0;
	border-bottom: 1px solid var(--bord);
	text-align: left;
	vertical-align: top;
}

.horaires tr:last-child th,
.horaires tr:last-child td {
	border-bottom: 0;
}

.horaires th {
	font-weight: 600;
	padding-right: 1em;
	width: 45%;
}

/* Top des articles de l'intranet (accueil) */
.top-articles {
	list-style: none;
	counter-reset: top;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0.6em 2em;
}

.top-articles li {
	counter-increment: top;
	display: flex;
	align-items: baseline;
	gap: 0.7em;
	line-height: 1.4;
}

.top-articles li:before {
	content: counter(top);
	flex: 0 0 auto;
	width: 1.7em;
	height: 1.7em;
	line-height: 1.7em;
	text-align: center;
	border-radius: 50%;
	background: var(--ub-bleu);
	color: #fff;
	font-weight: 600;
	font-size: 0.85em;
}


.bloc h2,
.categorie h2 {
	font-size: 1.3em;
	line-height: 1.3;
	margin-bottom: 0.9em;
}

.bloc h2 .fa,
.categorie h2 .fa {
	color: var(--ub-bleu);
	margin-right: 0.3em;
}

/* Colonnes */

.colonnes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2em;
	margin-bottom: 2em;
}

.colonnes .bloc {
	margin-bottom: 0;
}

.colonnes > div {
	display: flex;
	flex-direction: column;
	gap: 2em;
}

@media screen and (min-width: 981px) {
	.colonnes-2-1 {
		grid-template-columns: 2fr 1fr;
	}
}

/* Listes de liens */

.liste-liens {
	list-style: none;
	margin: 0;
	padding: 0;
}

.liste-liens li {
	padding: 0.45em 0 0.45em 1.2em;
	border-bottom: 1px solid var(--bord);
	position: relative;
	line-height: 1.45;
}

.liste-liens li:last-child {
	border-bottom: 0;
}

.liste-liens li:before {
	content: "\f105";
	font-family: 'ForkAwesome';
	position: absolute;
	left: 0.2em;
	color: var(--ub-bleu);
}

.liste-liens .desc {
	color: var(--texte-doux);
	font-size: 0.9em;
}

.colonnes-auto {
	columns: 3 14em;
	column-gap: 2em;
}

.colonnes-auto li {
	break-inside: avoid;
}

/* Sommaire (ancres) */

.sommaire ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0 0 2em 0;
	padding: 0;
}

.sommaire a {
	display: inline-block;
	padding: 0.3em 0.9em;
	border: 1px solid var(--bord);
	border-radius: 999px;
	background: var(--surface);
	font-size: 0.9em;
}

.contenu .sommaire a:hover {
	border: 1px solid var(--ub-bleu);
}

.sommaire .fa {
	color: var(--ub-bleu);
	margin-right: 0.2em;
}

/* ---------- Cartes de service ---------- */

.categorie {
	margin-bottom: 2.5em;
	scroll-margin-top: 1em;
}

.cartes {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1em;
	margin: 0 0 2em 0;
	padding: 0;
}

.bloc .cartes {
	margin-bottom: 0;
}

/* Grille fixe de 4 colonnes (accès rapides de l'accueil) */
.cartes-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 1100px) {
	.cartes-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 560px) {
	.cartes-4 {
		grid-template-columns: 1fr;
	}
}

.groupe-cartes {
	font-size: 0.85em;
	color: var(--texte-doux);
	margin: 0 0 0.6em 0;
}

.bloc .cartes + .groupe-cartes {
	margin-top: 1.5em;
}

.carte a {
	display: flex;
	align-items: flex-start;
	gap: 0.9em;
	height: 100%;
	padding: 1.1em 1.2em;
	background: var(--surface-tuile);
	border: 1px solid var(--bord);
	border-radius: var(--rayon);
	color: var(--texte);
	line-height: 1.4;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.contenu .carte a:hover {
	color: var(--texte);
	border: 1px solid var(--ub-bleu);
	box-shadow: 0 4px 14px rgba(0, 157, 224, 0.15);
	transform: translateY(-2px);
}

.carte .fa {
	flex: 0 0 auto;
	width: 1.9em;
	height: 1.9em;
	line-height: 1.9em;
	text-align: center;
	font-size: 1.3em;
	border-radius: 8px;
	background: rgba(0, 157, 224, 0.12);
	color: var(--ub-bleu);
}

.carte strong {
	display: block;
	margin-bottom: 0.15em;
}

.carte .desc {
	display: block;
	font-size: 0.88em;
	color: var(--texte-doux);
}

/* ---------- Pages ---------- */

.equipe {
	list-style: none;
	margin: 0;
	padding: 0;
}

.equipe li {
	padding: 0.5em 0;
	border-bottom: 1px solid var(--bord);
	line-height: 1.4;
}

.equipe li:last-child {
	border-bottom: 0;
}

.equipe strong,
.equipe span {
	display: block;
}

.equipe span {
	color: var(--texte-doux);
	font-size: 0.9em;
}

.photo {
	display: block;
	margin-bottom: 1em;
	border: 0;
}

.contenu .photo:hover {
	border: 0;
}

.photo img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Tableaux de supervision */

.etages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5em;
	align-items: start;
}

.table-salles {
	width: 100%;
	margin: 0;
	font-size: 0.95em;
}

.table-salles caption {
	text-align: left;
	font-weight: 600;
	padding-bottom: 0.4em;
	color: var(--ub-bleu-texte);
}

.table-salles th,
.table-salles td {
	padding: 0.35em 0.5em;
	border-bottom: 1px solid var(--bord);
	text-align: left;
}

.table-salles thead th {
	font-size: 0.8em;
	color: var(--texte-doux);
}

.table-salles tbody th {
	font-weight: 600;
}

.table-cartes {
	max-width: 40em;
}

.vide {
	color: #b5b5b5;
}

/* ---------- Pied de page ---------- */

.v2 #footer.pied {
	background: var(--ub-marron);
	color: #e9e1dd;
	padding: 3em 0 1.5em 0;
	margin-top: 3em;
	text-align: left;
}

.v2 #footer.pied .container {
	margin-bottom: 0;
	padding: 0 1.5em;
}

.v2 #footer.pied h2 {
	font-size: 0.85em;
	color: var(--ub-bleu);
	margin-bottom: 0.8em;
}

.v2 #footer.pied a {
	color: #fff;
	border-bottom: 0;
}

.v2 #footer.pied a:hover {
	color: var(--ub-bleu);
}

.v2 #footer.pied ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.v2 #footer.pied p {
	margin-bottom: 0.8em;
}

.pied-grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2em;
	line-height: 1.6;
}

.pied-contact .fa {
	width: 1.2em;
	color: var(--ub-bleu);
}

.v2 #footer.pied .icons {
	text-align: left;
}

.v2 #footer.pied .icons li {
	padding-left: 0;
	margin-right: 0.6em;
	display: inline-block;
}

.v2 #footer.pied .icons a {
	font-size: 1.3em;
}

.partenaires {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2.5em;
	margin: 2.5em 0 1.5em 0;
	padding: 1.2em;
	background: #fff; /* logo couleur sur fond blanc (charte p. 12) */
	border-radius: var(--rayon);
}

.partenaires img {
	height: 56px;
	width: auto;
	display: block;
}

.v2 #footer.pied .copyright {
	color: #bfb2ac;
	margin: 0;
	text-align: center;
	font-size: 0.85em;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 840px) {
	.contenu {
		padding: 1.5em 1em 0.5em 1em;
	}

	.bloc {
		padding: 1.25em 1.25em;
	}

	.page-titre h1,
	.accueil-intro h1 {
		font-size: 1.6em;
	}

	.colonnes {
		grid-template-columns: 1fr;
	}

	.v2 #footer.pied {
		text-align: left;
	}
}

/* Avertissement (page Supervision) */
.avertissement {
	background: rgba(0, 157, 224, 0.12);
	border: 1px solid var(--ub-bleu);
	border-radius: var(--rayon);
	padding: 0.8em 1.2em;
	margin: 0 0 1.5em 0;
}

.avertissement .fa {
	margin-right: 0.4em;
	color: var(--ub-marron);
}
/*Progress Tableau QUOTA*/
 
progress:not(value) {
    /* Add your styles here. As part of this walkthrough we will focus only on determinate progress bars. */
  }

  progress {
    border: none;
    width: 100%;
    height: 1.2em;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1em;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .5) inset;
    /* Of all IE, only IE10 supports progress element that too partially. It only allows to change the background-color of the progress value using the 'color' attribute. */
    position: relative;
    margin: auto 0;
    color: royalblue;
  }

  progress::-moz-progress-bar {
    background-color: royalblue;
    border-radius: 1em;
  }

  progress::-webkit-progress-bar {
    background-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.3);
    border-radius: 1em;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .5) inset;
  }

  progress::-webkit-progress-value {
    background-color: royalblue;
    border-radius: 1em;
  }


  p[data-value]:after {
    content: attr(data-value) '%';
    position: absolute;
    right: 0;
  }
