feat: add reset-password page and update contest dates

- Add reset-password page to handle password reset flow
- Fix forgot-password to call real API
- Update contest dates (validation: Dec 1-31, recovery: Dec 1 - Jan 31)
- Update draw date to Feb 1, 2026
- Improve GamePeriod and GrandPrize components design
- Remove "livré chez vous" text

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
soufiane 2025-12-02 16:15:30 +01:00
parent cc0c2e23ff
commit e0330d4f28
7 changed files with 374 additions and 93 deletions

View File

@ -1,23 +1,41 @@
"use client";
import { useState } from "react";
import Link from "next/link";
import { ROUTES } from "@/utils/constants";
import { ROUTES, API_BASE_URL } from "@/utils/constants";
export default function ForgotPasswordPage() {
const [email, setEmail] = useState("");
const [isSubmitting, setIsSubmitting] = useState(false);
const [isSuccess, setIsSuccess] = useState(false);
const [error, setError] = useState("");
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
setIsSubmitting(true);
setError("");
// Simulation d'envoi
await new Promise(resolve => setTimeout(resolve, 1500));
try {
const response = await fetch(`${API_BASE_URL}/auth/forgot-password`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ email }),
});
console.log('Password reset email sent to:', email);
setIsSuccess(true);
setIsSubmitting(false);
const data = await response.json();
if (data.success) {
setIsSuccess(true);
} else {
setError(data.message || 'Une erreur est survenue');
}
} catch (err) {
setError('Erreur de connexion au serveur');
console.error('Forgot password error:', err);
} finally {
setIsSubmitting(false);
}
};
if (isSuccess) {
@ -27,9 +45,9 @@ export default function ForgotPasswordPage() {
{/* Title */}
<div className="text-center mb-8">
<h1 className="text-4xl font-bold text-gray-900 mb-2">Email envoyé !</h1>
<h1 className="text-4xl font-bold text-gray-900 mb-2">Email envoy&eacute; !</h1>
<p className="text-gray-600">
Vérifiez votre boîte de ception
V&eacute;rifiez votre bo&icirc;te de r&eacute;ception
</p>
</div>
@ -43,16 +61,16 @@ export default function ForgotPasswordPage() {
</div>
<h2 className="text-xl font-bold text-gray-900 mb-2">
Lien de réinitialisation envoyé
Lien de r&eacute;initialisation envoy&eacute;
</h2>
<p className="text-gray-600 mb-6">
Nous avons envoyé un lien de réinitialisation à <strong>{email}</strong>
Si cet email existe dans notre base, vous recevrez un lien de r&eacute;initialisation &agrave; <strong>{email}</strong>
</p>
<div className="bg-blue-50 border-l-4 border-blue-500 p-4 mb-6 text-left">
<p className="text-sm text-blue-800">
<strong>💡 Conseil :</strong> Si vous ne recevez pas l'email dans quelques minutes, rifiez votre dossier spam.
<strong>Conseil :</strong> Si vous ne recevez pas l&apos;email dans quelques minutes, v&eacute;rifiez votre dossier spam.
</p>
</div>
@ -60,7 +78,7 @@ export default function ForgotPasswordPage() {
href={ROUTES.LOGIN}
className="inline-flex items-center justify-center w-full bg-[#1a4d2e] hover:bg-[#2d5a3d] text-white font-bold px-8 py-4 rounded-lg transition-all"
>
Retour à la connexion
Retour &agrave; la connexion
</Link>
</div>
</div>
@ -75,9 +93,9 @@ export default function ForgotPasswordPage() {
{/* Title */}
<div className="text-center mb-8">
<h1 className="text-4xl font-bold text-gray-900 mb-2">Mot de passe oublié</h1>
<h1 className="text-4xl font-bold text-gray-900 mb-2">Mot de passe oubli&eacute;</h1>
<p className="text-gray-600">
Entrez votre email pour recevoir un lien de réinitialisation
Entrez votre email pour recevoir un lien de r&eacute;initialisation
</p>
</div>
@ -87,6 +105,13 @@ export default function ForgotPasswordPage() {
{/* Form Container */}
<div className="p-8">
{/* Error Message */}
{error && (
<div className="mb-4 p-4 bg-red-50 border-l-4 border-red-500 text-red-700">
{error}
</div>
)}
{/* Form */}
<form onSubmit={handleSubmit} className="space-y-6">
@ -112,7 +137,7 @@ export default function ForgotPasswordPage() {
disabled={isSubmitting}
className="w-full bg-[#1a4d2e] hover:bg-[#2d5a3d] disabled:bg-gray-400 text-white font-bold px-8 py-4 rounded-lg transition-all"
>
{isSubmitting ? "Envoi en cours..." : "Envoyer le lien de réinitialisation"}
{isSubmitting ? "Envoi en cours..." : "Envoyer le lien de r\u00e9initialisation"}
</button>
{/* Back to Login */}

View File

@ -60,7 +60,7 @@ export default function LotsPage() {
1 an de thé offert
</h2>
<p className="text-white/90 mb-3">
Le grand prix du tirage final : une année complète de thé premium livré chez vous
Le grand prix du tirage final : une année complète de thé premium
</p>
<div className="text-sm text-white/80">
Tirage sous contrôle d'huissier

View File

@ -69,8 +69,7 @@ export default function HomePage() {
{/* Grand Prize Banner */}
<GrandPrize
prizeAmount="360€"
drawDate={new Date('2026-01-15')}
participantsCount={15420}
drawDate={new Date('2026-02-01')}
/>
</div>
</div>

258
app/reset-password/page.tsx Normal file
View File

@ -0,0 +1,258 @@
"use client";
import { useState, useEffect, Suspense } from "react";
import { useSearchParams, useRouter } from "next/navigation";
import Link from "next/link";
import { ROUTES, API_BASE_URL } from "@/utils/constants";
function ResetPasswordForm() {
const searchParams = useSearchParams();
const router = useRouter();
const token = searchParams.get("token");
const [password, setPassword] = useState("");
const [confirmPassword, setConfirmPassword] = useState("");
const [isSubmitting, setIsSubmitting] = useState(false);
const [isSuccess, setIsSuccess] = useState(false);
const [error, setError] = useState("");
const [showPassword, setShowPassword] = useState(false);
useEffect(() => {
if (!token) {
setError("Token de réinitialisation manquant. Veuillez demander un nouveau lien.");
}
}, [token]);
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
setError("");
// Validation
if (password.length < 8) {
setError("Le mot de passe doit contenir au moins 8 caractères");
return;
}
if (password !== confirmPassword) {
setError("Les mots de passe ne correspondent pas");
return;
}
setIsSubmitting(true);
try {
const response = await fetch(`${API_BASE_URL}/auth/reset-password`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ token, password }),
});
const data = await response.json();
if (data.success) {
setIsSuccess(true);
// Redirection après 3 secondes
setTimeout(() => {
router.push(ROUTES.LOGIN);
}, 3000);
} else {
setError(data.message || 'Une erreur est survenue');
}
} catch (err) {
setError('Erreur de connexion au serveur');
console.error('Reset password error:', err);
} finally {
setIsSubmitting(false);
}
};
if (isSuccess) {
return (
<div className="min-h-screen bg-gray-50 flex items-center justify-center py-12 px-4">
<div className="w-full max-w-md">
<div className="text-center mb-8">
<h1 className="text-4xl font-bold text-gray-900 mb-2">Mot de passe modifié !</h1>
</div>
<div className="bg-white rounded-xl shadow-md p-8">
<div className="text-center">
<div className="mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4">
<svg className="w-8 h-8 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" />
</svg>
</div>
<h2 className="text-xl font-bold text-gray-900 mb-2">
Votre mot de passe a é réinitialisé
</h2>
<p className="text-gray-600 mb-6">
Vous allez être redirigé vers la page de connexion...
</p>
<Link
href={ROUTES.LOGIN}
className="inline-flex items-center justify-center w-full bg-[#1a4d2e] hover:bg-[#2d5a3d] text-white font-bold px-8 py-4 rounded-lg transition-all"
>
Se connecter maintenant
</Link>
</div>
</div>
</div>
</div>
);
}
return (
<div className="min-h-screen bg-gray-50 flex items-center justify-center py-12 px-4">
<div className="w-full max-w-md">
{/* Title */}
<div className="text-center mb-8">
<h1 className="text-4xl font-bold text-gray-900 mb-2">Nouveau mot de passe</h1>
<p className="text-gray-600">
Choisissez un nouveau mot de passe sécurisé
</p>
</div>
{/* Main Card */}
<div className="bg-white rounded-xl shadow-md overflow-hidden">
<div className="p-8">
{/* Error Message */}
{error && (
<div className="mb-4 p-4 bg-red-50 border-l-4 border-red-500 text-red-700">
{error}
</div>
)}
{/* Form */}
<form onSubmit={handleSubmit} className="space-y-6">
{/* New Password */}
<div>
<label htmlFor="password" className="block text-sm font-semibold text-gray-700 mb-2">
Nouveau mot de passe <span className="text-red-500">*</span>
</label>
<div className="relative">
<input
id="password"
type={showPassword ? "text" : "password"}
required
minLength={8}
value={password}
onChange={(e) => setPassword(e.target.value)}
placeholder="Minimum 8 caractères"
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#1a4d2e] focus:border-transparent pr-12"
disabled={!token}
/>
<button
type="button"
onClick={() => setShowPassword(!showPassword)}
className="absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-700"
>
{showPassword ? (
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" />
</svg>
) : (
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
)}
</button>
</div>
</div>
{/* Confirm Password */}
<div>
<label htmlFor="confirmPassword" className="block text-sm font-semibold text-gray-700 mb-2">
Confirmer le mot de passe <span className="text-red-500">*</span>
</label>
<input
id="confirmPassword"
type={showPassword ? "text" : "password"}
required
minLength={8}
value={confirmPassword}
onChange={(e) => setConfirmPassword(e.target.value)}
placeholder="Répétez le mot de passe"
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#1a4d2e] focus:border-transparent"
disabled={!token}
/>
</div>
{/* Password Requirements */}
<div className="bg-gray-50 p-4 rounded-lg">
<p className="text-sm font-semibold text-gray-700 mb-2">Le mot de passe doit contenir :</p>
<ul className="text-sm text-gray-600 space-y-1">
<li className={`flex items-center gap-2 ${password.length >= 8 ? 'text-green-600' : ''}`}>
{password.length >= 8 ? (
<svg className="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clipRule="evenodd" />
</svg>
) : (
<svg className="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v3.586L7.707 9.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 10.586V7z" clipRule="evenodd" />
</svg>
)}
Au moins 8 caractères
</li>
<li className={`flex items-center gap-2 ${password === confirmPassword && password.length > 0 ? 'text-green-600' : ''}`}>
{password === confirmPassword && password.length > 0 ? (
<svg className="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clipRule="evenodd" />
</svg>
) : (
<svg className="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v3.586L7.707 9.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 10.586V7z" clipRule="evenodd" />
</svg>
)}
Les mots de passe correspondent
</li>
</ul>
</div>
{/* Submit Button */}
<button
type="submit"
disabled={isSubmitting || !token}
className="w-full bg-[#1a4d2e] hover:bg-[#2d5a3d] disabled:bg-gray-400 text-white font-bold px-8 py-4 rounded-lg transition-all"
>
{isSubmitting ? "Modification en cours..." : "Réinitialiser le mot de passe"}
</button>
{/* Back to Login */}
<div className="text-center">
<Link
href={ROUTES.LOGIN}
className="text-sm text-[#1a4d2e] hover:text-[#f59e0b] hover:underline font-semibold transition-colors"
>
Retour à la connexion
</Link>
</div>
</form>
</div>
</div>
</div>
</div>
);
}
export default function ResetPasswordPage() {
return (
<Suspense fallback={
<div className="min-h-screen bg-gray-50 flex items-center justify-center">
<div className="text-center">
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-[#1a4d2e] mx-auto mb-4"></div>
<p className="text-gray-600">Chargement...</p>
</div>
</div>
}>
<ResetPasswordForm />
</Suspense>
);
}

View File

@ -47,12 +47,12 @@ export default function RulesPage() {
</p>
</div>
{/* 30 + 30 jours */}
{/* 30 + 60 jours */}
<div className="bg-gradient-to-br from-[#d4a574]/10 to-[#c4956a]/10 rounded-lg p-6 text-center border border-[#d4a574]/20 hover:shadow-lg transition-shadow">
<div className="w-16 h-16 mx-auto mb-4 bg-gradient-to-br from-[#d4a574] to-[#c4956a] rounded-full flex items-center justify-center text-3xl shadow-lg">🔄</div>
<div className="text-2xl font-bold text-[#5a5a4e] mb-2">30 + 30 jours</div>
<div className="text-2xl font-bold text-[#5a5a4e] mb-2">30 + 60 jours</div>
<p className="text-sm text-[#8a8a7a]">
Période de jeu + délai de réclamation
Validation tickets (30j) + récupération lots (60j)
</p>
</div>
@ -240,7 +240,7 @@ export default function RulesPage() {
</button>
{openSection === 5 && (
<div className="px-6 pb-6 space-y-4 text-[#5a5a4e]">
<p>Les lots doivent être réclamés dans un délai de <strong>30 jours</strong> à compter de la date de participation.</p>
<p>Les lots doivent être réclamés dans un délai de <strong>60 jours</strong> (du 1er décembre 2025 au 31 janvier 2026).</p>
<div>
<p className="font-semibold mb-2">Modalités de remise :</p>
<ul className="list-disc list-inside space-y-2 ml-4">

View File

@ -2,37 +2,45 @@
export default function GamePeriod() {
return (
<div className="grid md:grid-cols-2 gap-6 mt-8">
{/* Période d'achat */}
<div className="bg-white rounded-2xl shadow-lg p-8 border-2 border-[#f59e0b] hover:shadow-xl transition-shadow">
<div className="flex items-start gap-4">
<div className="bg-gradient-to-br from-[#fef3c7] to-[#fde68a] rounded-full p-4 flex-shrink-0">
<svg className="w-8 h-8 text-[#f59e0b]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" />
<div className="grid md:grid-cols-2 gap-8 mt-8">
{/* Période de validation des tickets */}
<div className="bg-gradient-to-br from-white to-[#fffbeb] rounded-3xl shadow-xl p-10 border-2 border-[#f59e0b] hover:shadow-2xl hover:scale-[1.02] transition-all duration-300">
<div className="flex flex-col items-center text-center">
<div className="bg-gradient-to-br from-[#fef3c7] to-[#fde68a] rounded-full p-6 mb-6 shadow-lg">
<svg className="w-12 h-12 text-[#f59e0b]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z" />
</svg>
</div>
<div className="flex-1">
<h3 className="text-2xl font-bold text-gray-900 mb-3">Période d'achat</h3>
<p className="text-gray-600">
Achetez vos tickets de 49 en boutique et obtenez votre code de participation
<h3 className="text-2xl md:text-3xl font-bold text-gray-900 mb-4">Période de validation des tickets</h3>
<p className="text-lg text-gray-600 mb-6">
Achetez et validez votre code de participation
</p>
<div className="bg-[#f59e0b]/10 rounded-2xl px-6 py-4 w-full">
<p className="text-lg font-bold text-[#b45309]">
Du 1 décembre 2025 au 31 décembre 2025
</p>
<p className="text-[#f59e0b] font-semibold mt-1">30 jours</p>
</div>
</div>
</div>
{/* Période de jeu */}
<div className="bg-white rounded-2xl shadow-lg p-8 border-2 border-[#1a4d2e] hover:shadow-xl transition-shadow">
<div className="flex items-start gap-4">
<div className="bg-gradient-to-br from-[#d1fae5] to-[#a7f3d0] rounded-full p-4 flex-shrink-0">
<svg className="w-8 h-8 text-[#1a4d2e]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M14.828 14.828a4 4 0 01-5.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
{/* Période de récupération des lots */}
<div className="bg-gradient-to-br from-white to-[#ecfdf5] rounded-3xl shadow-xl p-10 border-2 border-[#1a4d2e] hover:shadow-2xl hover:scale-[1.02] transition-all duration-300">
<div className="flex flex-col items-center text-center">
<div className="bg-gradient-to-br from-[#d1fae5] to-[#a7f3d0] rounded-full p-6 mb-6 shadow-lg">
<svg className="w-12 h-12 text-[#1a4d2e]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7" />
</svg>
</div>
<div className="flex-1">
<h3 className="text-2xl font-bold text-gray-900 mb-3">Période de jeu</h3>
<p className="text-gray-600">
Utilisez vos tickets pour jouer et découvrir vos lots instantanément
<h3 className="text-2xl md:text-3xl font-bold text-gray-900 mb-4">Période de récupération des lots</h3>
<p className="text-lg text-gray-600 mb-6">
Récupérez vos lots gagnés en boutique
</p>
<div className="bg-[#1a4d2e]/10 rounded-2xl px-6 py-4 w-full">
<p className="text-lg font-bold text-[#1a4d2e]">
Du 1 décembre 2025 au 31 janvier 2026
</p>
<p className="text-[#22c55e] font-semibold mt-1">60 jours</p>
</div>
</div>
</div>

View File

@ -3,13 +3,11 @@
interface GrandPrizeProps {
prizeAmount?: string;
drawDate?: Date;
participantsCount?: number;
}
export default function GrandPrize({
prizeAmount = "360€",
drawDate,
participantsCount,
}: GrandPrizeProps) {
const formatDate = (date: Date) => {
return date.toLocaleDateString('fr-FR', {
@ -20,68 +18,61 @@ export default function GrandPrize({
};
return (
<div className="bg-gradient-to-br from-[#fff8e8] via-[#fff4d9] to-[#ffefc4] rounded-2xl shadow-xl p-8 border-2 border-[#d4a574] mt-8">
<div className="flex items-start gap-6">
<div className="bg-gradient-to-br from-[#fff8e8] via-[#fff4d9] to-[#ffefc4] rounded-3xl shadow-2xl p-10 md:p-12 border-3 border-[#d4a574] mt-10 hover:shadow-3xl transition-all duration-300">
<div className="flex flex-col items-center text-center">
{/* Icône trophée */}
<div className="flex-shrink-0">
<div className="bg-white rounded-full p-4 shadow-lg">
<svg className="w-12 h-12 text-[#d4a574]" fill="currentColor" viewBox="0 0 20 20">
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
</svg>
</div>
<div className="bg-gradient-to-br from-[#d4a574] to-[#c4956a] rounded-full p-6 mb-6 shadow-xl">
<svg className="w-16 h-16 text-white" fill="currentColor" viewBox="0 0 20 20">
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
</svg>
</div>
{/* Contenu */}
<div className="flex-1">
<div className="flex items-center gap-3 mb-3">
<h3 className="text-3xl font-bold text-gray-900">
🎉 Grand Prix à gagner !
</h3>
</div>
{/* Titre */}
<h3 className="text-3xl md:text-4xl font-bold text-gray-900 mb-6">
Grand Prix à gagner !
</h3>
<p className="text-lg text-[#5a5a4e] mb-4 leading-relaxed">
À la fin du concours, un grand gagnant sera tiré au sort parmi les participants et remportera un{' '}
<span className="font-bold text-[#8b6f47] text-xl">lot d'une valeur de {prizeAmount}</span> !
{/* Prix principal */}
<div className="bg-white/80 backdrop-blur-sm rounded-2xl px-8 py-6 mb-6 shadow-lg">
<p className="text-2xl md:text-3xl font-bold text-[#d4a574] mb-2">
1 an de thé offert
</p>
<p className="text-xl text-[#8b6f47] font-semibold">
d'une valeur de {prizeAmount}
</p>
</div>
<div className="bg-white/70 backdrop-blur-sm rounded-xl p-4 space-y-2">
{drawDate && (
<div className="flex items-center gap-3">
<svg className="w-5 h-5 text-[#d4a574]" fill="currentColor" viewBox="0 0 20 20">
{/* Description */}
<p className="text-lg md:text-xl text-[#5a5a4e] mb-8 max-w-2xl leading-relaxed">
Le grand prix du tirage final : une année complète de thé premium
</p>
{/* Informations du tirage */}
<div className="grid md:grid-cols-2 gap-4 w-full max-w-xl">
{drawDate && (
<div className="bg-white/70 backdrop-blur-sm rounded-2xl p-5 flex items-center gap-4 shadow-md">
<div className="bg-[#d4a574]/20 rounded-full p-3">
<svg className="w-6 h-6 text-[#d4a574]" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clipRule="evenodd" />
</svg>
<span className="text-[#5a5a4e]">
<span className="font-semibold">Tirage au sort :</span> {formatDate(drawDate)}
</span>
</div>
)}
{participantsCount && (
<div className="flex items-center gap-3">
<svg className="w-5 h-5 text-[#d4a574]" fill="currentColor" viewBox="0 0 20 20">
<path d="M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z" />
</svg>
<span className="text-[#5a5a4e]">
<span className="font-semibold">{participantsCount.toLocaleString('fr-FR')}</span> participants déjà inscrits
</span>
<div className="text-left">
<p className="text-sm text-[#8a8a7a] font-medium">Tirage au sort</p>
<p className="text-lg font-bold text-[#5a5a4e]">{formatDate(drawDate)}</p>
</div>
)}
</div>
)}
<div className="flex items-center gap-3">
<svg className="w-5 h-5 text-[#d4a574]" fill="currentColor" viewBox="0 0 20 20">
<div className="bg-white/70 backdrop-blur-sm rounded-2xl p-5 flex items-center gap-4 shadow-md">
<div className="bg-[#d4a574]/20 rounded-full p-3">
<svg className="w-6 h-6 text-[#d4a574]" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clipRule="evenodd" />
</svg>
<span className="text-[#5a5a4e]">
Tirage certifié par un huissier de justice
</span>
</div>
</div>
<div className="mt-4 flex items-center gap-2 text-sm text-[#8a8a7a]">
<svg className="w-4 h-4 text-[#d4a574]" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clipRule="evenodd" />
</svg>
<span className="italic">Plus vous jouez, plus vous avez de chances de gagner !</span>
<div className="text-left">
<p className="text-sm text-[#8a8a7a] font-medium">Certification</p>
<p className="text-lg font-bold text-[#5a5a4e]">Contrôle d'huissier</p>
</div>
</div>
</div>
</div>