/***************************************
/* Grille de mise en page pour le mobile
***************************************/
.grid_6,
.grid_8,
.grid_10,
.grid_16,
.container_16 {
	margin: 0 10px;
	text-align: justify;
}

/* 
Nom du thème : Simple Vitae (ou Simple Curriculum ou Simple Resume)
Description : Votre curriculum vitae sur Internet, un moyen supplémentaire de vous faire connaitre. Ce thème correspond à tous les types de métiers.
Créateur : Christophe HERMANN (@chrishrmnn)
*/

/**********
/* Header
**********/
	header[role=banner] {
		background: var(--bg);
		background-size: 580px;
		background-position: center;
		padding: 19px 0;
		overflow: hidden;
		transition: background 0.3s;
	}
	
	header figure {
		display: none;
	}
	
	header hgroup {
		text-align: center;
	}
	
	header hgroup h1 {
		color: var(--text);
		font-family: 'Montserrat', sans-serif;
		line-height: 24px;
	}

	header hgroup h2 {
		color: var(--text-muted);
		font-family: 'Montserrat', sans-serif;
		line-height: 24px;
		font-size:20px;
	}

/************
/* Menu
************/
.menu {
  list-style-type: none;
  margin: 8px auto;
  padding: 5px 6px;
  width: fit-content;
  max-width: 92%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.menu > li {
  display: inline;
}
.menu > li > a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  padding: 6px 10px;
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.menu > li > a:hover,
.menu > li > a:focus {
  background: #fa7970;
  color: #fff;
  text-decoration: none;
}

#theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  padding: 5px 10px;
  line-height: 1;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#theme-toggle:hover {
  background: #fa7970;
  color: #fff;
  border-color: #fa7970;
}




/***************
/* Corps - Main
***************/
	section[role=main] {
		padding: 21px 0;
		overflow: hidden;
	}
	
	section[role=main] h3 {
		border-bottom: none;
		padding: 20px 0 6px 5px;
		margin-top: 0px;
		position: relative;
 	}

	section[role=main] h3::before {
		content: '';
		display: block;
		position: absolute;
		bottom: 0;
		left: 5px;
		width: 2.5rem;
		height: 3px;
		background: var(--accent);
		border-radius: 2px;
	}

	section[role=main] h3::after {
		content: none;
	}
	

/***************************
/* Paper card hover effects
***************************/
.ref_teaser {
	border-radius: 8px;
	padding: 10px;
	margin-left: -10px;
	margin-right: -10px;
	border-left: 3px solid transparent;
	transition: transform 200ms ease, box-shadow 200ms ease, border-left-color 200ms ease;
}

.ref_teaser:hover {
	border-left-color: var(--accent);
}

/***************************
/* Featured paper highlight
***************************/
.ref_teaser.featured {
	background: #dafbe1;
}

html.dark .ref_teaser.featured {
	background: #1a2e22;
	color: var(--text);
}

html.dark .ref_teaser.featured .authors,
html.dark .ref_teaser.featured .conf {
	color: var(--text-muted);
}

html.dark .ref_teaser.featured .title a {
	color: #6fdc8c;
}

/***************************
/* Bio layout for mobile
***************************/
.splat-intro {
	flex-direction: column;
	gap: 0;
}

#splat-viewer-col {
	display: none;
}

/***************************
/* Updates timeline dots
***************************/
.updates-list li {
	position: relative;
	padding-left: 16px;
}

.updates-list li p {
	margin-top: 0;
}

.updates-list li::before {
	content: '';
	position: absolute;
	left: -6px;
	top: 8px;
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
}

/* Collapsible older updates */
.older-updates {
	padding-left: 20px;
	margin-top: -10px;
}

.older-updates summary {
	cursor: pointer;
	color: var(--accent);
	font-size: 0.9em;
	padding: 6px 0;
	list-style: none;
}

.older-updates summary::-webkit-details-marker {
	display: none;
}

.older-updates summary::before {
	content: '+ ';
}

.older-updates[open] summary::before {
	content: '- ';
}

/***************************
/* Paper/Project link badges
***************************/
.badge {
	display: inline-block;
	font-size: 0.7em;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	text-decoration: none;
	vertical-align: middle;
	margin-left: 4px;
	transition: opacity 200ms ease;
}

.badge:hover {
	opacity: 0.8;
}

.badge-paper {
	background: #2563eb;
	color: #fff;
}

.badge-project {
	background: #555d66;
	color: #fff;
}

.badge-new {
	background: #e53e3e;
	color: #fff;
	animation: badge-pulse 2s ease-in-out infinite;
}

html.dark .badge-new {
	background: #f56565;
}

@keyframes badge-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.5); }
	50%      { box-shadow: 0 0 8px 4px rgba(229, 62, 62, 0.25); }
}

/* Dark mode menu shadow */
html.dark .menu {
	box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/***************************
/* Holographic card effect
***************************/
.ref_teaser.holo {
	position: relative;
	overflow: hidden;
	border: 1.5px solid rgba(255, 255, 255, 0.15);
}

html.dark .ref_teaser.holo {
	border-color: rgba(255, 255, 255, 0.08);
}

.ref_teaser.holo::after,
.holo-text::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		125deg,
		rgba(255, 0, 0, 0.35) 0%,
		rgba(255, 154, 0, 0.35) 10%,
		rgba(208, 222, 33, 0.3) 20%,
		rgba(79, 220, 74, 0.3) 30%,
		rgba(63, 218, 216, 0.35) 40%,
		rgba(47, 201, 226, 0.35) 50%,
		rgba(28, 127, 238, 0.38) 60%,
		rgba(95, 21, 242, 0.38) 70%,
		rgba(186, 12, 248, 0.35) 80%,
		rgba(251, 7, 217, 0.35) 90%,
		rgba(255, 0, 0, 0.35) 100%
	);
	background-size: 200% 200%;
	animation: holo-shimmer 6s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
	mix-blend-mode: multiply;
	border-radius: inherit;
}

html.dark .ref_teaser.holo::after,
html.dark .holo-text::after {
	background: linear-gradient(
		125deg,
		rgba(255, 0, 0, 0.25) 0%,
		rgba(255, 154, 0, 0.25) 10%,
		rgba(208, 222, 33, 0.25) 20%,
		rgba(79, 220, 74, 0.25) 30%,
		rgba(63, 218, 216, 0.25) 40%,
		rgba(47, 201, 226, 0.25) 50%,
		rgba(28, 127, 238, 0.25) 60%,
		rgba(95, 21, 242, 0.25) 70%,
		rgba(186, 12, 248, 0.25) 80%,
		rgba(251, 7, 217, 0.25) 90%,
		rgba(255, 0, 0, 0.25) 100%
	);
	background-size: 200% 200%;
	mix-blend-mode: color-dodge;
}

@keyframes holo-shimmer {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/***************************
/* Holographic text list item
***************************/
.holo-text {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	padding: 8px 10px;
	background: #dafbe1;
	list-style: none;
}

.holo-text::before {
	display: none;
}

html.dark .holo-text {
	background: #1a2e22;
}

/***************************
/* GitHub Projects - mobile
***************************/
.gh-projects {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 8px;
	margin-bottom: 8px;
}

.gh-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--text);
	transition: border-color 200ms ease;
}

.gh-card:hover {
	border-color: var(--accent);
}

.gh-card-header {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.gh-repo-icon {
	color: var(--text-muted);
	flex-shrink: 0;
}

.gh-card-name {
	font-weight: 600;
	font-size: 0.85em;
	color: var(--accent);
	white-space: nowrap;
}

.gh-card-desc {
	font-size: 0.75em;
	color: var(--text-muted);
	margin: 0;
	flex: 1;
	min-width: 0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gh-card-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.7em;
	color: var(--text-muted);
	flex-shrink: 0;
}

.gh-lang {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.gh-lang-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid var(--border);
}

.gh-stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.gh-stars svg {
	width: 14px;
	height: 14px;
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.ref_teaser.holo::after, .holo-text::after, .gh-card.holo::after { animation: none; background-position: 50% 50%; }
}

