.home-hero {
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: transparent;
}

.home-title {
	font-size: 3.2rem;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	margin-bottom: 1.2rem;
}

.home-title-green {
	color: var(--brand-primary);
	display: block;
}

.home-desc {
	color: #bfc7d5;
	font-size: 1.25rem;
	font-weight: 400;
	margin-bottom: 2.2rem;
}

.home-actions {
	margin-top: 2rem;
	display: flex;
	flex-direction: row;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-home-primary {
	background: var(--brand-primary);
	color: #fff;
	font-weight: 600;
	border-radius: var(--radius-global);
	padding: 0.7rem 2.2rem;
	font-size: 1.1rem;
	border: none;
	transition: background .2s;
}
.btn-home-primary:hover,
.btn-home-primary:focus {
	background: #1fb55b;
	color: #fff;
}

.btn-home-secondary {
	background: transparent;
	color: #fff;
	font-weight: 600;
	border-radius: 5px;
	padding: 0.7rem 2.2rem;
	font-size: 1.1rem;
	border: 1.5px solid #232627;
	transition: border-color .2s, color .2s, background .2s;
}
.btn-home-secondary:hover,
.btn-home-secondary:focus {
	color: var(--brand-primary);
	border-color: var(--brand-primary);
	background: rgba(34,196,99,0.05);
}

/* Section fonctionnalités */
.features-section {
	padding: 64px 0 64px 0;
	background: transparent;
}

.features-title {
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: .5rem;
}

.features-subtitle {
	color: #bfc7d5;
	font-size: 1.15rem;
	margin-bottom: 2.5rem;
}

/* Les 3 box ont la même hauteur */
.features-section .row {
	align-items: stretch;
}

.feature-card {
	background: rgba(24,26,27,0.7);
	border: 1px solid #232627;
	border-radius: var(--radius-global);
	padding: 2.5rem 1.5rem 2rem 1.5rem;
	box-shadow: 0 2px 16px 0 rgba(0,0,0,0.04);
	transition: border-color .2s, box-shadow .2s;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.feature-card:hover {
	border-color: var(--brand-primary);
	box-shadow: 0 4px 24px 0 rgba(34,196,99,0.08);
}

.feature-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #173e2a;
	border-radius: var(--radius-global);
	color: var(--brand-primary);
	font-size: 2.8rem; /* plus gros */
	margin-bottom: 1rem;
}

.feature-name {
	font-size: 1.35rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: .7rem;
}

.feature-desc {
	color: #bfc7d5;
	font-size: 1.05rem;
	margin-bottom: 0;
}



/* Zone vidéo + box overlay */
.video-marquee-zone {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	overflow: hidden;
}

/* Vidéos défilantes */
.video-marquee-wrapper {
	width: 100vw;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.video-marquee-track {
	display: flex;
	align-items: center;
	gap: 24px;
	animation: marquee 22s linear infinite;
	will-change: transform;
}

.video-marquee-thumb {
	width: 455px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-global);
}

@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@media (max-width: 991.98px) {
	.upload-green-box {
		width: 98vw;
		padding: 1.5rem 0.7rem 1.2rem 0.7rem;
		margin-top: 60px;
	}
	.video-marquee-section {
		height: 120px;
	}
	.video-marquee-thumb {
		width: 200px;
		height: 120px;
		border-radius: 10px;
	}
	.video-marquee-track {
		gap: 12px;
		animation-duration: 14s;
	}
}

/* Vidéo de fond défilante */
.video-bg-section {
	width: 100%;
	overflow: hidden;
	position: relative;
	height: 220px;
	margin-bottom: 2rem;
}

.video-bg-wrapper {
	width: 100vw;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.video-bg {
	position: absolute;
	left: 0;
	top: 0;
	width: 200vw; /* 2x la largeur pour l'effet défilant */
	height: 100%;
	object-fit: cover;
	animation: video-scroll 30s linear infinite;
	opacity: 0.18;
	pointer-events: none;
}

@keyframes video-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50vw); }
}

/* Boutons overlay sur la vidéo défilante */
.home-actions-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

/* Box centrale upload */
.upload-box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--brand-primary);
	color: #ffffff;
	border-radius: var(--radius-global);
	box-shadow: 0 4px 32px 0 rgba(0,0,0,0.10);
	padding: 2.5rem 2.2rem 2rem 2.2rem;
	width: 35%;
	max-width: 95vw;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.upload-box-title {
	font-size: 1.45rem;
	font-weight: 600;
	margin-bottom: .7rem;
}

.upload-box-sub {
	color: #ffffff;
	font-size: 1.05rem;
	margin-bottom: 1.3rem;
}

.btn-upload-box {
	background: #ffffff;
	color: var(--brand-primary);
	font-weight: 600;
	border-radius: 8px;
	padding: 0.7rem 1.6rem;
	font-size: 1.08rem;
	border: none;
	box-shadow: 0 2px 8px 0 rgba(34,196,99,0.08);
	margin-bottom: 1.2rem;
	transition: background .2s;
	text-decoration: none;
	display: inline-block;
}
.btn-upload-box:hover,
.btn-upload-box:focus {
	background: #1fb55b;
	color: #fff;
}

.upload-box-note {
	color: #ffffff;
	font-size: .98rem;
	margin-bottom: 1.1rem;
}

.upload-box-policy {
	color: #ffffff;
	font-size: .93rem;
	text-align: center;
}
.upload-box-policy a {
	color: #ffffff;
	text-decoration: underline;
}

.upload-box.dragover {
	background: #1fb55b !important;
	color: #fff !important;
}

/* Améliorations visuelles pour la box d'upload */
.upload-box {
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.upload-box-allowed {
	color: rgba(255,255,255,0.92);
	font-size: 0.95rem;
	margin-top: 0.35rem;
	margin-bottom: 0.6rem;
}

/* Liste des fichiers */
.file-list {
	list-style: none;
	padding-left: 0.8rem;
	margin: 0;
	color: #fff;
}
.file-item {
	padding: 6px 0;
	border-bottom: 1px dashed rgba(255,255,255,0.06);
	font-size: 0.98rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.file-item .file-size {
	color: rgba(255,255,255,0.65);
	font-size: 0.85rem;
	margin-left: 8px;
}

/* Message d'erreur */
#fileList.file-error {
	background: rgba(255, 60, 60, 0.06);
	border: 1px solid rgba(255,60,60,0.18);
	color: #ffd6d6;
	padding: 10px;
	border-radius: 8px;
}
#fileList.file-error strong { color: #ffb5b5; }
#fileList.file-error ul { margin: 6px 0 0 1rem; color: #ffd6d6; }

/* Etat dragover (plus propre qu'inline style) */
.upload-box.dragover {
	background: linear-gradient(90deg, rgba(31,181,91,0.95), rgba(23,150,68,0.95));
	box-shadow: 0 8px 36px rgba(31,181,91,0.14);
	transform: translateY(-4px);
}

/* ========================= */
/* ===== MEDIA QUERIES ===== */
/* ========================= */

/* Mobile (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .home-hero {
        min-height: 75vh;
    }
	.home-title {
		font-size: 2.2rem;
	}
	.home-desc {
		font-size: 1.05rem;
	}
	.home-actions {
        flex-direction: column !important;
		gap: 0.7rem;
	}
	.btn-home-primary,
	.btn-home-secondary {
		width: auto;
		min-width: 150px;
		padding: 0.7rem 1.2rem;
		font-size: 1rem;
		text-align: center;
		justify-content: center;
	}
	.features-section {
		padding: 48px 0 24px 0;
	}
	.features-title {
		font-size: 1.5rem;
	}
	.feature-card {
		padding: 2rem 1rem 1.5rem 1rem;
	}
	.feature-icon {
		width: 44px;
		height: 44px;
		font-size: 2rem;
	}
	.video-marquee-wrapper {
		display: none !important;
	}
	.upload-box {
		width: 90vw;
		max-width: 98vw;
		padding: 1.2rem 0.5rem 1rem 0.5rem;
		min-height: 260px;
		position: static !important;
		transform: none !important;
		margin-left: auto;
		margin-right: 12px;
		box-sizing: border-box;
	}
	.upload-box-title {
		font-size: 1.2rem;
	}
	.btn-upload-box {
		font-size: 1.05rem;
		padding: 0.8rem 1.2rem;
	}
	.video-marquee-zone {
		padding: 25px 0 !important;
	}
	.upload-green-box {
		width: 98vw;
		padding: 1.5rem 0.7rem 1.2rem 0.7rem;
		margin-top: 60px;
	}
	.video-marquee-section {
		height: 120px;
	}
	.video-marquee-thumb {
		width: 200px;
		height: 120px;
		border-radius: 10px;
	}
	.video-marquee-track {
		gap: 12px;
		animation-duration: 14s;
	}
	.video-bg-section {
		height: 120px;
	}
	.video-bg {
		width: 300vw;
	}
}

/* Tablette (min-width: 600px and max-width: 991.98px) */
@media (min-width: 600px) and (max-width: 991.98px) {
    .home-hero {
        min-height: 75vh;
    }
	.upload-box {
		width: 70vw;
		max-width: 540px;
		margin-left: auto;
		margin-right: auto;
		padding: 2.5rem 2rem 2rem 2rem;
		box-sizing: border-box;
	}
}

/* iPad Pro et tablettes larges (min-width: 1024px and max-width: 1199.98px) */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .home-hero {
        min-height: 75vh;
    }
	.upload-box {
		width: 70% !important;
	}
}

/* Nouvelles sections et images */
.section-img-demo {
	max-width: 70%;
	/* box-shadow: 0 4px 24px 0 rgba(34,196,99,0.10); */
	border-radius: 12px;
}

.section-img-right, .section-img-left {
	background: rgba(24,26,27,0.7);
	border-radius: var(--radius-global);
	margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
	.section-img-right .row,
	.section-img-left .row {
		flex-direction: column !important;
		text-align: center;
	}
	.section-img-right .col-md-6,
	.section-img-left .col-md-6 {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	.section-img-right .col-md-6 .btn-home-primary,
	.section-img-left .col-md-6 .btn-home-primary {
		margin-bottom: 2rem;
	}
	.section-img-demo {
		max-width: 100%;
		margin-bottom: 1.5rem;
	}
}

/* CTA Bottom Section */
.cta-bottom-section {
	background: var(--brand-primary);
	color: #fff;
}

.cta-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #fff;
	position: relative;
	display: inline-block;
}

.cta-title .cta-underline {
	display: block;
	width: 120px;
	height: 5px;
	background: #fff;
	border-radius: 3px;
	margin: 0.3rem auto 0 auto;
}

.cta-desc {
	font-size: 1.15rem;
	color: #fff;
}

.cta-bottom-section .btn-primary {
	background: #fff;
	color: var(--brand-primary);
	border: none;
	border-radius: 8px;
	font-weight: 600;
	padding: 0.7rem 2.2rem;
	font-size: 1.1rem;
	box-shadow: 0 2px 8px 0 rgba(22,119,250,0.08);
	transition: background .2s, color .2s;
}

.cta-bottom-section .btn-primary:hover,
.cta-bottom-section .btn-primary:focus {
	background: #1fb55b;
	color: #fff;
}

@media (max-width: 991.98px) {
	.cta-title {
		font-size: 1.4rem;
	}
	.cta-desc {
		font-size: 1rem;
	}
	.cta-title .cta-underline {
		width: 70px;
		height: 4px;
	}
}