/* ============================================
   Feuille de style - Page d'accueil (sommaire)
   ============================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f5f5f5;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ============================================
   BANNIÈRE PRINCIPALE
   ============================================ */

.banniere-principale {
	position: relative;
	width: 100%;
	min-height: 450px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #e0e0e0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banniere-principale::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 20, 33, 0.05) 0%, rgba(8, 20, 33, 0.2) 45%, rgba(8, 20, 33, 0.6) 100%);
	z-index: 1;
	pointer-events: none;
}

.banniere-image {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	background-color: #e0e0e0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.banniere-logo {
	position: absolute;
	top: 25%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 120;
	width: clamp(86px, 10vw, 150px);
	max-width: 150px;
	min-width: 86px;
	pointer-events: none;
	padding: 0;
	border-radius: 0;
	background: transparent;
	backdrop-filter: none;
	box-shadow: none;
}

.banniere-logo img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

@media (max-width: 900px) {
	.banniere-logo {
		width: clamp(70px, 13vw, 108px);
		min-width: 70px;
		top: 25%;
	}
}

@media (max-width: 768px) {
	.banniere-logo {
		width: clamp(52px, 15vw, 74px);
		min-width: 52px;
		top: 25%;
	}
}

.banniere-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 120px 20px 20px;
	z-index: 2;
	pointer-events: none;
}

.banniere-overlay h1 {
	margin: 0;
	position: absolute;
	top: calc(30% + clamp(72px, 8vw, 106px));
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 40px);
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 700;
	text-align: center;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
	letter-spacing: 0.02em;
}

.banniere-cartes {
	position: relative;
	width: 100%;
	z-index: 3;
	padding: 0 24px 44px;
}

/* ============================================
   MENU PRINCIPAL
   ============================================ */

.menu-principal {
	background-color: rgba(44, 62, 80, 0.95);
	padding: 0;
	width: 100%;
	z-index: 100;
	position: static;
}

.menu-toggle {
	display: none;
	appearance: none;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1.04rem;
	font-weight: 600;
	padding: 16px 18px;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.menu-toggle-label {
	display: inline-block;
}

.menu-toggle-icon {
	position: relative;
	width: 22px;
	height: 14px;
	display: inline-block;
	border-top: 2px solid #fff;
	border-bottom: 2px solid #fff;
}

.menu-toggle-icon::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 2px solid #fff;
	transform: translateY(-50%);
}

/* Menu en overlay sur la bannière */
.banniere-principale .menu-principal {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.menu-items {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
}

.menu-items li {
	flex: 0 0 auto;
	max-width: 300px;
	border-right: 1px solid #34495e;
}

.menu-items li:last-child {
	border-right: none;
}

.menu-link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 20px 30px;
	color: #fff;
	text-decoration: none;
	font-size: 1.04rem;
	font-weight: 500;
	text-align: center;
	transition: background-color 0.3s ease;
	box-sizing: border-box;
}

.menu-link:hover {
	background-color: #3498db;
	color: #fff;
}

/* ============================================
   SECTION "VOUS ÊTES" - 4 BOÎTES EN GRILLE
   ============================================ */

.vous-etes {
	background: transparent;
	padding: 0;
	margin: 0;
}

.vous-etes-container {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(240px, 1fr));
	gap: 20px;
}

.vous-etes-box {
	display: flex;
	align-items: center;
	background: rgba(15, 35, 56, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 14px;
	padding: 25px;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
	cursor: pointer;
	min-height: 180px;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.vous-etes-box.has-logo::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(15, 35, 56, 0.45);
	transition: background 0.3s ease;
}

.vous-etes-box.has-logo:hover::before {
	background: rgba(15, 35, 56, 0.3);
}

.vous-etes-box:hover {
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	transform: translateY(-4px);
}

.vous-etes-contenu {
	width: 100%;
	position: relative;
	z-index: 1;
}

.vous-etes-box h3 {
	font-size: 1.5em;
	color: #fff;
	margin-bottom: 10px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.vous-etes-desc {
	font-size: 1em;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.5;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ============================================
   SECTION ACTUALITÉS - 2 COLONNES
   ============================================ */

.section-actualites {
	background-color: #fff;
	padding: 40px 20px;
	margin: 0;
}

.section-actualites h2,
.section-header h2 {
	text-align: center;
	color: #2c3e50;
	font-size: 2em;
	margin-bottom: 30px;
	padding: 20px 0;
}

.actualites-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.actualites-container.actualites-container-agenda-seul {
	grid-template-columns: minmax(320px, 700px);
	justify-content: center;
}

/* Colonne Agenda */
.actualites-col {
	background-color: #f9f9f9;
	padding: 25px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

/* ============================================
   CALENDRIER VISUEL DES ATELIERS
   ============================================ */

.cal-widget {
	font-family: inherit;
	user-select: none;
}

.cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cal-month-title {
	font-size: 1.05em;
	font-weight: 700;
	color: #2c3e50;
	text-align: center;
	flex: 1;
}

.cal-btn-nav {
	background: #3498db;
	color: white;
	border: none;
	border-radius: 4px;
	width: 30px;
	height: 30px;
	font-size: 1.3em;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cal-btn-nav:hover {
	background: #2980b9;
}

.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.cal-day-hdr {
	text-align: center;
	font-size: 0.72em;
	font-weight: 700;
	color: #7f8c8d;
	padding: 4px 0;
	text-transform: uppercase;
}

.cal-day-hdr.cal-weekend {
	color: #c0392b;
}

.cal-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	border-radius: 4px;
	padding: 3px 0 5px;
	cursor: default;
	transition: background 0.15s;
}

.cal-cell-empty {
	background: transparent;
}

.cal-cell-weekend .cal-day-num {
	color: #c0392b;
}

.cal-cell-today .cal-day-num {
	background: #2c3e50;
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cal-cell-has-event {
	cursor: pointer;
	background: #ebf5fb;
}

.cal-cell-has-event:hover {
	background: #d6eaf8;
}

.cal-day-num {
	font-size: 0.85em;
	font-weight: 500;
	color: #2c3e50;
	line-height: 1;
}

.cal-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3498db;
	margin-top: 3px;
	display: block;
}

.cal-cell-has-event .cal-dot {
	background: #e67e22;
}

.cal-events-panel {
	margin-top: 12px;
	background: white;
	border: 1px solid #d6eaf8;
	border-radius: 6px;
	padding: 12px 15px;
}

.cal-events-panel-title {
	font-weight: 700;
	color: #2c3e50;
	font-size: 0.95em;
	margin-bottom: 8px;
	border-bottom: 2px solid #3498db;
	padding-bottom: 6px;
}

.cal-events-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cal-events-list li {
	padding: 5px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.88em;
}

.cal-events-list li:last-child {
	border-bottom: none;
}

.cal-events-list li a {
	color: #2980b9;
	text-decoration: none;
	font-weight: 500;
}

.cal-events-list li a:hover {
	text-decoration: underline;
}

.actualites-col-agenda h3 {
	color: #2c3e50;
	font-size: 1.3em;
	margin-bottom: 20px;
	border-bottom: 2px solid #3498db;
	padding-bottom: 10px;
}

.agenda-prochain-evenement {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #d8e4ed;
	font-size: 0.95em;
	color: #2c3e50;
}

.agenda-prochain-evenement a {
	color: #2980b9;
	text-decoration: none;
	font-weight: 600;
}

.agenda-prochain-evenement a:hover {
	text-decoration: underline;
}

.actualites-col-articles h3 {
	color: #2c3e50;
	font-size: 1.3em;
	margin-bottom: 20px;
	border-bottom: 2px solid #ec971f;
	padding-bottom: 10px;
}

/* Événements Agenda */
.agenda-evenements {
	padding: 20px;
	background-color: #fff;
	border-radius: 4px;
	min-height: 300px;
}

.agenda-titre {
	color: #2c3e50;
	font-size: 1.1em;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #3498db;
	font-weight: 600;
}

.agenda-calendrier {
	margin-bottom: 25px;
	padding: 15px;
	background-color: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
}

.agenda-item {
	display: flex;
	gap: 15px;
	padding: 15px;
	border-bottom: 1px solid #e0e0e0;
	transition: background-color 0.2s ease;
}

.agenda-item:last-child {
	border-bottom: none;
}

.agenda-item:hover {
	background-color: #f5f5f5;
}

.agenda-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #3498db;
	color: white;
	padding: 10px 15px;
	border-radius: 4px;
	min-width: 60px;
	font-weight: bold;
	flex-shrink: 0;
}

.agenda-date .day {
	font-size: 1.5em;
	line-height: 1;
}

.agenda-date .month {
	font-size: 0.8em;
	text-transform: uppercase;
}

.agenda-event {
	flex: 1;
}

.agenda-event h4 {
	margin: 0 0 5px 0;
	font-size: 1em;
}

.agenda-event h4 a {
	color: #3498db;
	text-decoration: none;
	font-weight: 500;
}

.agenda-event h4 a:hover {
	text-decoration: underline;
}

.event-desc {
	margin: 0;
	color: #666;
	font-size: 0.9em;
	line-height: 1.4;
}

.agenda-empty,
.articles-empty {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

.agenda-unavailable {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

/* Colonne Articles */
.article-card {
	background-color: #fff;
	padding: 20px;
	border-radius: 4px;
	transition: box-shadow 0.3s ease;
}

.article-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-header {
	margin-bottom: 15px;
}

.article-logo {
	margin-bottom: 15px;
	border-radius: 4px;
	overflow: hidden;
}

.article-logo a {
	display: block;
}

.article-logo img {
	width: 100%;
	height: auto;
	display: block;
}

.article-titre {
	color: #2c3e50;
	margin: 15px 0 8px 0;
	font-size: 1.1em;
}

.article-titre a {
	color: #3498db;
	text-decoration: none;
	font-weight: 500;
}

.article-titre a:hover {
	text-decoration: underline;
}

.article-meta {
	color: #999;
	font-size: 0.9em;
	margin-bottom: 12px;
}

.article-chapo {
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
	font-size: 0.95em;
}

.article-lien {
	margin-top: 15px;
}

.btn-lire-suite {
	display: inline-block;
	color: #3498db;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.btn-lire-suite:hover {
	color: #2980b9;
	text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	text-align: center;
	padding: 20px;
	margin-top: auto;
}

footer p {
	margin: 0;
}

.footer-separator {
	margin: 0 8px;
	opacity: 0.7;
}

.footer-legal-link {
	color: #ecf0f1;
	text-decoration: underline;
	font-weight: 500;
}

.footer-legal-link:hover {
	color: #b9dcf5;
}

.legal-page {
	background-color: #fff;
	padding: 40px 20px;
	flex: 1;
}

.legal-container {
	max-width: 900px;
	margin: 0 auto;
	line-height: 1.7;
	color: #2c3e50;
}

.legal-container h1 {
	font-size: 2em;
	margin-bottom: 24px;
}

.legal-container h2 {
	font-size: 1.25em;
	margin: 26px 0 10px;
	color: #1f3b56;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0e0;
}

.legal-container h3 {
	font-size: 1.05em;
	margin: 20px 0 10px;
	color: #1f3b56;
}

.legal-container p {
	margin: 0 0 14px 0;
}

.legal-container a {
	color: #3498db;
	text-decoration: none;
}

.legal-container a:hover {
	text-decoration: underline;
}

.legal-container .legal-maj {
	margin-top: 34px;
	padding-top: 14px;
	border-top: 1px solid #e0e0e0;
	font-size: 0.9em;
	color: #888;
}

.legal-container table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0 22px;
	font-size: 0.92em;
}

.legal-container th,
.legal-container td {
	border: 1px solid #e0e0e0;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.legal-container thead th {
	background: #2c3e50;
	color: #fff;
	font-weight: 600;
}

.legal-container tbody tr:nth-child(even) td {
	background: #f7f9fa;
}

@media (max-width: 700px) {
	.legal-container table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.banniere-principale {
		min-height: 100svh;
	}

	.menu-principal {
		position: relative;
	}

	.menu-toggle {
		display: flex;
	}
	
	.menu-items {
		display: none;
		flex-direction: column;
		align-items: stretch;
		background-color: rgba(44, 62, 80, 0.98);
	}

	.menu-principal.is-open .menu-items {
		display: flex;
	}
	
	.menu-items li {
		max-width: none;
		border-right: none;
		border-bottom: 1px solid #34495e;
	}
	
	.menu-items li:last-child {
		border-bottom: none;
	}

	.menu-link {
		justify-content: flex-start;
		padding: 14px 18px;
	}

	.banniere-overlay {
		padding-top: 98px;
	}

	.banniere-overlay h1 {
		font-size: clamp(1.45rem, 6vw, 1.95rem);
		top: calc(30% + 58px);
	}

	.banniere-cartes {
		padding: 0 14px 22px;
	}
	
	.vous-etes-container {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.vous-etes-box {
		min-height: 132px;
		padding: 18px;
	}
	
	.actualites-container {
		grid-template-columns: 1fr;
	}
	
	.section-actualites h2 {
		font-size: 1.5em;
	}

	.legal-container h1 {
		font-size: 1.6em;
	}

	.legal-container h2 {
		font-size: 1.1em;
	}
}

@media (min-width: 769px) {
	body.page-accueil {
		height: 100vh;
		overflow: hidden;
		background-color: #0f2338;
	}

	body.page-accueil .banniere-principale {
		min-height: 0;
		flex: 1;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.vous-etes-container {
		grid-template-columns: repeat(2, minmax(220px, 1fr));
	}
}
