/* ========================================
   POTAMOT - DESIGN MODERNES
   ======================================== */

body {
	background: white;
	color: #333;
}

/* ===== LIENS ===== */
a {
	color: #1a6b43 !important;
	text-decoration: none !important;
	border-bottom: 1px dashed #1a6b43 !important;
	padding: 2px 4px 2px 4px !important;
	display: inline-block !important;
}

a:hover {
	color: white !important;
	background: #1a6b43 !important;
	border-bottom: 1px dashed #1a6b43 !important;
}

a:hover * {
	color: white !important;
}

/* Pastilles (chiffres, lettres) - pas de dashed underline */
.pot-badge-link {
	border-bottom: none !important;
}

.pot-badge-link:hover {
	border-bottom: none !important;
}

/* Liens spécifiquement dans les tables */
table a {
	color: #1a6b43 !important;
	border-bottom: 1px dashed #1a6b43 !important;
	padding: 2px 4px 2px 4px !important;
	display: inline-block !important;
}

table a:hover {
	color: white !important;
	background: #1a6b43 !important;
	border-bottom: 1px dashed #1a6b43 !important;
}

/* ===== DESIGN 1: CARDS ÉPURÉES ===== */
.pot-hero-section1 {
	background: linear-gradient(135deg, #0d5543 0%, #1a6b43 100%);
	color: white;
	padding: 60px 20px;
	text-align: center;
	border-radius: 0;
	margin-bottom: 50px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pot-hero-section1 h1 {
	font-size: 3em;
	font-weight: 700;
	margin-bottom: 15px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.pot-hero-section1 p {
	font-size: 1.2em;
	opacity: 0.95;
	margin-bottom: 0;
}

.pot-version-badge {
	display: inline-block;
	background: rgba(255,255,255,0.3);
	padding: 8px 16px;
	border-radius: 20px;
	margin-bottom: 20px;
	font-weight: 600;
}

.pot-cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
	padding: 40px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.pot-card {
	background: white;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	border: 1px solid rgba(0,0,0,0.05);
	position: relative;
}

.pot-card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pot-card-icon {
	font-size: 3em;
	margin-bottom: 20px;
	color: #0d5543;
	transition: transform 0.3s ease;
}

.pot-card:hover .pot-card-icon {
	transform: scale(1.2) rotate(10deg);
}

.pot-card-title {
	font-size: 1.5em;
	font-weight: 700;
	margin-bottom: 15px;
	color: #333;
}

.pot-card-desc {
	color: #666;
	margin-bottom: 25px;
	line-height: 1.6;
	font-size: 0.95em;
}

.pot-form-group {
	margin-bottom: 15px;
}

.pot-form-group input {
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 1em;
	transition: all 0.3s ease;
}

.pot-form-group input:focus {
	border-color: #0d5543;
	box-shadow: 0 0 0 3px rgba(13, 85, 67, 0.1);
	outline: none;
}

.pot-btn {
	background: linear-gradient(135deg, #0d5543 0%, #1a6b43 100%);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	font-size: 1em;
}

.pot-btn:hover {
	transform: scale(1.02);
	box-shadow: 0 10px 25px rgba(13, 85, 67, 0.3);
	color: white;
	text-decoration: none;
}

.pot-btn:active {
	transform: scale(0.98);
}

/* Bouton de déconnexion */
.pot-btn-logout {
	background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-block;
	font-size: 1em;
	text-decoration: none;
	margin-bottom: 10px;
}

.pot-btn-logout:hover {
	transform: scale(1.02);
	box-shadow: 0 10px 25px rgba(217, 83, 79, 0.3);
	color: white;
	text-decoration: none;
}

.pot-btn-logout:active {
	transform: scale(0.98);
}

/* ===== CONTENEUR PRINCIPAL ===== */
.pot-main-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	padding: 20px 20px 40px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

/* ===== CONTENEURS - PAR DÉFAUT AVEC STYLE ===== */
.container {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(13, 85, 67, 0.1);
}

/* ===== PREMIER CONTAINER TRANSPARENT (titre) ===== */
.pot-hero-section2 + .container {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	margin-bottom: 0;
}

/* ===== DESIGN 2: HERO MINIMALISTE ===== */
.pot-hero-section2 {
	background: #eef5f2;
	color: #333;
	padding: 15px 40px;
	margin-bottom: 10px;
	text-align: center;
	min-height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: visible;
	border-radius: 12px;
	box-shadow: none;
	border: none;
}

.pot-hero-section2::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 500px;
	height: 500px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	animation: float 6s ease-in-out infinite;
}

.pot-hero-section2::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -30%;
	width: 400px;
	height: 400px;
	background: rgba(255,255,255,0.08);
	border-radius: 50%;
	animation: float 8s ease-in-out infinite 1s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(30px, -30px); }
}

.pot-hero-content {
	position: relative;
	z-index: 1;
}

.pot-hero-section2 h1 {
	font-size: 1.8em;
	font-weight: 800;
	margin-bottom: 5px;
	color: #0d5543;
	letter-spacing: -1px;
}

.pot-hero-section2 p {
	font-size: 0.95em;
	color: #666;
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.4;
}

.pot-hero-section2 p:first-child {
	margin-bottom: 3px;
}

.pot-glassmorphic-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
	position: relative;
	z-index: 2;
}

.pot-glassmorphic-cards .pot-glass-card:nth-child(3) {
	grid-column: 1 / -1;
}

.pot-glass-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 20px;
	padding: 35px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	position: relative;
}

.pot-glass-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.95);
	border-color: rgba(255, 255, 255, 0.8);
}

.pot-glass-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.pot-glass-card-icon {
	font-size: 1.6em;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0d5543, #1a6b43);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	flex-shrink: 0;
	min-width: 32px;
	height: 32px;
}

.pot-glass-card h3 {
	font-size: 1.1em;
	font-weight: 700;
	margin: 0;
	color: #333;
}

.pot-glass-card p {
	color: #666;
	margin-bottom: 20px;
	font-size: 0.95em;
	line-height: 1.6;
}

/* ===== DESIGN 3: TABS ===== */
.pot-tabs-wrapper {
	padding: 40px 20px;
	max-width: 1000px;
	margin: 0 auto;
}

.pot-tabs-header {
	text-align: center;
	margin-bottom: 40px;
}

.pot-tabs-header h1 {
	font-size: 2.5em;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
}

.pot-tabs-header p {
	color: #666;
	font-size: 1.1em;
}

.pot-nav-tabs {
	border-bottom: 2px solid #e0e0e0;
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.pot-nav-tabs .nav-link {
	color: #666;
	border: none;
	padding: 12px 25px;
	font-weight: 600;
	font-size: 1em;
	border-radius: 8px 8px 0 0;
	transition: all 0.3s ease;
	position: relative;
}

.pot-nav-tabs .nav-link:hover {
	color: #0d5543;
	background: rgba(102, 126, 234, 0.05);
}

.pot-nav-tabs .nav-link.active {
	color: white;
	background: linear-gradient(135deg, #667eea, #1a6b43);
	border-bottom-color: transparent;
}

.pot-tab-content {
	background: white;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.05);
}

.pot-tab-pane {
	animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===== DESIGN 4: MASONRY GRID ===== */
.pot-masonry-wrapper {
	padding: 40px 20px;
	max-width: 1400px;
	margin: 0 auto;
}

.pot-masonry-header {
	text-align: center;
	margin-bottom: 50px;
}

.pot-masonry-header h1 {
	font-size: 2.5em;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
}

.pot-masonry-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
	grid-auto-flow: dense;
}

.pot-masonry-item {
	background: white;
	border-radius: 15px;
	padding: 35px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	border: 2px solid transparent;
	position: relative;
	display: flex;
	flex-direction: column;
}

.pot-masonry-item:nth-child(1) {
	grid-column: span 1;
	border-left: 5px solid #667eea;
}

.pot-masonry-item:nth-child(2) {
	grid-column: span 1;
	border-left: 5px solid #1a6b43;
}

.pot-masonry-item:nth-child(3) {
	grid-column: span 1;
	border-left: 5px solid #f093fb;
}

.pot-masonry-item:hover {
	transform: translateY(-15px) scale(1.02);
	box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.pot-masonry-icon {
	font-size: 2.2em;
	margin-bottom: 20px;
}

.pot-masonry-item:nth-child(1) .pot-masonry-icon { color: #0d5543; }
.pot-masonry-item:nth-child(2) .pot-masonry-icon { color: #1a6b43; }
.pot-masonry-item:nth-child(3) .pot-masonry-icon { color: #f093fb; }

.pot-masonry-title {
	font-size: 1.4em;
	font-weight: 700;
	margin-bottom: 15px;
	color: #333;
}

.pot-masonry-desc {
	color: #666;
	margin-bottom: 25px;
	flex-grow: 1;
	line-height: 1.6;
}

/* ===== DESIGN 5: ONE-PAGE SCROLLABLE ===== */
.pot-fullpage-wrapper {
	min-height: 100vh;
	overflow-y: scroll;
	scroll-behavior: smooth;
}

.pot-scroll-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	position: relative;
	overflow: hidden;
}

.pot-scroll-section:nth-child(1) {
	background: linear-gradient(135deg, #0d5543 0%, #1a6b43 100%);
	color: white;
}

.pot-scroll-section:nth-child(2) {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: white;
}

.pot-scroll-section:nth-child(3) {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: white;
}

.pot-scroll-section:nth-child(4) {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	color: white;
}

.pot-scroll-content {
	max-width: 600px;
	text-align: center;
	animation: slideInUp 0.8s ease;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pot-scroll-content h1 {
	font-size: 3em;
	font-weight: 800;
	margin-bottom: 20px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.pot-scroll-content p {
	font-size: 1.2em;
	margin-bottom: 30px;
	opacity: 0.95;
	line-height: 1.8;
}

.pot-scroll-form {
	background: rgba(255,255,255,0.95);
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	margin-top: 30px;
}

.pot-scroll-form input {
	background: white;
	border: 2px solid #e0e0e0;
	padding: 15px;
	border-radius: 8px;
	font-size: 1em;
	margin-bottom: 15px;
	width: 100%;
	transition: all 0.3s ease;
}

.pot-scroll-form input:focus {
	border-color: #0d5543;
	outline: none;
	box-shadow: 0 0 0 4px rgba(13, 85, 67, 0.1);
}

.pot-scroll-form button {
	background: linear-gradient(135deg, #667eea, #1a6b43);
	color: white;
	border: none;
	padding: 15px 40px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1em;
	cursor: pointer;
	width: 100%;
	transition: all 0.3s ease;
}

.pot-scroll-form button:hover {
	transform: scale(1.02);
	box-shadow: 0 10px 30px rgba(13, 85, 67, 0.3);
}

/* Scroll indicator */
.pot-scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	animation: bounce 2s infinite;
	font-size: 1.5em;
	opacity: 0.8;
}

@keyframes bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== NAVBAR MODERNE ===== */
.pot-navbar {
	background: linear-gradient(135deg, #0d5543 0%, #1a6b43 50%, #0e6e5e 100%);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.8rem 0;
}

.pot-navbar .navbar-brand {
	font-weight: 800;
	font-size: 1.5em;
	color: white !important;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-right: 2rem;
}

.pot-navbar .navbar-brand:hover {
	color: #a8e6da !important;
	text-shadow: 0 0 10px rgba(168, 230, 218, 0.5);
}

.pot-navbar .navbar-brand img {
	margin-right: 8px;
	filter: brightness(0) invert(1);
}

.pot-navbar .navbar-nav {
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pot-navbar .nav-link {
	color: rgba(255, 255, 255, 0.9) !important;
	font-weight: 500;
	font-size: 0.95em;
	padding: 0.5rem 1rem !important;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
}

.pot-navbar .nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: #a8e6da;
	transform: translateX(-50%);
	transition: width 0.3s ease;
}

.pot-navbar .nav-link:hover {
	color: white !important;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
}

.pot-navbar .nav-link:hover::after {
	width: 60%;
}

.pot-navbar .nav-link.active {
	color: white !important;
	background: rgba(255, 255, 255, 0.15);
	border-bottom: 2px solid #a8e6da;
}

.pot-navbar .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.3) !important;
}

.pot-navbar .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.pot-navbar .collapse {
	margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.pot-hero-section1 h1,
	.pot-hero-section2 h1 {
		font-size: 2em;
	}

	.pot-cards-container,
	.pot-glassmorphic-cards,
	.pot-masonry-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.pot-hero-section2 {
		margin-bottom: 30px;
	}

	.pot-glassmorphic-cards {
		margin: 0 auto 40px;
	}

	.pot-nav-tabs {
		flex-direction: column;
		align-items: stretch;
	}

	.pot-nav-tabs .nav-link {
		border-radius: 8px;
		margin-bottom: 10px;
	}

	.pot-scroll-content h1 {
		font-size: 2em;
	}

	.pot-scroll-section {
		min-height: auto;
		padding: 60px 20px;
	}
}

/* ===== UTILITIES ===== */
.pot-mt-40 { margin-top: 40px; }
.pot-mb-20 { margin-bottom: 20px; }
.pot-text-center { text-align: center; }

/* Animations pour les formes */
.pot-form-group input::placeholder {
	color: #999;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.pot-card,
	.pot-glass-card,
	.pot-tab-content,
	.pot-masonry-item {
		background: #1e1e1e;
		color: #e0e0e0;
	}

	.pot-card-title,
	.pot-glass-card h3,
	.pot-masonry-title {
		color: #f0f0f0;
	}

	.pot-card-desc,
	.pot-glass-card p,
	.pot-masonry-desc {
		color: #b0b0b0;
	}

	.pot-nav-tabs {
		border-bottom-color: #333;
	}

	.pot-form-group input {
		background: #2e2e2e;
		border-color: #444;
		color: #e0e0e0;
	}

	.pot-scroll-form {
		background: rgba(30, 30, 30, 0.95);
	}

	.pot-scroll-form input {
		background: #2e2e2e;
		color: #e0e0e0;
		border-color: #444;
	}
}

/* ===== FIX POTMOT.PHP & POTTIRSOL.PHP ===== */
/* Ajoute du padding-top pour que la navbar fixée (fixed-top) ne cache pas le contenu */
body {
	padding-top: 80px;
}

/* Conteneurs spécifiques pour potmot.php avec un look moderne (NE PAS appliquer à tous les containers) */
/* Ce style est à ajouter directement aux pages qui en ont besoin via une classe spécifique */

/* Enlever la carte englobante (page d'accueil et autres pages avec fPotSol2) */
.container:first-of-type {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	box-shadow: none !important;
}

/* Exception pour les pages qui VEULENT afficher les containers normalement */
body.pot-show-containers .container:first-of-type {
	background: rgba(255, 255, 255, 0.95) !important;
	border: 1px solid rgba(13, 85, 67, 0.1) !important;
	padding: 25px !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Améliorer l'espacement des éléments */
.container .row {
	margin-bottom: 15px;
}

.container h2,
.container h3 {
	color: #0d5543;
	font-weight: 600;
	margin-bottom: 15px;
}

/* Links modernes */
.container a {
	color: #0d5543;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s ease;
}

.container a:hover {
	border-bottom-color: #0d5543;
	color: #1a6b43;
}

/* ====================================================================
   BADGES ET PASTILLES - STYLE UNIFIÉ
   ==================================================================== */

/* Conteneur des badges */
.pot-badge-container {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: flex-start;
	padding: 15px 0;
	margin: 0;
	min-height: 50px;
	line-height: 1.6;
}

.pot-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 5px 5px 5px 0;
	padding: 12px 14px;
	background: #0d5543;
	color: white;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1;
	vertical-align: middle;
	box-sizing: border-box;
	min-height: auto;
	height: auto;
	outline: 2px solid #333 !important;
	outline-offset: 3px !important;
}

.pot-badge.secondary {
	background: #666;
	outline: 2px solid #333 !important;
	outline-offset: 3px !important;
}

.pot-badge.success {
	background: #28a745;
	color: white !important;
	outline: none !important;
}

.pot-badge.info {
	background: #17a2b8;
	outline: 2px solid #333 !important;
	outline-offset: 3px !important;
}

.pot-badge.warning {
	background: #ffc107;
	color: #333;
	outline: 2px solid #333 !important;
	outline-offset: 3px !important;
}

.pot-badge.danger {
	background: #dc3545;
	outline: 2px solid #333 !important;
	outline-offset: 3px !important;
}

/* Badges qui sont des liens : override du style global a:hover */
a.pot-badge {
	border-bottom: none !important;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a.pot-badge:hover {
	color: inherit !important;
	background: inherit !important;
	border-bottom: none !important;
	text-decoration: none !important;
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 6px 16px rgba(13, 85, 67, 0.2);
	opacity: 1;
}

/* Badge blanc avec outline (ne peut pas être coupé) */
.pot-badge-white {
	background: white !important;
	color: #333 !important;
	border: none !important;
	outline: 2px solid #333 !important;
	outline-offset: 3px !important;
}

.pot-badge-white:hover {
	background: #f5f5f5 !important;
	outline-color: #666 !important;
	color: #333 !important;
}
