* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	/* background: linear-gradient(170deg, #a855f7, #22c55e), */
	background: linear-gradient(
			45deg,
			rgba(42, 4, 94, 0.6),
			rgba(34, 197, 94, 0.6)
		); 
		/* url("mike-hindle-xQd6htA8er4-unsplash.jpg"); */
		/* url("pexels-bymalens.jpg"); */
	background-size: cover;
	background-position: center;
	min-height: 100vh;
	color: #f5f5dc;
	margin: 0 auto;
}
a {
	color: rgba(16, 2, 207, 0.8);
}
a:hover {
	color:rgba(255, 255, 255, 1)
}

.bibliotheque {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	z-index: 0.5;
	padding: 0 60px 0 60px;
}

h2 {
	font-family: "Spectral", serif;
	font-size: 1.3rem;
	text-transform: uppercase;
	margin-bottom: 10px;
	justify-self: center;
	color: #f5f5dc;
	text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.3);
}
h3 {
	font-family: "Nunito", sans-serif;
	font-size: 1.2rem;
	margin: 0;
	padding: 0;
	color: #fff;
	text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.5);
}
li {
	margin: 0 0 5px 0;
}
/* SCHRINK DU HEADER */
/* TOUS les éléments enfants du header rétréci */
.sticky-intro.shrunk > * {
	flex-shrink: 0; /* IMPORTANT : empêche la déformation */
}
/* Header sticky - état normal */
.sticky-intro {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: linear-gradient(
		45deg,
		rgba(42, 4, 94, 0.8),
		rgba(34, 197, 94, 0.8)
	);
	margin: 0 0 10px 0;
	width: 100%;
	transition: padding 0.3s ease, background 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 10px 20px;
	text-align: center;
	display: block;
	/* Optimisations performance pour Android */
	will-change: transform;
	transform: translateZ(0);
}
/* Header sticky - état rétréci */
.sticky-intro.shrunk {
	padding: 15px 20px;
	background: linear-gradient(
		45deg,
		rgba(42, 4, 94, 0.8),
		rgba(34, 197, 94, 0.95)
	);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	text-align: left;
	flex-wrap: wrap;
	/* Optimisations performance pour Android */
	will-change: transform;
	transform: translateZ(0);
}



/* Titre */
.title {
	font-family: "Spectral", serif;
	font-size: 4rem;
	text-transform: uppercase;
	margin-bottom: 0;
	padding-left: 20px;
	color: #d4af37;
	text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}

.sticky-intro.shrunk .title {
	font-size: 1.8rem;
	margin: 0;
	order: 2;
}

/* Sous-titre 1 */
.subtitle1 {
	font-family: "Spectral", serif;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 25px;
	color: #d4af37;
	transition: all 0.3s ease;
	/* visible par défaut */
	opacity: 1;
	display: block;
}

/* caché quand shrunk */
.sticky-intro.shrunk .subtitle1 {
	display: none;
}
/* Portrait titre */
.portrait-titre {
	display: inline-flex;
	justify-content: center;
}
/* Portrait container */
.portrait-container {
	/* display:flex; */
	/* justify-content: center;
	align-items: center; */
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	transition: all 0.4s ease;
	margin: 0 auto;
	border: 2px solid #d4af37; /* Bordure sur le conteneur */
	box-shadow: 0 4px 8px rgba(255, 255, 255, 0.8); /* Ombre sur le conteneur */
}

.portrait-container img {
	display: block;
	/* justify-content: center;
	align-items: center; */
	/* margin: 0 auto; */
	width: 110%;
	height: 130%;
	object-fit: cover;
	border: none;
	transition: all 0.4s ease;
	transform: scale(1.2) translateY(20px);
	box-shadow: none;
}

.portrait-container img:hover {
	transform: scale(1.7) translateY(30px);
}

.sticky-intro.shrunk .portrait-container {
	margin: 0;
	order: 1;
	width: 50px;
	height: 50px;
}

.sticky-intro.shrunk .portrait-container img {
	border-width: 1px;
	transform: scale(1.2) translateY(10px);
}

/* Sous-titre 2 */
.subtitle2 {
	font-family: "Nunito", sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
	margin-top: 15px;
	color: #f5f5dc;
	transition: all 0.4s ease;
	display: none;
}

/* subtitle2 état rétréci */
.sticky-intro.shrunk .subtitle2 {
	font-size: 0.9rem;
	margin: 0;
	order: 3;
	white-space: nowrap;
	display: block;
}

/* Logo état normal*/
.logo {
	display: flex;
	margin: 15px auto 5px 0;
	transition: all 0.4s ease;
	justify-content: center;
	display: none;
}

.logo img {
	width: 40px;
	height: 40px;
	background-color: white;
	border-radius: 4px;
	transition: all 0.4s ease;
	opacity: 0.9;
	display: block;
}

.logo img:hover {
	opacity: 1;
	transform: scale(1.1);
}

.sticky-intro.shrunk .logo {
	display: block;
	margin: 0 0 0 20px;
	order: 4;
}

.sticky-intro.shrunk .logo img {
	width: 25px;
	height: 25px;
}
.nom-logo {
	display: flex;
}

/* ETAGERES */
.etagere-container {
	display: block;
	align-items: top;
	justify-content: center;
}

.etagere {
	/* background: linear-gradient(180deg, #8b4513, #a0522d); */
	background: rgba(245, 245, 245, 0.3);
	border-radius: 8px;
	padding: 10px;
	margin: 10px 0px 40px 0px;
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
	position: relative;
	/* width: fit-content; */
	height: fit-content;
	display: flex;
	flex-direction: row;
	align-items: center;
}

.etagere::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	right: 0;
	height: 10px;
	background: linear-gradient(180deg, #1e40af, #d4af37);
	opacity: 0.7;
	border-radius: 8px 8px 0 0;
}

.etagere-place-titre {
	max-width: 260px;
padding: 15px 0 15px 0;
}

.etagere-gif1 img {
	width: 20%;
	height: auto;
}
.etagere-gif2 img {
	width: 20%;
	height: auto;
}
.etagere-gif3 img {
	width: 20%;
	height: auto;
}
.presentation {
	font-family: "Nunito", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: #454537;
	opacity: 1;
	padding: 10px;
	border: #d4af37 2px solid;
	border-radius: 25px;
	width: 80%;
	height: fit-content;
	margin: 30px auto 30px auto;
}
.presentation h3 {
	color: #2c1810;
	margin-top:20px;
}

/* Conteneur principal */
        .image-container {
            display: flex;
            gap: 40px;
            align-items: center;
			justify-content: center;
        }
        
        /* Chaque lien avec image */
        .image-link {
            position: relative;
            display: inline-block;
        }
        
        .image-link img {
            display: block;
            transition: transform 0.2s ease;
        }
        
        .image-link:hover img {
            transform: scale(1.05);
        }
        
        /* Bulle personnalisée */
        .tooltip {
            position: absolute;
            bottom: 120%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            pointer-events: none; /* Évite les conflits avec le clic */
        }
        
        /* Flèche de la bulle */
        .tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: #333;
        }
        
        /* Affichage de la bulle au survol */
        .image-link:hover .tooltip {
            opacity: 1;
            visibility: visible;
        }
        

.livres-lot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin: 0 0 0 40px;
}

.livre {
	width: 60px;
	height: 150px;
	border-radius: 6px;
	cursor: pointer;
	position: relative;
	transform: translateY(0);
	transition: all 0.3s ease;
	box-shadow: 0 6px 8px rgba(255, 255, 255, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.1);
	padding: 20px;
	margin: 10px 0px 10px 0px;
}

.livre:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 16px rgba(255, 255, 255, 1);
}

.livre-titre {
	position: absolute;
	bottom: 55px; /* Position fixe depuis le bas */
	left: 50%;
	transform: translateX(-50%) rotate(-90deg);
	transform-origin: center center;
}

.livre-titre h3 {
	font-family: "Nunito", sans-serif;
	text-transform: uppercase;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	text-shadow: 1px 2px 2px rgba(168, 85, 247, 0.8);
	white-space: nowrap;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.livre.langages {
	background: linear-gradient(170deg, #e34c26, #f16529);
}
.livre.frameworks {
	background: linear-gradient(170deg, #1572b6, #33a9dc);
}
.livre.bdd {
	background: linear-gradient(170deg, #d4af37, #ffda44);
	color: #000;
}
.livre.recherche-doc {
	background: linear-gradient(170deg, #777bb4, #8892bf);
}
.livre.techno-info {
	background: linear-gradient(170deg, #00618a, #4479a1);
}
.livre.propriete {
	background: linear-gradient(170deg, #61dafb, #21d4fd);
	color: #000;
}
.livre.normes-standards {
	background: linear-gradient(170deg, #000000, #333333);
}
.livre.wordpress {
	background: linear-gradient(170deg, #21759b, #2ea3f2);
}

.livre.adobe {
	background: linear-gradient(170deg, #ff0000, #cc0000);
}
.livre.seo {
	background: linear-gradient(170deg, #d4af37, #ffed4e);
	color: #000;
}
.livre.maquettage {
	background: linear-gradient(170deg, #ff69b4, #ff1493);
}
.livre.canva {
	background: linear-gradient(170deg, #7d2ae8, #9b59b6);
}
.livre.communication {
	background: linear-gradient(170deg, #00bfff, #1e90ff);
}
.livre.agile {
	background: linear-gradient(170deg, #808080, #a9a9a9);
}

.livre.public {
	background: linear-gradient(170deg, #000080, #4169e1);
}
.livre.universite {
	background: linear-gradient(170deg, #800000, #dc143c);
}
.livre.recherche {
	background: linear-gradient(170deg, #696969, #808080);
}
.livre.collectivite {
	background: linear-gradient(170deg, #228b22, #32cd32);
}
.livre.startup {
	background: linear-gradient(170deg, #ff4500, #ff6347);
}
.livre.formation {
	background: linear-gradient(170deg, #9400d3, #8a2be2);
}
.livre.microsoft {
	background: linear-gradient(170deg, #7d2ae8, #9b59b6);
}

/* modal */

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
}

.modal.is-open {
	display: block !important;
}

.modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(170deg, #a855f7, #22c55e);
	backdrop-filter: blur(5px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal__container {
	background: linear-gradient(145deg, #f5f5dc, #e6e6dc);
	font-family: "Nunito", sans-serif;
	border-radius: 8px;
	width: 80%;
	max-width: 600px;
	height: fit-content;
	overflow-y: auto;
	box-shadow: -10px -10px 20px rgba(35, 21, 232, 0.7);
	color: #2c1810;
	position: relative;
	margin: 0 0px 30px 0px;
}
.modal__header {
	background: linear-gradient(170deg, #038e21, #22c55e);
	color: white;
	padding: 20px 20px 10px 20px;
	position: relative;
}
#modal-title {
	text-transform: uppercase;
	font-size: 28px;
	margin-bottom: 20px;
}
#modal-category {
	font-size: 14px;
	font-style: italic;
	opacity: 0.8;
	text-align: left;
}
.niveau-section {
	margin: 20px 0;
	padding: 0 40px 0px 40px;
}

.section-title {
	padding: 0 40px 0px 40px;
}

hr {
	margin: 0 40px 0px 40px;
}
#modal-description {
	padding: 0 40px 0px 40px;
}
#modal-contexte {
	padding: 0 40px 0px 40px;
}
#modal-projets {
	padding: 0 40px 20px 40px;
}
.modal__close {
	position: absolute;
	top: 20px;
	right: 5px;
	font-size: 2rem;
	width: 30px;
	height: 30px;
	color: rgb(58, 9, 235);
	border: 2px solid white;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 999999 !important; /* Z-index très élevé */
	transition: all 0.3s ease;
}
.modal__close span {
	border: none;
}

.modal__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.popup-body {
	padding: 25px;
}

.niveau-label {
	font-weight: bold;
	margin-bottom: 8px;
	color: #2c1810;
}

.niveau-bar {
	width: 100%;
	height: 8px;
	background: #ddd;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.niveau-fill {
	height: 100%;
	background: linear-gradient(170deg, #a855f7, #22c55e);
	border-radius: 4px;
	transition: width 0.8s ease;
}

.section-title {
	margin-top: 10px;
	font-weight: bold;
	color: #8b4513;
	font-size: 1.1rem;
}

.section-content {
	line-height: 1.6;
	color: #2c1810;
}

.projets-list {
	list-style: none;
	padding: 0;
}

.projets-list li {
	background: #f0f0f0;
	margin: 5px 0;
	padding: 8px 12px;
	border-radius: 6px;
	border-left: 4px solid #d4af37;
}

footer p {
	font-family: "Nunito", sans-serif;
	font-size: 0.9rem;
	color: #f5f5dc;
	opacity: 0.8;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 20px;
}

@media (max-width: 1024px) {
	.bibliothèque {
		width: 85%;
		padding: 0 30px 0 30px;
	}

	h2 {
		font-size: 1.8rem;
	}
	.portrait-container {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 0 auto 15px auto;
		width: 130px;
		height: auto;
		border-radius: 50%;
		overflow: hidden;
		border: 1px solid #ddd;
		box-shadow: 0 4px 8px rgba(255, 255, 255, 0.8);
	}

	.portrait-container img {
		transition: transform 0.3s ease;
		width: 125%;
		height: 125%;
	}
	.portrait-container img:hover {
		transform: scale(1.7) translateY(30px);
	}
	.logo {
		display: block;
		visibility: visible;
	}
	.logo img {
		width: 40px;
		height: 40px;
		display: block;
		background-color: white;
		margin: 0 auto;
	}
	.etagere-container {
		display: block;
	}

	.etagere {
		display: block;
		width: 85%;
		margin: 0 auto 0 auto;
	}
	.etagere-place-titre {
		width: 100%;
		margin: 0 auto;
	}
	.presentation {
		width: 85%;
		margin: 15px auto 15px auto;
	}

.etagere-gif1 img {
	width: 20%;
	height: auto;
}
.etagere-gif2 img {
	width: 20%;
	height: auto;
}
.etagere-gif3 img {
	width: 20%;
	height: auto;
}
	.livres-lot {
		justify-content: center;
		gap: 80px;
		margin: 0 auto;
	}

	.livre {
		width: 60px;
		height: 130px;
		border-radius: 6px;
	}
	.livre-titre {
		bottom: 47px;
	}

	.livre-titre h3 {
		font-family: "Nunito", sans-serif;
		text-transform: uppercase;
		font-size: 14px;
		font-weight: 700;
		color: #fff;
		text-shadow: 1px 2px 2px rgba(168, 85, 247, 0.8);
		white-space: nowrap;
		margin: 0;
		padding: 0;
		line-height: 1;
	}

	/* Modal principale */
	.modal {
		position: fixed;
		top: 0;
		left: 0;
		width: 90%;
		height: 100%;
		overflow: hidden;
	}

	.modal__overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(170deg, #a855f7, #22c55e);
		backdrop-filter: blur(3px);
		display: block;
		padding: 0;
		margin: 0;
		overflow: hidden;
	}

	.modal__container {
		position: absolute;
		top: 80px;
		left: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		height: fit-content;
		border-radius: 0;
		margin: 0;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		box-shadow: -5px -5px 40px rgba(35, 21, 232, 0.8);
	}
	#modal-title {
		text-transform: uppercase;
		font-size: 20px;
		margin-bottom: 20px;
	}

	.modal__header {
		padding: 5px 20px 10px 20px;
	}
	#modal-title {
		font-size: 28px;
	}
	#modal-projets {
		padding: 0 40px 20px 40px;
	}

	/* Bouton de fermeture */
	.modal__close {
		top: 10px;

		font-size: 1.5rem;
		width: 28px;
		height: 28px;
		color: rgb(58, 9, 235);
		border: 2px solid white;
		border-radius: 50%;
		display: flex !important;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		z-index: 999999 !important; /* Z-index très élevé */
		transition: all 0.3s ease;
	}

	.close-btn:hover {
		background: rgba(255, 255, 255, 0.4) !important;
		border-color: rgba(255, 255, 255, 0.6);
		transform: scale(1.1);
	}

	/* Section niveau */
	.niveau-section {
		margin-bottom: 15px;
	}

	.niveau-label {
		font-size: 0.9rem;
		margin-bottom: 5px;
		font-weight: bold;
	}

	.niveau-bar {
		height: 6px;
		border-radius: 3px;
	}

	.section-title {
		font-size: 1rem;
		margin-bottom: 5px;
		color: #8b4513;
		font-weight: bold;
	}

	.section-content {
		font-size: 0.8rem;
		line-height: 1.4;
	}

	/* Liste des projets */
	.projets-list {
		margin: 0;
		padding: 0;
	}

	.projets-list li {
		padding: 6px 8px;
		font-size: 0.75rem;
		margin: 3px 0;
		border-left-width: 3px;
		line-height: 1.3;
	}
	/* HEADER */
	/* header */
	/* Header sticky - état normal */
	.sticky-intro {
		padding: 5px 10px;
		text-align: center;
		/* layout par défaut */
		display: block;
	}

	/* Header sticky - état rétréci */
	.sticky-intro.shrunk {
		padding: 15px 20px;
		background: rgba(102, 126, 234, 0.95);
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 15px;
		text-align: left;
		flex-wrap: wrap;
		/* Optimisations performance pour tablettes */
		will-change: transform;
		transform: translateZ(0);
	}

	/* TOUS les éléments enfants du header rétréci */
	.sticky-intro.shrunk > * {
		flex-shrink: 0; /* IMPORTANT : empêche la déformation */
	}

	/* Titre */
	.title {
		font-size: 2rem;
		padding-left: 30px;
	}

	.sticky-intro.shrunk .title {
		font-size: 1.8rem;
		margin: 0;
		order: 2;
	}

	/* Sous-titre 1 */
	.subtitle1 {
		font-family: "Spectral", serif;
		font-size: 2rem;
		font-weight: 700;
		margin-bottom: 25px;
		color: #d4af37;
		transition: all 0.4s ease;
		/* visible par défaut */
		opacity: 1;
		display: block;
	}

	/* caché quand shrunk */
	.sticky-intro.shrunk .subtitle1 {
		display: none;
	}
	/* Portrait titre */
	.portrait-titre {
		align-items: center;
	}
	/* Portrait container */
	.portrait-container {
		/* display:flex; */
		/* justify-content: center;
	align-items: center; */
		width: 100px;
		height: 100px;
	}

	.sticky-intro.shrunk .portrait-container {
		margin: 0;
		order: 1;
		width: 50px;
		height: 50px;
	}

	.sticky-intro.shrunk .portrait-container img {
		width: 120%;
		height: 120%;
		border-width: 2px;
		transform: scale(1.2) translateY(5px);
	}

	/* Sous-titre 2 */
	.subtitle2 {
		font-family: "Nunito", sans-serif;
		font-size: 1.2rem;
		font-weight: 500;
		margin-top: 15px;
		color: #f5f5dc;
		transition: all 0.4s ease;
		display: none;
	}

	/* subtitle2 état rétréci */
	.sticky-intro.shrunk .subtitle2 {
		font-size: 0.9rem;
		margin: 0;
		order: 3;
		white-space: nowrap;
		display: block;
	}

	/* Logo état normal*/
	.logo {
		display: flex;
		margin: 15px auto 5px 0;
		transition: all 0.4s ease;
		justify-content: center;
		display: none;
	}

	.logo img {
		width: 40px;
		height: 40px;
		background-color: white;
		border-radius: 4px;
		transition: all 0.4s ease;
		opacity: 0.9;
		display: block;
	}

	.logo img:hover {
		opacity: 1;
		transform: scale(1.1);
	}

	.sticky-intro.shrunk .logo {
		display: block;
		margin: 0 0 0 10px;
		order: 4;
	}

	.sticky-intro.shrunk .logo img {
		width: 25px;
		height: 25px;
	}

}
@media (max-width: 480px) {
	.bibliotheque {
		padding: 0 15px 0 15px;
		margin: 0 auto;
	}
	h1 {
		font-size: 1.8rem;
		justify-content: center;
	}
	h2 {
		font-size: 1rem;
		justify-content: start;
		margin: 15px 0 15px 0;
	}
	.subtitle1 {
		font-family: "Spectral", serif;
		font-size: 1rem;
		line-height: 0.9;
	}
	.subtitle2 {
		font-size: 0.9rem;
	}
	.portrait-container {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 0 auto 15px auto;
		width: 130px;
		height: 130px;
		border-radius: 50%;
		overflow: hidden;
		border: 1px solid #ddd;
		box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
	}

	.portrait-container img {
		display: block !important;
		transition: transform 0.3s ease;
		width: 125%;
		height: 125%;
		object-fit: cover;
		transform: scale(1.2) translateY(20px);
	}
	.portrait-container img:hover {
		transform: scale(1.7) translateY(30px);
	}
	.subtitle2 {
		font-size: 1rem;
		margin-bottom: 15px;
	}
	.logo {
		display: block;
		visibility: visible;
	}
	.logo img {
		width: 40px;
		height: 40px;
		display: block;
		background-color: white;
		margin: 0 auto;
	}
	.etagere-container {
		display: block;
	}

	.etagere {
		display: block;
		padding: 5px;
	}
	.etagere-place-titre {
		max-width: 100%;
	}
.etagere-gif1 img {
	width: 20%;
	height: auto;
}
.etagere-gif2 img {
	width: 20%;
	height: auto;
}
.etagere-gif3 img {
	width: 20%;
	height: auto;
}
	.presentation {
		width: 85%;
		margin: 0 auto 20px auto;
	}
	.livres-container {
		display: block;
		margin: 0 auto;
		gap: 10px;
	}

	.livres-lot {
		gap: 30px;
		margin: 0 auto;
	}

	.livre {
		width: 60px;
		height: 130px;
		border-radius: 6px;
	}
	.livre-titre {
		bottom: 47px; /* Position fixe depuis le bas */
	}

	.livre-titre h3 {
		font-family: "Nunito", sans-serif;
		text-transform: uppercase;
		font-size: 14px;
		font-weight: bold;
		color: #fff;
		text-shadow: 1px 2px 2px rgba(168, 85, 247, 0.8);
		white-space: nowrap;
		margin: 0;
		padding: 0;
		line-height: 1;
	}


	/* Modal principale */
	.modal {
		position: fixed;
		top: 0;
		left: 0;
		width: 90%;
		height: 100%;
		overflow: hidden;
	}

	.modal__overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(170deg, #a855f7, #22c55e);
		backdrop-filter: blur(3px);
		display: block;
		padding: 0;
		margin: 0;
		overflow: hidden;
	}

	.modal__container {
		position: absolute;
		top: 80px;
		left: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		height: fit-content;
		border-radius: 0;
		margin: 0;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		box-shadow: -5px -5px 40px rgba(35, 21, 232, 0.8);
	}
	#modal-title {
		text-transform: uppercase;
		font-size: 20px;
		margin-bottom: 20px;
	}

	.modal__header {
		padding: 5px 20px 10px 20px;
		display: block !important;
		visibility: visible !important;
		z-index: 10001 !important;
	}
	#modal-title {
		font-size: 28px;
	}
	#modal-projets {
		padding: 0 40px 20px 40px;
	}
	/* Bouton de fermeture */
	.modal__close {
		top: 10px;

		font-size: 1.5rem;
		width: 28px;
		height: 28px;
		color: rgb(58, 9, 235);
		border: 2px solid white;
		border-radius: 50%;
		display: flex !important;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		z-index: 999999 !important; /* Z-index très élevé */
		transition: all 0.3s ease;
	}

	.close-btn:hover {
		background: rgba(255, 255, 255, 0.4) !important;
		border-color: rgba(255, 255, 255, 0.6);
		transform: scale(1.1);
	}

	/* Section niveau */
	.niveau-section {
		margin-bottom: 15px;
	}

	.niveau-label {
		font-size: 0.9rem;
		margin-bottom: 5px;
		font-weight: bold;
	}

	.niveau-bar {
		height: 6px;
		border-radius: 3px;
	}

	.section-title {
		font-size: 1rem;
		margin-bottom: 5px;
		color: #8b4513;
		font-weight: bold;
	}

	.section-content {
		font-size: 0.8rem;
		line-height: 1.4;
	}

	/* Liste des projets */
	.projets-list {
		margin: 0;
		padding: 0;
	}

	.projets-list li {
		padding: 6px 8px;
		font-size: 0.75rem;
		margin: 3px 0;
		border-left-width: 3px;
		line-height: 1.3;
	}

	/* header */
	/* Header sticky - état normal */
	.sticky-intro {
		padding: 5px 10px;
		text-align: center;
		/* layout par défaut */
		display: block;
	}

	/* Header sticky - état rétréci */
	.sticky-intro.shrunk {
		padding: 15px 20px;
		background: rgba(102, 126, 234, 0.95);
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 15px;
		text-align: left;
		flex-wrap: wrap;
		/* Optimisations performance pour mobiles */
		will-change: transform;
		transform: translateZ(0);
		transition: none; /* Désactiver les transitions sur mobile pour les performances */
	}

	/* TOUS les éléments enfants du header rétréci */
	.sticky-intro.shrunk > * {
		flex-shrink: 0; /* IMPORTANT : empêche la déformation */
	}

	/* Titre */
	.title {
		font-size: 2rem;
		padding-left: 20px;
	}

	.sticky-intro.shrunk .title {
		font-size: 1.8rem;
		margin: 0;
		order: 2;
	}

	/* Sous-titre 1 */
	.subtitle1 {
		font-family: "Spectral", serif;
		font-size: 2rem;
		font-weight: 700;
		margin-bottom: 25px;
		color: #d4af37;
		transition: all 0.4s ease;
		/* visible par défaut */
		opacity: 1;
		display: block;
	}

	/* caché quand shrunk */
	.sticky-intro.shrunk .subtitle1 {
		display: none;
	}
	/* Portrait titre */
	.portrait-titre {
		align-items: center;
	}
	/* Portrait container */
	.portrait-container {
		/* display:flex; */
		/* justify-content: center;
	align-items: center; */
		width: 100px;
		height: 100px;
	}

	.sticky-intro.shrunk .portrait-container {
		margin: 0;
		order: 1;
		width: 50px;
		height: 50px;
	}

	.sticky-intro.shrunk .portrait-container img {
		width: 120%;
		height: 120%;
		border-width: 2px;
		transform: scale(1.2) translateY(12px);
	}

	/* Sous-titre 2 */
	.subtitle2 {
		font-family: "Nunito", sans-serif;
		font-size: 1.2rem;
		font-weight: 500;
		margin-top: 15px;
		color: #f5f5dc;
		transition: all 0.4s ease;
		display: none;
	}

	/* subtitle2 état rétréci */
	.sticky-intro.shrunk .subtitle2 {
		font-size: 1.1rem;
		margin: 0;
		order: 3;
		white-space: nowrap;
		display: block;
	}

	/* Logo état normal*/
	.logo {
		display: flex;
		margin: 15px auto 5px 0;
		transition: all 0.4s ease;
		justify-content: center;
		display: none;
	}

	.logo img {
		width: 40px;
		height: 40px;
		background-color: white;
		border-radius: 4px;
		transition: all 0.4s ease;
		opacity: 0.9;
		display: block;
	}

	.logo img:hover {
		opacity: 1;
		transform: scale(1.1);
	}

	.sticky-intro.shrunk .logo {
		display: block;
		margin: 0 0 0 20px;
		order: 4;
	}

	.sticky-intro.shrunk .logo img {
		width: 30px;
		height: 30px;
	}

}

/* Optimisations spécifiques pour appareils Android à performances limitées (Galaxy A20, etc.) */
@media (max-width: 480px) and (max-device-pixel-ratio: 2) {
	.sticky-intro {
		/* Simplifier les styles pour de meilleures performances */
		transition: none;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	}
	
	.sticky-intro.shrunk {
		/* Désactiver complètement les transitions sur les appareils lents */
		transition: none !important;
		transform: none;
		will-change: auto;
	}
	
	/* Simplifier les effets visuels coûteux */
	.portrait-container img {
		transition: none !important;
		transform: none !important;
	}
	
	.portrait-container img:hover {
		transform: none !important;
	}
	
	/* Optimiser les éléments du header rétréci */
	.sticky-intro.shrunk .portrait-container img {
		transition: none !important;
		transform: none !important;
	}
}
