/* ==========================================================================
   12e Congrès SFMPP 2026 — Oncogénomique, Génomique, IA
   Structure reprise du modèle PEAU (Cours St-Paul), charte couleurs SFMPP :
   bleu nuit #24275A (bandeau / programme), bleu #3A6CB1, rouge logo #E41239.
   ========================================================================== */

:root {
	--marine: #24275A;
	--marine-fonce: #181B40;
	--bleu: #3A6CB1;
	--ciel: #A9D2E8;
	--ciel-clair: #D6E6F5;
	--fond: #EDF1F8;
	--rouge: #E41239;
	--rouge-fonce: #B00C2B;
	--encre: #1D2140;
	--gris: #5A6176;
	--blanc: #FFFFFF;
	--bordure: rgba(36, 39, 90, 0.14);
	--rayon: 18px;
	--ombre: 0 2px 10px rgba(24, 27, 64, 0.08);
	--ombre-haute: 0 14px 30px rgba(24, 27, 64, 0.18);
	--police: "Source Sans 3", "Source Sans Pro", "Segoe UI", Calibri, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--police);
	font-size: 16px;
	line-height: 1.45;
	color: var(--encre);
	background-color: var(--fond);
	/* Cercles décoratifs discrets, écho de la couverture du programme */
	background-image:
		radial-gradient(circle at 90% 10%, var(--ciel-clair) 0 160px, transparent 161px),
		radial-gradient(circle at 97% 26%, var(--ciel) 0 90px, transparent 91px),
		radial-gradient(circle at 3% 80%, var(--ciel-clair) 0 140px, transparent 141px),
		radial-gradient(circle at 10% 95%, var(--ciel) 0 65px, transparent 66px);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--bleu);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--marine);
}

img {
	max-width: 100%;
	display: block;
}

.conteneur {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --------------------------------------------------------------------------
   En-tête : bandeau sur fond bleu nuit, liseré rouge SFMPP
   -------------------------------------------------------------------------- */
.entete {
	position: relative;
	background: var(--marine);
	border-bottom: 4px solid var(--rouge);
	overflow: hidden;
}

/* Fines lignes verticales et halo, motif du programme, en filigrane */
.entete::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 260px;
	background:
		radial-gradient(circle at 100% 0, rgba(169, 210, 232, 0.25) 0 120px, transparent 121px),
		repeating-linear-gradient(90deg, rgba(169, 210, 232, 0.16) 0 3px, transparent 3px 12px);
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
	mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.entete::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 180px;
	background: repeating-linear-gradient(90deg, rgba(169, 210, 232, 0.10) 0 3px, transparent 3px 12px);
	pointer-events: none;
	-webkit-mask-image: linear-gradient(270deg, transparent, #000 60%);
	mask-image: linear-gradient(270deg, transparent, #000 60%);
}

.entete-inner {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 20px 0 18px;
}

.bandeau {
	width: 100%;
	max-width: 820px;
	border-radius: 8px;
}

/* Navigation par journée (collante) */
.jours-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--bordure);
}

.jours-nav ul {
	display: flex;
	gap: 8px;
	margin: 0 auto;
	padding: 10px 24px;
	list-style: none;
	overflow-x: auto;
}

.jours-nav a {
	display: inline-block;
	padding: 7px 16px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--marine);
	border: 1.5px solid var(--marine);
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
}

.jours-nav a:hover,
.jours-nav a:focus {
	color: var(--blanc);
	background: var(--marine);
}

/* --------------------------------------------------------------------------
   Journées
   -------------------------------------------------------------------------- */
.programme {
	padding: 24px 0 56px;
}

.jour {
	scroll-margin-top: 72px;
	margin-top: 36px;
}

.jour:first-child {
	margin-top: 12px;
}

.jour-titre {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 18px;
	font-size: 30px;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--encre);
}

.jour-titre strong {
	font-weight: 600;
	color: var(--rouge);
}

.jour-titre::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	background: var(--marine);
	opacity: 0.3;
}

/* --------------------------------------------------------------------------
   Sessions
   -------------------------------------------------------------------------- */
.session {
	margin-bottom: 22px;
	padding: 20px 22px 22px;
	background: var(--blanc);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
}

.session-tete {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--bordure);
}

.session-titres {
	flex: 1 1 auto;
	min-width: 0;
}

.session-titre {
	margin: 0;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.25;
	color: var(--encre);
}

.session-sous {
	margin: 5px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--bleu);
}

/* Mention « Sous l'égide… » : rouge et italique, comme dans le programme PDF
   (CMJN 15/100/100/0, profil Coated FOGRA39 → #CE2729, Montserrat Medium Italic) */
.session-egide {
	margin: 5px 0 0;
	font-size: 15px;
	font-weight: 500;
	font-style: italic;
	color: #CE2729;
}

.moderateurs {
	margin: 6px 0 0;
	font-size: 15px;
	font-style: italic;
	color: var(--gris);
}

/* Badge de salle, à droite du titre de session */
.salle {
	flex: 0 0 auto;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	border-radius: 999px;
}

.salle-pleniere {
	color: var(--blanc);
	background: var(--marine);
}

.salle-par1 {
	color: var(--blanc);
	background: var(--bleu);
}

.salle-par2 {
	color: var(--marine);
	background: var(--ciel);
}

/* --------------------------------------------------------------------------
   Cartes orateurs
   -------------------------------------------------------------------------- */
.cartes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

/* Texte d'introduction occupant toute la rangée avant un groupe de cartes */
.cartes-intro {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--bleu);
}

.carte {
	display: flex;
	flex-direction: column;
	color: var(--encre);
	background: var(--blanc);
	border: 1px solid var(--bordure);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.carte:hover,
.carte:focus-visible {
	color: var(--encre);
	transform: translateY(-4px);
	box-shadow: var(--ombre-haute);
	border-color: var(--ciel);
	outline: none;
}

.carte-visuel {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	background: var(--ciel-clair);
	overflow: hidden;
}

.carte-visuel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.carte:hover .carte-visuel img {
	transform: scale(1.04);
}

/* Bouton lecture centré, rouge SFMPP (SVG en data-URI) */
.carte-visuel::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22.5' fill='rgba(228,18,57,0.88)' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M19 15l14 9-14 9z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
	transition: transform 0.18s ease;
}

.carte:hover .carte-visuel::after {
	transform: translate(-50%, -50%) scale(1.1);
}

.carte-texte {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 6px;
	padding: 14px 16px 16px;
}

.carte-titre {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--encre);
}

.carte-orateur {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--bleu);
}

/* Sous un titre d'intervention, le nom passe en graisse normale */
.carte-titre + .carte-orateur {
	font-weight: 400;
}

.carte-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rouge);
}

.carte-cta::after {
	content: "→";
	transition: transform 0.18s ease;
}

.carte:hover .carte-cta {
	color: var(--rouge-fonce);
}

.carte:hover .carte-cta::after {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Cartes élargies : réservées aux textes orateur exceptionnellement longs
   (carte-large : double emprise · carte-pleine : toute la rangée)
   -------------------------------------------------------------------------- */
@media (min-width: 760px) {
	.carte-large,
	.carte-pleine {
		flex-direction: row;
	}

	.carte-large {
		grid-column: span 2;
	}

	.carte-pleine {
		grid-column: 1 / -1;
	}

	.carte-large .carte-visuel,
	.carte-pleine .carte-visuel {
		aspect-ratio: auto;
		min-height: 175px;
	}

	.carte-large .carte-visuel {
		flex: 0 0 38%;
	}

	.carte-pleine .carte-visuel {
		flex: 0 0 30%;
	}

	.carte-large .carte-visuel img,
	.carte-pleine .carte-visuel img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.pied {
	padding: 22px 0 30px;
	font-size: 14px;
	text-align: center;
	color: var(--gris);
	border-top: 1px solid var(--bordure);
}

.pied a {
	font-weight: 600;
	color: var(--rouge);
}

.pied a:hover {
	color: var(--rouge-fonce);
}

/* --------------------------------------------------------------------------
   Écrans étroits
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
	.conteneur {
		padding: 0 16px;
	}

	/* Trois pastilles de largeur égale, sans le mois, pour tenir sur une ligne */
	.jours-nav ul {
		padding: 10px 16px;
		overflow: visible;
	}

	.jours-nav li {
		flex: 1 1 0;
		min-width: 0;
	}

	.jours-nav a {
		display: block;
		padding: 7px 6px;
		font-size: 13px;
		text-align: center;
	}

	.jours-nav .mois {
		display: none;
	}

	.entete::before {
		width: 120px;
	}

	.entete::after {
		display: none;
	}

	.entete-inner {
		padding: 14px 0 12px;
	}

	.jour-titre {
		font-size: 22px;
	}

	.session {
		padding: 16px 14px 18px;
	}

	.session-tete {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 10px;
	}

	.session-titre {
		font-size: 19px;
	}

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