/* =============================================================
   CPP Aide — Section Aide (PDFs + Vidéos explicatives)
   ============================================================= */

.cpp-aide-wrapper {
	margin: 2rem 0;
}

/* --- Sections (PDFs / Vidéos) --- */
.cpp-aide-section {
	margin-bottom: 3rem;
}

.cpp-aide-section-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 1.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 3px solid #c00; /* rouge Porsche */
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cpp-aide-icon {
	font-size: 1.3rem;
}

/* ---------------------------------------------------------------
 * PDFs — liste avec bouton téléchargement
 * ------------------------------------------------------------- */

.cpp-aide-pdf-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.cpp-aide-pdf-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-left: 4px solid #c00;
	border-radius: 6px;
	padding: 1rem 1.25rem;
	transition: box-shadow 0.2s ease;
}

.cpp-aide-pdf-item:hover {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.cpp-aide-pdf-info {
	flex: 1;
	min-width: 0;
}

.cpp-aide-pdf-title {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 0.2rem;
}

.cpp-aide-pdf-desc {
	margin: 0.3rem 0 0;
	font-size: 0.88rem;
	color: #666;
	line-height: 1.5;
}

.cpp-aide-pdf-desc p {
	margin: 0;
}

.cpp-aide-pdf-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #c00;
	color: #fff;
	text-decoration: none;
	padding: 0.5rem 1.1rem;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.cpp-aide-pdf-btn:hover {
	background: #a00;
	color: #fff;
	text-decoration: none;
}

/* ---------------------------------------------------------------
 * Vidéos — grille responsive
 * ------------------------------------------------------------- */

.cpp-aide-video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.cpp-aide-video-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Embed 16/9 */
.cpp-video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #000;
}

.cpp-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.cpp-aide-video-info {
	padding: 1rem 1.25rem;
}

.cpp-aide-video-title {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 0.3rem;
}

.cpp-aide-video-desc {
	margin: 0;
	font-size: 0.88rem;
	color: #666;
	line-height: 1.5;
}

.cpp-aide-video-desc p {
	margin: 0;
}

/* --- Message connexion requise --- */
.cpp-aide-login-required {
	text-align: center;
	padding: 3rem 2rem;
	background: #f9f9f9;
	border: 1px solid #e8e8e8;
	border-left: 4px solid #c00;
	border-radius: 8px;
	margin: 2rem 0;
}

.cpp-aide-login-required p {
	font-size: 1.05rem;
	color: #444;
	margin: 0 0 1.25rem;
}

.cpp-aide-login-btn {
	display: inline-block;
	background: #c00;
	color: #fff;
	text-decoration: none;
	padding: 0.6rem 1.5rem;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	transition: background 0.2s ease;
}

.cpp-aide-login-btn:hover {
	background: #a00;
	color: #fff;
	text-decoration: none;
}

/* --- Message vide --- */
.cpp-aide-empty {
	color: #666;
	font-style: italic;
	text-align: center;
	padding: 2.5rem;
	background: #f9f9f9;
	border-radius: 8px;
}

/* --- Responsive tablette : vidéos en 1 colonne --- */
@media (max-width: 768px) {
	.cpp-aide-video-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Responsive mobile : PDF en colonne --- */
@media (max-width: 560px) {
	.cpp-aide-pdf-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.cpp-aide-pdf-btn {
		align-self: flex-start;
	}
}
