/* ==========================================================================
   davidlardy.com : feuille de style unique, sans framework.
   Sommaire : polices, variables, base, en-tete, accueil, sections,
   qui suis-je, references, competences, parcours, formation, projets,
   citation, pied de page, apparitions, impression.
   ========================================================================== */

/* ---------- Polices auto-hebergees (aucun appel a un serveur tiers) ---------- */
@font-face {
	font-family: 'Sintony';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/sintony-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Sintony';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/sintony-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Tangerine';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/tangerine-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Tangerine';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/tangerine-700.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
	--accent: #FC6F5C;
	--accent-texte: #C9432F;      /* meme teinte, assez sombre pour du texte sur fond clair */
	--accent-voile: rgba(252, 111, 92, 0.12);
	--encre: #1E1E1E;
	--texte: #2B2F36;
	--texte-doux: #5A6068;
	--fond: #FFFFFF;
	--fond-alt: #F4F6F8;
	--bordure: #E4E8EC;
	--rayon: 16px;
	--rayon-petit: 10px;
	--ombre: 0 1px 2px rgba(23, 32, 43, 0.05), 0 8px 24px rgba(23, 32, 43, 0.06);
	--ombre-forte: 0 2px 4px rgba(23, 32, 43, 0.06), 0 18px 40px rgba(23, 32, 43, 0.14);
	--largeur: 1120px;
	--entete: 68px;
	--police: 'Sintony', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
	--police-plume: 'Tangerine', 'Segoe Script', cursive;
}

/* ---------- Base ---------- */
*, *::before, *::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--entete);
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	font-family: var(--police);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--texte);
	background: var(--fond);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.2;
	color: var(--encre);
}
p {
	margin: 0 0 1.1em 0;
}
ul, ol {
	margin: 0;
	padding: 0;
}
a {
	color: var(--accent-texte);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.conteneur {
	width: min(100% - 2.5rem, var(--largeur));
	margin-inline: auto;
}
.icone {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.2em;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.lien-evitement {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 200;
	padding: 0.6rem 1rem;
	background: var(--fond);
	border-radius: var(--rayon-petit);
	font-weight: 700;
}
.lien-evitement:focus {
	top: 1rem;
}

/* ---------- En-tete ---------- */
.entete {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--entete);
	color: #fff;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.entete.est-defile,
.entete.est-ouvert {
	background: rgba(24, 24, 26, 0.86);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.18);
}
.entete-barre {
	width: min(100% - 2.5rem, 1320px);
	height: 100%;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.entete-logo {
	margin-right: auto;
	color: #fff;
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.entete-logo:hover {
	text-decoration: none;
}
.entete-logo span {
	color: var(--accent);
}
.menu {
	display: flex;
	gap: 0.25rem;
	list-style: none;
}
.menu a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	transition: color 0.2s ease, background-color 0.2s ease;
}
.menu a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}
.menu a[aria-current="true"] {
	color: #fff;
	background: var(--accent);
}
.menu-bouton {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.menu-bouton .icone {
	width: 26px;
	height: 26px;
	margin: auto;
	display: block;
}
.menu-bouton:hover {
	background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 940px) {
	.entete-barre nav {
		display: contents;
	}
	.menu-bouton {
		display: block;
	}
	.menu {
		position: absolute;
		inset: var(--entete) 0 auto 0;
		flex-direction: column;
		gap: 0;
		padding: 0.5rem 1.25rem 1.25rem;
		background: rgba(24, 24, 26, 0.96);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
		display: none;
	}
	.entete.est-ouvert .menu {
		display: flex;
	}
	.menu a {
		padding: 0.8rem 1rem;
		font-size: 1rem;
		border-radius: var(--rayon-petit);
	}
}

/* ---------- Accueil ---------- */
.accueil {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: calc(var(--entete) + 2rem) 1.25rem 5rem;
	overflow: hidden;
	background: var(--encre);
	color: #fff;
	text-align: center;
	isolation: isolate;
}
/* Diaporama de fond : quatre photos en fondu enchaine, zoom tres lent.
   Chaque image occupe 6 s d'un cycle de 24 s, decalee par animation-delay. */
.accueil-fonds {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.accueil-fonds img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: fondu-accueil 24s linear infinite;
	will-change: opacity, transform;
}
.accueil-fonds img:nth-child(2) { animation-delay: 6s; }
.accueil-fonds img:nth-child(3) { animation-delay: 12s; }
.accueil-fonds img:nth-child(4) { animation-delay: 18s; }
@keyframes fondu-accueil {
	0%   { opacity: 0; transform: scale(1); }
	6%   { opacity: 1; }
	25%  { opacity: 1; }
	31%  { opacity: 0; transform: scale(1.07); }
	100% { opacity: 0; transform: scale(1.07); }
}
.accueil::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at center, rgba(12, 12, 14, 0.4) 0%, rgba(12, 12, 14, 0.66) 80%),
		linear-gradient(to bottom, rgba(12, 12, 14, 0.5) 0%, rgba(12, 12, 14, 0) 28%, rgba(12, 12, 14, 0.45) 100%);
}
.carte-visite {
	padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.6rem, 6vw, 4rem);
	border-radius: 22px;
	background: rgba(252, 111, 92, 0.84);
	border: 1px solid rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
	animation: entree-carte 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.carte-visite h1 {
	color: #fff;
	font-size: clamp(2.4rem, 8vw, 4.5rem);
	letter-spacing: -0.045em;
	text-transform: uppercase;
	line-height: 1;
}
.carte-visite p {
	margin: 0.9rem 0 0 0;
	font-size: clamp(1rem, 2.4vw, 1.25rem);
	color: #fff;
}
.accueil-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8rem;
	margin-top: 2rem;
	animation: entree-carte 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes entree-carte {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}
.bouton {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.75rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.bouton:hover {
	text-decoration: none;
	transform: translateY(-2px);
}
.bouton--clair {
	background: #fff;
	color: var(--encre);
}
.bouton--clair:hover {
	background: var(--accent);
	color: #fff;
}
.bouton--contour {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}
.bouton--contour:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: #fff;
}
.bouton--sombre {
	background: var(--encre);
	color: #fff;
}
.bouton--sombre:hover {
	background: var(--accent);
}
.accueil-suite {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.8);
	animation: rebond 2.4s ease-in-out infinite;
}
.accueil-suite:hover {
	color: #fff;
}
.accueil-suite .icone {
	width: 28px;
	height: 28px;
}
@keyframes rebond {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(7px); }
}

/* ---------- Sections ---------- */
.section {
	padding: clamp(4rem, 9vw, 6.5rem) 0;
}
.section--alt {
	background: var(--fond-alt);
}
.section-titre {
	margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
	text-align: center;
}
.section-titre h2 {
	font-size: clamp(1.9rem, 5vw, 2.75rem);
	letter-spacing: -0.035em;
	text-transform: uppercase;
}
.section-titre h2 em {
	font-style: normal;
	color: var(--accent);
}
.section-titre h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 0.9rem auto 0;
	border-radius: 2px;
	background: var(--accent);
}
.section-titre p {
	margin: 0.9rem 0 0 0;
	font-family: var(--police-plume);
	font-size: 2rem;
	line-height: 1.1;
	color: var(--texte-doux);
}

/* ---------- Qui suis-je ---------- */
.apropos {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.apropos-portrait {
	position: sticky;
	top: calc(var(--entete) + 1.5rem);
	text-align: center;
}
.apropos-portrait img {
	width: 100%;
	border-radius: 24px;
	box-shadow: var(--ombre-forte);
}
.apropos-portrait figcaption {
	margin-top: 1.2rem;
	font-family: var(--police-plume);
	font-size: 2.4rem;
	line-height: 1.05;
	color: var(--texte-doux);
}
.apropos-portrait figcaption::after {
	content: "";
	display: block;
	width: 90px;
	height: 4px;
	margin: 0.8rem auto 0;
	border-radius: 2px;
	background: var(--accent);
}
.apropos-texte h3 {
	font-size: 1.7rem;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}
.apropos-role {
	margin: 0.4rem 0 1.6rem 0;
	color: var(--accent-texte);
	font-weight: 700;
}
.apropos-texte a,
.apropos-texte .marque {
	font-weight: 700;
	color: var(--accent-texte);
}
@media (max-width: 760px) {
	.apropos {
		grid-template-columns: 1fr;
	}
	.apropos-portrait {
		position: static;
		max-width: 260px;
		margin-inline: auto;
	}
}

/* ---------- References : cylindre horizontal a trois faces ----------
   Trois faces a 120 deg autour de l'axe X, ecartees de 76.5 px du centre.
   L'axe tourne en rotateX croissant : la face avant bascule vers le haut,
   la suivante arrive par le bas. Arret de 2.5 s sur chacune. */
.cylindre {
	perspective: 1300px;
	height: 265px;
	margin: 0 auto;
	max-width: 800px;
}
.cylindre-axe {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	will-change: transform;
	animation: tourne-references 10.2s infinite;
}
.cylindre-face {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	backface-visibility: hidden;
}
.cylindre-face img {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	padding: 14px;
	background: #fff;
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
}
.cylindre-face:nth-child(1) { transform: rotateX(0deg) translateZ(76.5px); }
.cylindre-face:nth-child(2) { transform: rotateX(-120deg) translateZ(76.5px); }
.cylindre-face:nth-child(3) { transform: rotateX(-240deg) translateZ(76.5px); }
@keyframes tourne-references {
	0.0000%  { transform: rotateX(0deg); }
	24.5098% { transform: rotateX(0deg); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
	33.3333% { transform: rotateX(120deg); }
	57.8431% { transform: rotateX(120deg); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
	66.6667% { transform: rotateX(240deg); }
	91.1765% { transform: rotateX(240deg); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
	100%     { transform: rotateX(360deg); }
}
/* Sur telephone le cylindre rendrait les textes illisibles : les trois
   recommandations se font defiler au doigt, a taille lisible. */
@media (max-width: 700px) {
	.cylindre {
		perspective: none;
		height: auto;
		margin-inline: -1.25rem;
		padding: 0.5rem 1.25rem 1.25rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 1.25rem;
		-webkit-overflow-scrolling: touch;
	}
	.cylindre-axe {
		display: flex;
		align-items: center;
		gap: 1rem;
		width: max-content;
		height: auto;
		transform-style: flat;
		animation: none;
	}
	.cylindre-face,
	.cylindre-face:nth-child(n) {
		position: static;
		flex: none;
		transform: none;
		backface-visibility: visible;
		scroll-snap-align: start;
	}
	.cylindre-face img {
		width: 560px;
		max-width: none;
		max-height: none;
	}
}

/* ---------- Competences ---------- */
.competences {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 1.5rem;
	align-items: start;
}
.competence {
	padding: 1.8rem 1.6rem;
	background: var(--fond);
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
}
.competence h3 {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.1rem;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.competence h3 .icone {
	width: 42px;
	height: 42px;
	padding: 10px;
	border-radius: 12px;
	background: var(--accent-voile);
	color: var(--accent-texte);
}
.competence ul {
	list-style: none;
}
.competence li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.2rem;
	line-height: 1.5;
	color: var(--texte-doux);
	border-bottom: 1px solid var(--bordure);
}
.competence li:last-child {
	border-bottom: 0;
}
.competence li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.1rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}
/* colonne "A ameliorer" : meme structure, accent plus discret */
.competence--progres h3 .icone {
	background: #ECEFF2;
	color: #6B747E;
}
.competence--progres li::before {
	background: #9AA3AC;
}

/* ---------- Parcours (frise verticale) ---------- */
.parcours {
	--colonne-date: 11.5rem;
	--gouttiere: 3rem;
	position: relative;
	list-style: none;
	max-width: 920px;
	margin-inline: auto;
}
.parcours::before {
	content: "";
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	left: calc(var(--colonne-date) + var(--gouttiere) / 2 - 1px);
	width: 2px;
	background: linear-gradient(to bottom, var(--accent), #D5DAE0 12%, #D5DAE0 88%, transparent);
}
.etape {
	position: relative;
	display: grid;
	grid-template-columns: var(--colonne-date) 1fr;
	gap: var(--gouttiere);
	padding-bottom: 1.8rem;
}
.etape::before {
	content: "";
	position: absolute;
	top: 1.55rem;
	left: calc(var(--colonne-date) + var(--gouttiere) / 2 - 8px);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid var(--fond-alt);
	box-shadow: 0 0 0 2px var(--accent);
}
.etape-date {
	margin: 1.15rem 0 0 0;
	text-align: right;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--accent-texte);
}
.etape-carte {
	padding: 1.5rem 1.6rem;
	background: var(--fond);
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.etape-carte:hover {
	border-color: rgba(252, 111, 92, 0.55);
	box-shadow: var(--ombre-forte);
}
.etape-carte h3 {
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--accent-texte);
}
.etape-carte h3 a {
	color: inherit;
}
.etape-role {
	margin: 0.35rem 0 0.9rem 0;
	color: var(--encre);
}
.etape-carte p:last-child,
.etape-carte ul:last-child {
	margin-bottom: 0;
}
.etape-carte p,
.etape-carte li {
	color: var(--texte-doux);
}
.etape-carte .etape-role {
	color: var(--encre);
}
.etape-label {
	margin: 1rem 0 0.5rem 0;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--encre) !important;
}
.liste {
	list-style: none;
}
.liste li {
	position: relative;
	padding: 0.2rem 0 0.2rem 1.1rem;
	line-height: 1.55;
}
.liste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}
.puces {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
}
.puces li {
	padding: 0.2rem 0.75rem;
	border: 1px solid rgba(252, 111, 92, 0.5);
	border-radius: 999px;
	font-size: 0.72rem;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent-texte);
	background: var(--fond);
}
@media (max-width: 760px) {
	.parcours::before {
		left: 7px;
	}
	.etape {
		grid-template-columns: 1fr;
		gap: 0.6rem;
		padding-left: 1.9rem;
	}
	.etape-carte {
		padding: 1.2rem 1.15rem;
	}
	.etape::before {
		top: 0.25rem;
		left: 0;
	}
	.etape-date {
		margin: 0;
		text-align: left;
	}
}

/* ---------- Formation ---------- */
.formations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.25rem;
	list-style: none;
}
.formation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.2rem;
	align-items: start;
	padding: 1.4rem 1.5rem;
	background: var(--fond-alt);
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
}
.formation-annee {
	min-width: 4.6rem;
	padding: 0.55rem 0.7rem;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
	text-align: center;
}
.formation h3 {
	font-size: 1.08rem;
}
.formation-ecole {
	margin: 0.2rem 0 0.6rem 0;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent-texte);
}
.formation p:last-child {
	margin: 0;
	font-size: 0.97rem;
	color: var(--texte-doux);
	line-height: 1.55;
}

/* ---------- Projets ---------- */
.projets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 1.75rem;
}
.projet-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--fond);
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.projet-card:hover {
	transform: translateY(-5px);
	border-color: rgba(252, 111, 92, 0.7);
	box-shadow: var(--ombre-forte);
}
.projet-visuel {
	display: block;
	overflow: hidden;
	line-height: 0;
	background: #1B2027;
}
.projet-visuel img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.projet-card:hover .projet-visuel > img {
	transform: scale(1.04);
}
.projet-corps {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.5rem;
}
.projet-corps h3 {
	margin-bottom: 0.7rem;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}
.projet-accroche {
	margin-bottom: 1.1rem;
	font-size: 0.98rem;
	line-height: 1.65;
	color: var(--texte-doux);
}
.projet-corps .puces {
	margin-bottom: 1.2rem;
}
.projet-lien {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	align-self: flex-start;
	margin-top: auto;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.projets-github {
	margin: 2.5rem 0 0 0;
	text-align: center;
}

/* Carrousel "Et le reste du temps" : defilement rapide sur 3 vignettes,
   deceleration, arret de 2 s, puis reprise. Anime en CSS, sans interaction. */
.carrousel {
	position: relative;
	overflow: hidden;
	pointer-events: none;
}
.carrousel-piste {
	display: flex;
	width: 100%;
	will-change: transform;
	animation: defile-perso 19.6s infinite;
	animation-timing-function: linear;
}
.carrousel-piste img {
	flex: 0 0 100%;
	width: 100%;
}
@keyframes defile-perso {
	0.0000%  { transform: translateX(0%); }
	10.2041% { transform: translateX(0%); animation-timing-function: cubic-bezier(0.12, 0.9, 0.2, 1); }
	14.2857% { transform: translateX(-300%); }
	24.4898% { transform: translateX(-300%); animation-timing-function: cubic-bezier(0.12, 0.9, 0.2, 1); }
	28.5714% { transform: translateX(-600%); }
	38.7755% { transform: translateX(-600%); animation-timing-function: cubic-bezier(0.12, 0.9, 0.2, 1); }
	42.8571% { transform: translateX(-900%); }
	53.0612% { transform: translateX(-900%); animation-timing-function: cubic-bezier(0.12, 0.9, 0.2, 1); }
	57.1429% { transform: translateX(-1200%); }
	67.3469% { transform: translateX(-1200%); animation-timing-function: cubic-bezier(0.12, 0.9, 0.2, 1); }
	71.4286% { transform: translateX(-1500%); }
	81.6327% { transform: translateX(-1500%); animation-timing-function: cubic-bezier(0.12, 0.9, 0.2, 1); }
	85.7143% { transform: translateX(-1800%); }
	95.9184% { transform: translateX(-1800%); animation-timing-function: cubic-bezier(0.12, 0.9, 0.2, 1); }
	100%     { transform: translateX(-2100%); }
}

/* ---------- Citation ---------- */
.citation {
	padding: clamp(4rem, 9vw, 6rem) 0;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(252, 111, 92, 0.2), transparent 55%),
		var(--encre);
	color: #fff;
	text-align: center;
}
.citation blockquote {
	max-width: 820px;
	margin: 0 auto;
}
.citation blockquote p {
	margin: 0;
	font-size: clamp(1.45rem, 3.6vw, 2.2rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}
.citation cite {
	display: block;
	margin-top: 1.1rem;
	font-family: var(--police-plume);
	font-style: normal;
	font-size: 2.1rem;
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Pied de page ---------- */
.pied {
	padding: 2rem 0;
	background: #141415;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
	text-align: center;
}
.pied p {
	margin: 0;
}
.pied small {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
}
.retour-haut {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--encre);
	color: #fff;
	box-shadow: var(--ombre-forte);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}
.retour-haut.est-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.retour-haut:hover {
	background: var(--accent);
}
.retour-haut .icone {
	width: 22px;
	height: 22px;
}

/* ---------- Apparition au defilement (seulement si le script tourne) ---------- */
.js .reveler {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveler.est-vu {
	opacity: 1;
	transform: none;
}

/* ---------- Reglage systeme "reduire les animations" ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.accueil-fonds img {
		animation: none;
	}
	.accueil-fonds img:first-child {
		opacity: 1;
	}
	.carte-visite,
	.accueil-actions,
	.accueil-suite,
	.cylindre-axe,
	.carrousel-piste {
		animation: none;
	}
	.js .reveler {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Impression ---------- */
@media print {
	.entete,
	.accueil-fonds,
	.accueil-actions,
	.accueil-suite,
	.retour-haut,
	#reference {
		display: none !important;
	}
	.accueil {
		min-height: 0;
		padding: 1rem 0;
		background: none;
	}
	.accueil::after {
		display: none;
	}
	.carte-visite {
		box-shadow: none;
		animation: none;
	}
	.section {
		padding: 1.5rem 0;
	}
	.js .reveler {
		opacity: 1;
		transform: none;
	}
	.etape,
	.formation,
	.projet-card,
	.competence {
		break-inside: avoid;
	}
}
