Fusion de github/main (travail de Nils) dans main, index.html repris de la branche claude/laughing-feynman-wtq9jc

Cette révision appartient à :
Théo Gastinel a révisé 2026-10-12 22:24:29 +02:00
révision b4d75deee9
4 fichiers modifiés
+401 -119

Aucun fichier ne correspond à votre recherche

+27 -1
Voir le fichier
@@ -1,5 +1,31 @@
# Fichiers d'environnement et secrets
.env
.env.local
.env.*.local
*.pem
*.key
# Dépendances et builds
node_modules/
dist/
build/
.cache/
# Fichiers temporaires et logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store
Thumbs.db
# Fichiers IDE
.vscode/
.idea/
*.sublime-project
*.sublime-workspace
# Mots de passe et empreintes : jamais dans git # Mots de passe et empreintes : jamais dans git
*.caddy *.caddy
*auth* *auth*
*.secret *.secret
.env
+145
Voir le fichier
@@ -0,0 +1,145 @@
# 📚 DOCUMENTATION TECHNIQUE & GUIDE PROJET - JOBRUNNER
> **Plateforme de mise en relation de services et prestations avec séquestre bancaire sécurisé.**
> **Dépôt privé :** `https://github.com/gastinelt/jobrunner.html`
> **Nom de domaine de production :** `https://jobrunner.fr`
---
## 📑 Sommaire
1. [Vue d'ensemble du Projet](#1-vue-densemble-du-projet)
2. [Architecture et Organisation des Fichiers](#2-architecture-et-organisation-des-fichiers)
3. [Règles de Travail sur le Dépôt Git Privé](#3-règles-de-travail-sur-le-dépôt-git-privé)
4. [Fonctionnalités Actuelles du Site (Frontend)](#4-fonctionnalités-actuelles-du-site-frontend)
5. [Spécifications Techniques des APIs à Intégrer](#5-spécifications-techniques-des-apis-à-intégrer)
- [Paiements & Séquestre (Stripe)](#51-paiements--séquestre-stripe)
- [Vérification d'Identité 100% Légale & Gratuite](#52-vérification-didentité-100-légale--gratuite)
6. [Mise en Ligne & Configuration du Domaine `Jobrunner.fr`](#6-mise-en-ligne--configuration-du-domaine-jobrunnerfr)
7. [Stratégie Marketing & Acquisition Réseaux Sociaux](#7-stratégie-marketing--acquisition-réseaux-sociaux)
---
## 1. Vue d'ensemble du Projet
**Jobrunner** met en relation des clients ayant un besoin de service du quotidien (bricolage, déménagement, ménage, urgences, livraisons, etc.) avec des prestataires indépendants et fiables appelés les **"Runners"**.
### Le modèle économique :
* **Garantie Séquestre (Escrow) :** Les fonds du client sont débités et mis en sécurité lors de la réservation. Le runner n'est payé qu'une fois la prestation réalisée et validée par le client.
* **Modèle 0 € de frais fixes :** Aucun abonnement récurrent pour le gérant. Les frais Stripe (~1,5% + 0,25 €) sont directement couverts par la commission de la plateforme (10% à 15%).
* **Confiance & Conformité :** Respect strict des lois françaises (RGPD, CNIL, DSP2) et vérifications des profils (numéro de téléphone certifié, SIRET officiel État français, et pièce d'identité sécurisée).
---
## 2. Architecture et Organisation des Fichiers
```
jobrunner web/
├── .gitignore # Protection des clés privées, logs et dépendances
├── README.md # Présentation du dépôt
├── DOCUMENTATION.md # Présente documentation technique complète
└── index.html # Application Web frontend complète (6600+ lignes)
```
### Technologies du Frontend :
* **HTML5 / JavaScript Vanilla :** Application Single Page dynamique sans framework lourd pour un chargement instantané.
* **Tailwind CSS (CDN) :** Palette de couleurs sur-mesure (`#F4F2EC` écru/beige, `#7A8E76` sauge, `#1F221E` sombre).
* **Phosphor Icons :** Bibliothèque d'icônes vectorielles moderne.
* **Typographies :** Polices *Chillax* (titres modernes) et *Plus Jakarta Sans* (corps de texte).
* **Responsive Hybride :** Conçu en priorité pour mobile (format app native avec dock de navigation bas) et adapté pour grand écran desktop.
---
## 3. Règles de Travail sur le Dépôt Git Privé
Pour garantir la sécurité et la propreté du travail d'équipe avec vos collaborateurs (`gastinelt` & `ronnetnils-cyber`) :
1. **Dépôt Privé Obligatoire :** Tout le code source, la documentation et les développements sont stockés sur le dépôt privé `gastinelt/jobrunner.html`.
2. **Gestion des Secrets & Clés API :**
* **JAMAIS** de clé secrète Stripe (`sk_live_...` ou `sk_test_...`) dans le code HTML/JS côté client.
* Toutes les clés sensibles doivent résider dans un fichier `.env` ou sur le serveur backend uniquement.
* Le fichier `.gitignore` bloque l'envoi de ces fichiers sensibles sur Git.
3. **Commandes usuelles de synchronisation :**
```bash
# Récupérer les dernières modifications de vos collaborateurs
git pull origin main
# Enregistrer vos modifications locales
git add .
git commit -m "description claire de vos modifications"
# Envoyer sur le dépôt privé GitHub
git push origin main
```
---
## 4. Fonctionnalités Actuelles du Site (Frontend)
Le fichier `index.html` intègre déjà les modules complets suivants :
| Module | Description |
| :--- | :--- |
| **Accueil & Recommandations** | Bannière, recherche rapide, catégories de services, sélection de runners recommandés. |
| **Moteur de Recherche & Filtres** | Filtres par catégorie, tarif horaire, localisation, badge vérifié, tri par avis. |
| **Shorts / Vidéos UGC** | Lecteur vidéo vertical style TikTok/Reels intégré, présentant les prestations des runners. |
| **Fiche Runner / Annonce** | Détails du profil, photos, tarifs, avis clients, garanties et bouton de réservation. |
| **Messagerie Instantanée** | Système de messagerie interactif complet (vue liste + fenêtre de conversation dédiée). |
| **Processus de Séquestre Mock** | Modale de paiement avec explication des fonds protégés et validation de fin de mission. |
| **Espace Profil & Annonces** | Gestion des annonces personnelles, favoris, historique et statut de certification. |
| **Footer & Mentions Légales** | Modales légales (Mentions légales, CGU, Politique de confidentialité RGPD, Cookies). |
---
## 5. Spécifications Techniques des APIs à Intégrer
### 5.1 Paiements & Séquestre (Stripe)
* **Objectif :** Bloquer les fonds du client jusqu'à validation du service.
* **Fonctionnement :**
1. Le client clique sur *"Réserver avec Séquestre"*.
2. Le serveur appelle `stripe.paymentIntents.create` avec l'option `capture_method: 'manual'` (autorisation préalable).
3. L'argent est bloqué sans être transféré au runner immédiatement.
4. Fin de mission : le client valide $\rightarrow$ le serveur exécute `stripe.paymentIntents.capture` $\rightarrow$ les fonds sont libérés.
* **Frais :** ~1,5% + 0,25 € par transaction par carte bancaire (couverts par les frais de service de la plateforme).
### 5.2 Vérification d'Identité 100% Légale & Gratuite
1. **Vérification SIRET Auto-entrepreneurs / Artisans (0 €) :**
* **API Officielle :** `api.gouv.fr` (Base SIRENE État français).
* **Vérification instantanée :** Le runner renseigne son SIRET $\rightarrow$ l'API confirme l'existence de l'entreprise, son immatriculation et son gérant légal $\rightarrow$ Attribution automatique du badge *"Pro Vérifié SIRET"*.
2. **Vérification Numéro de Téléphone (0 €) :**
* **API :** Google Firebase Phone Auth.
* **Vérification :** Envoi d'un code SMS à 6 chiffres. En France, toute ligne mobile 06/07 est obligatoirement liée à une identité chez un opérateur téléphonique.
3. **Vérification Pièce d'Identité CNI (Optionnelle via Stripe Identity) :**
* Facturée ~1,50 € par vérification $\rightarrow$ Frais répercutés au runner qui choisit de débloquer le badge *"Identité Certifiée CNI"*.
---
## 6. Mise en Ligne & Configuration du Domaine `Jobrunner.fr`
### Pointage DNS du domaine :
Dans l'interface de gestion de votre nom de domaine `Jobrunner.fr` (chez votre registrar) :
* **Enregistrement `A` :**
* Hôte : `@`
* Valeur : `IP_DE_VOTRE_SERVEUR`
* **Enregistrement `CNAME` :**
* Hôte : `www`
* Valeur : `jobrunner.fr.`
* **Certificat SSL / HTTPS :**
* Activation du certificat HTTPS Let's Encrypt (gratuit) sur votre serveur pour un affichage sécurisé avec le cadenas vert.
---
## 7. Stratégie Marketing & Acquisition Réseaux Sociaux
### Deux cibles distinctes :
1. **Les Clients (Demandeurs de services) :**
* *Accroche :* "Besoin d'un coup de main en urgence ? Ne prenez aucun risque : vos fonds sont protégés par séquestre et le runner n'est payé que si vous êtes 100% satisfait."
2. **Les Runners (Prestataires / Indépendants) :**
* *Accroche :* "Comment gagner de 100 € à 300 € par semaine à côté de vos études ou de votre travail, avec la certitude d'être payé sans impayé."
### Formats Vidéos Recommandés :
* **Shorts / TikTok / Reels (Format 9:16) :**
* Utiliser le style UGC (face caméra, smartphone en main, authentique, sous-titres dynamiques).
* Montrer la plateforme en action directement à l'écran grâce à l'interface mobile de Jobrunner.
+30 -1
Voir le fichier
@@ -1 +1,30 @@
# jobrunner.html # 🚀 Jobrunner Web
Plateforme moderne de mise en relation de services et prestations avec séquestre bancaire sécurisé.
* 🌐 **Site web officiel :** [https://jobrunner.fr](https://jobrunner.fr)
* 🔒 **Dépôt privé :** `gastinelt/jobrunner.html`
---
## 📖 Documentation Complète
Pour consulter l'ensemble des spécifications techniques, le fonctionnement des APIs (Stripe, Vérifications d'identité), les règles de collaboration Git et la mise en ligne, consultez le fichier :
👉 **[DOCUMENTATION.md](./DOCUMENTATION.md)**
---
## ⚡ Lancement Rapide en Local
Ouvrez simplement le fichier `index.html` dans n'importe quel navigateur moderne, ou utilisez un serveur de développement local :
```bash
# Avec Python
python -m http.server 8080
# Ou avec Node.js (npx serve)
npx serve .
```
Puis accédez à `http://localhost:8080`.
+199 -117
Voir le fichier
@@ -4,48 +4,14 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>Jobrunner - Services & Prestations Sécurisées</title> <title>Jobrunner - Services & Prestations Sécurisées</title>
<link rel="icon" type="image/jpeg" href="./logo.jpg?v=4"> <link rel="icon" type="image/jpeg" href="assets/img/logo.png">
<!-- Chillax Font & Plus Jakarta Sans --> <!-- Polices auto-hébergées (aucun appel externe) -->
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preload" href="assets/fonts/plus-jakarta-sans-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preload" href="assets/fonts/outfit-latin-700-normal.woff2" as="font" type="font/woff2" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet"> <link rel="stylesheet" href="assets/css/fonts.css">
<link href="https://api.fontshare.com/v2/css?f[]=chillax@400,500,600,700&display=swap" rel="stylesheet">
<!-- Phosphor Icons -->
<script src="https://unpkg.com/@phosphor-icons/web"></script>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Chillax', 'Plus Jakarta Sans', 'system-ui', 'sans-serif'],
body: ['Plus Jakarta Sans', 'sans-serif'],
},
colors: {
'job-bg': '#F4F2EC',
'job-sage': '#7A8E76',
'job-sage-dark': '#586B54',
'job-sage-light': '#E7ECE5',
'job-dark': '#1F221E',
'job-gray': '#E5E4DC',
'job-gold': '#D4AF37',
},
boxShadow: {
'soft': '0 8px 30px rgba(0,0,0,0.04)',
'card': '0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02)',
'elevated': '0 20px 35px -10px rgba(31, 34, 30, 0.12)',
'nav': '0 -10px 30px rgba(0,0,0,0.05)',
'floating': '0 15px 35px rgba(122, 142, 118, 0.35)',
}
}
}
}
<script>
// ====== FALLBACK LOGO ROBUSTE ====== // ====== FALLBACK LOGO ROBUSTE ======
function handleLogoError(img, theme = 'sage') { function handleLogoError(img, theme = 'sage') {
if (!img || img.dataset.fallbackApplied) return; if (!img || img.dataset.fallbackApplied) return;
@@ -55,7 +21,7 @@
const wrapper = document.createElement('div'); const wrapper = document.createElement('div');
wrapper.className = `${img.className || ''} ${bgClass} flex items-center justify-center font-bold select-none shrink-0 overflow-hidden`; wrapper.className = `${img.className || ''} ${bgClass} flex items-center justify-center font-bold select-none shrink-0 overflow-hidden`;
wrapper.setAttribute('aria-label', 'Jobrunner'); wrapper.setAttribute('aria-label', 'Jobrunner');
wrapper.innerHTML = `<span class="font-chillax font-black text-sm sm:text-base leading-none select-none" style="font-family:'Chillax',sans-serif;">J</span>`; wrapper.innerHTML = `<span class="font-titre font-black text-sm sm:text-base leading-none select-none" style="font-family:'Outfit',sans-serif;">J</span>`;
img.replaceWith(wrapper); img.replaceWith(wrapper);
} }
</script> </script>
@@ -70,8 +36,8 @@
overflow-x: hidden; overflow-x: hidden;
} }
h1, h2, h3, .font-chillax { h1, h2, h3, .font-titre {
font-family: 'Chillax', 'Plus Jakarta Sans', sans-serif; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
letter-spacing: -0.02em; letter-spacing: -0.02em;
} }
@@ -193,10 +159,126 @@
scroll-snap-stop: always; scroll-snap-stop: always;
} }
</style> </style>
<link rel="stylesheet" href="assets/icons/phosphor.css">
<link rel="stylesheet" href="assets/css/app.css">
</head> </head>
<body class="selection:bg-job-sage selection:text-white"> <body class="selection:bg-job-sage selection:text-white">
<!-- Accès protégé côté serveur (Caddy, basic_auth) : plus de verrou dans la page. --> <!-- ================= ECRAN DE VERROUILLAGE DEVELOPPEUR (SIMPLE & SOBRE) ================= -->
<div id="dev-lock-screen" class="fixed inset-0 z-[9999] bg-[#f4f5f7] flex flex-col items-center justify-center p-4 text-gray-800 transition-opacity duration-300 font-sans">
<div class="w-full max-w-xs bg-white p-6 border border-gray-300 rounded-2xl shadow-sm text-center">
<div class="flex items-center justify-center mb-3">
<img loading="lazy" decoding="async" src="assets/img/logo.png" alt="Logo Jobrunner" class="w-12 h-12 object-contain object-center" onerror="handleLogoError(this, 'sage')">
</div>
<h1 class="text-sm font-semibold text-gray-900 mb-1">Authentification</h1>
<p class="text-xs text-gray-500 mb-4">Veuillez entrer le mot de passe pour continuer.</p>
<form id="dev-lock-form" class="w-full flex flex-col gap-2.5" onsubmit="checkDevPassword(event)">
<input type="password" id="dev-password-input" placeholder="Mot de passe" class="w-full bg-white border border-gray-300 rounded px-3 py-2 text-xs text-gray-900 focus:border-gray-500 focus:outline-none placeholder:text-gray-400">
<p id="dev-password-error" class="hidden text-[11px] text-red-600 font-medium">Mot de passe incorrect.</p>
<p id="dev-cooldown-msg" class="hidden text-[11px] text-job-gold font-medium"></p>
<div id="dev-attempts-bar" class="hidden w-full bg-gray-200 rounded-full h-1 overflow-hidden">
<div id="dev-attempts-fill" class="h-1 bg-red-500 transition-all duration-300" style="width:0%"></div>
</div>
<button type="submit" id="dev-submit-btn" class="w-full bg-gray-800 hover:bg-gray-900 text-white text-xs font-medium py-2 rounded transition-colors mt-1">
Entrer
</button>
</form>
</div>
</div>
<script>
// ====== DEV LOCK — HASH + RATE LIMITING ======
let devAttempts = parseInt(sessionStorage.getItem('jr_dev_attempts') || '0');
let devCooldownUntil = parseInt(sessionStorage.getItem('jr_dev_cooldown') || '0');
const MAX_DEV_ATTEMPTS = 5;
const COOLDOWN_MS = 30000;
// Obfuscated hash (djb2-like, sufficient for prototype)
function devHashPass(p) {
const salted = p + ':jr-dev-salt-2026!';
let h = 5381;
for (let i = 0; i < salted.length; i++) {
h = ((h << 5) + h) ^ salted.charCodeAt(i);
h = h >>> 0; // unsigned 32-bit
}
return h.toString(16);
}
const DEV_EXPECTED_HASH = devHashPass('acces.jobrunner26');
function checkDevPassword(event) {
event.preventDefault();
const input = document.getElementById('dev-password-input');
const error = document.getElementById('dev-password-error');
if (Date.now() < devCooldownUntil) return;
if (devHashPass(input.value) === DEV_EXPECTED_HASH) {
devAttempts = 0;
sessionStorage.removeItem('jr_dev_attempts');
sessionStorage.removeItem('jr_dev_cooldown');
sessionStorage.setItem('jobrunner_dev_unlocked', 'true');
const lockScreen = document.getElementById('dev-lock-screen');
lockScreen.classList.add('opacity-0');
setTimeout(() => { lockScreen.style.display = 'none'; }, 500);
} else {
devAttempts++;
sessionStorage.setItem('jr_dev_attempts', devAttempts.toString());
error.classList.remove('hidden');
input.value = '';
input.focus();
// Update attempts progress bar
const bar = document.getElementById('dev-attempts-fill');
const barWrap = document.getElementById('dev-attempts-bar');
if (barWrap) barWrap.classList.remove('hidden');
if (bar) bar.style.width = Math.min((devAttempts / MAX_DEV_ATTEMPTS) * 100, 100) + '%';
if (devAttempts >= MAX_DEV_ATTEMPTS) {
devCooldownUntil = Date.now() + COOLDOWN_MS;
sessionStorage.setItem('jr_dev_cooldown', devCooldownUntil.toString());
devAttempts = 0;
sessionStorage.setItem('jr_dev_attempts', '0');
startDevCooldownDisplay();
}
}
}
function startDevCooldownDisplay() {
const submitBtn = document.getElementById('dev-submit-btn');
const inputEl = document.getElementById('dev-password-input');
const errorEl = document.getElementById('dev-password-error');
const cooldownEl = document.getElementById('dev-cooldown-msg');
const bar = document.getElementById('dev-attempts-fill');
if (submitBtn) { submitBtn.disabled = true; submitBtn.classList.add('opacity-50'); }
if (inputEl) inputEl.disabled = true;
if (errorEl) errorEl.classList.add('hidden');
if (bar) bar.style.width = '100%';
if (cooldownEl) cooldownEl.classList.remove('hidden');
const tick = () => {
const remaining = Math.ceil((devCooldownUntil - Date.now()) / 1000);
if (remaining <= 0) {
if (submitBtn) { submitBtn.disabled = false; submitBtn.classList.remove('opacity-50'); }
if (inputEl) { inputEl.disabled = false; inputEl.focus(); }
if (cooldownEl) { cooldownEl.classList.add('hidden'); cooldownEl.textContent = ''; }
if (bar) bar.style.width = '0%';
const barWrap = document.getElementById('dev-attempts-bar');
if (barWrap) barWrap.classList.add('hidden');
} else {
if (cooldownEl) cooldownEl.textContent = `Accès verrouillé — réessayez dans ${remaining}s`;
setTimeout(tick, 500);
}
};
tick();
}
// Initialisation
if (sessionStorage.getItem('jobrunner_dev_unlocked') === 'true') {
document.getElementById('dev-lock-screen').style.display = 'none';
} else if (devCooldownUntil > Date.now()) {
startDevCooldownDisplay();
}
</script>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<div id="app-wrapper"> <div id="app-wrapper">
@@ -214,8 +296,8 @@
<div class="max-w-7xl mx-auto w-full flex items-center justify-between gap-3 lg:gap-5"> <div class="max-w-7xl mx-auto w-full flex items-center justify-between gap-3 lg:gap-5">
<!-- 1. Logo Jobrunner avec 'J' --> <!-- 1. Logo Jobrunner avec 'J' -->
<button onclick="navigate('home')" class="flex items-center gap-2.5 group transition-transform active:scale-95 shrink-0" aria-label="Jobrunner Accueil"> <button onclick="navigate('home')" class="flex items-center gap-2.5 group transition-transform active:scale-95 shrink-0" aria-label="Jobrunner Accueil">
<img src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-10 h-10 rounded-2xl object-contain object-center shadow-md group-hover:scale-105 transition-transform select-none shrink-0" onerror="handleLogoError(this, 'sage')"> <img loading="lazy" decoding="async" src="assets/img/logo.png" alt="Logo Jobrunner" class="w-10 h-10 object-contain object-center group-hover:scale-105 transition-transform select-none shrink-0" onerror="handleLogoError(this, 'sage')">
<span class="font-chillax text-2xl font-black tracking-tight text-job-dark shrink-0">Job<span class="text-job-sage">runner</span></span> <span class="font-titre text-2xl font-black tracking-tight text-job-dark shrink-0">Job<span class="text-job-sage">runner</span></span>
</button> </button>
<!-- 2. Barre de recherche rapide intégrée --> <!-- 2. Barre de recherche rapide intégrée -->
@@ -261,7 +343,7 @@
<!-- Header : Profil ou Bouton Connexion --> <!-- Header : Profil ou Bouton Connexion -->
<header class="flex justify-between items-center mb-6 order-1"> <header class="flex justify-between items-center mb-6 order-1">
<div> <div>
<h1 class="text-3xl sm:text-4xl lg:text-5xl font-extrabold font-chillax text-job-dark" id="home-greeting">Bonjour, <span class="text-job-sage whitespace-nowrap">Visiteur&nbsp;!</span></h1> <h1 class="text-3xl sm:text-4xl lg:text-5xl font-extrabold font-titre text-job-dark" id="home-greeting">Bonjour, <span class="text-job-sage whitespace-nowrap">Visiteur&nbsp;!</span></h1>
<p class="text-xs lg:text-sm text-gray-500 mt-1.5 font-medium hidden md:block">Jobrunner, trouvez, réservez, fait.</p> <p class="text-xs lg:text-sm text-gray-500 mt-1.5 font-medium hidden md:block">Jobrunner, trouvez, réservez, fait.</p>
</div> </div>
<div id="header-auth-container" class="md:hidden"></div> <div id="header-auth-container" class="md:hidden"></div>
@@ -305,7 +387,7 @@
<div class="flex justify-between items-center mb-3"> <div class="flex justify-between items-center mb-3">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<span class="w-2.5 h-2.5 rounded-full bg-rose-500 shadow-[0_0_8px_rgba(244,63,94,0.5)]"></span> <span class="w-2.5 h-2.5 rounded-full bg-rose-500 shadow-[0_0_8px_rgba(244,63,94,0.5)]"></span>
<h2 class="text-lg md:text-xl font-bold font-chillax text-job-dark">Shorts</h2> <h2 class="text-lg md:text-xl font-bold font-titre text-job-dark">Shorts</h2>
</div> </div>
<button onclick="navigate('shorts')" class="text-[11px] font-bold text-gray-500 hover:text-job-dark flex items-center gap-1"> <button onclick="navigate('shorts')" class="text-[11px] font-bold text-gray-500 hover:text-job-dark flex items-center gap-1">
Plein écran <i class="ph-bold ph-caret-right text-sm"></i> Plein écran <i class="ph-bold ph-caret-right text-sm"></i>
@@ -319,7 +401,7 @@
<section class="mb-8 order-6 md:order-5"> <section class="mb-8 order-6 md:order-5">
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h2 class="text-lg font-bold font-chillax text-job-dark">Annonces pertinentes</h2> <h2 class="text-lg font-bold font-titre text-job-dark">Annonces pertinentes</h2>
<span class="text-[11px] bg-emerald-100 text-emerald-800 font-bold px-2 py-0.5 rounded-full flex items-center gap-1"> <span class="text-[11px] bg-emerald-100 text-emerald-800 font-bold px-2 py-0.5 rounded-full flex items-center gap-1">
<i class="ph-fill ph-sparkle text-job-sage"></i> Pertinence & Qualité <i class="ph-fill ph-sparkle text-job-sage"></i> Pertinence & Qualité
</span> </span>
@@ -336,7 +418,7 @@
<!-- ================= VUE 2 : RECHERCHE ================= --> <!-- ================= VUE 2 : RECHERCHE ================= -->
<main id="view-search" class="app-view px-6 pt-10 !pb-0"> <main id="view-search" class="app-view px-6 pt-10 !pb-0">
<div class="flex items-center justify-between mb-4"> <div class="flex items-center justify-between mb-4">
<h1 class="text-3xl font-bold font-chillax text-job-dark">Recherche</h1> <h1 class="text-3xl font-bold font-titre text-job-dark">Recherche</h1>
<button onclick="resetAllFilters()" class="text-xs font-bold text-job-sage hover:underline">Réinitialiser</button> <button onclick="resetAllFilters()" class="text-xs font-bold text-job-sage hover:underline">Réinitialiser</button>
</div> </div>
@@ -389,7 +471,7 @@
<!-- Titre des résultats & tri --> <!-- Titre des résultats & tri -->
<div class="flex justify-between items-center mb-3"> <div class="flex justify-between items-center mb-3">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h2 class="text-sm font-bold font-chillax text-job-dark" id="search-results-title">Toutes les annonces</h2> <h2 class="text-sm font-bold font-titre text-job-dark" id="search-results-title">Toutes les annonces</h2>
<span class="text-[11px] font-bold text-job-dark bg-white border border-job-gray px-2 py-0.5 rounded-full shadow-sm" id="results-count">0</span> <span class="text-[11px] font-bold text-job-dark bg-white border border-job-gray px-2 py-0.5 rounded-full shadow-sm" id="results-count">0</span>
</div> </div>
<div class="relative"> <div class="relative">
@@ -413,7 +495,7 @@
<!-- ================= VUE 3 : PUBLIER UNE ANNONCE ================= --> <!-- ================= VUE 3 : PUBLIER UNE ANNONCE ================= -->
<main id="view-add" class="app-view px-6 pt-6 md:pt-10 max-w-3xl mx-auto"> <main id="view-add" class="app-view px-6 pt-6 md:pt-10 max-w-3xl mx-auto">
<div class="flex items-center justify-between mb-2"> <div class="flex items-center justify-between mb-2">
<h1 id="add-view-heading" class="text-3xl font-bold font-chillax text-job-dark">Déposer une annonce</h1> <h1 id="add-view-heading" class="text-3xl font-bold font-titre text-job-dark">Déposer une annonce</h1>
<span id="user-active-pass-badge" class="bg-job-sage-light text-job-sage-dark px-3 py-1 rounded-full text-xs font-bold"> <span id="user-active-pass-badge" class="bg-job-sage-light text-job-sage-dark px-3 py-1 rounded-full text-xs font-bold">
Pass Gratuit Pass Gratuit
</span> </span>
@@ -476,7 +558,7 @@
<span class="text-xs font-bold text-job-dark">Ajouter une photo représentative</span> <span class="text-xs font-bold text-job-dark">Ajouter une photo représentative</span>
<span class="text-[10px] text-gray-400">JPG, PNG haute résolution</span> <span class="text-[10px] text-gray-400">JPG, PNG haute résolution</span>
</div> </div>
<img id="upload-preview" src="" alt="Aperçu" class="hidden absolute inset-0 w-full h-full object-cover"> <img loading="lazy" decoding="async" id="upload-preview" src="" alt="Aperçu" class="hidden absolute inset-0 w-full h-full object-cover">
<div id="upload-badge" class="hidden absolute bottom-2 right-2 bg-job-dark/80 text-white text-[10px] px-2.5 py-0.5 rounded-full backdrop-blur-sm"> <div id="upload-badge" class="hidden absolute bottom-2 right-2 bg-job-dark/80 text-white text-[10px] px-2.5 py-0.5 rounded-full backdrop-blur-sm">
Modifier photo Modifier photo
</div> </div>
@@ -544,7 +626,7 @@
<div class="md:hidden"> <div class="md:hidden">
<div class="flex items-center justify-between mb-2 px-1"> <div class="flex items-center justify-between mb-2 px-1">
<div> <div>
<h1 class="text-2xl font-bold font-chillax text-job-dark">Messages</h1> <h1 class="text-2xl font-bold font-titre text-job-dark">Messages</h1>
<p class="text-gray-400 text-[11px]">Échanges sécurisés et séquestre garanti</p> <p class="text-gray-400 text-[11px]">Échanges sécurisés et séquestre garanti</p>
</div> </div>
<span class="text-[10px] font-bold bg-job-sage-light text-job-sage-dark px-2.5 py-1 rounded-full flex items-center gap-1"> <span class="text-[10px] font-bold bg-job-sage-light text-job-sage-dark px-2.5 py-1 rounded-full flex items-center gap-1">
@@ -562,7 +644,7 @@
<aside class="md:col-span-4 lg:col-span-3 border-r border-job-gray/80 flex flex-col h-full bg-white overflow-hidden"> <aside class="md:col-span-4 lg:col-span-3 border-r border-job-gray/80 flex flex-col h-full bg-white overflow-hidden">
<div class="p-4 border-b border-job-gray/70 flex items-center justify-between shrink-0"> <div class="p-4 border-b border-job-gray/70 flex items-center justify-between shrink-0">
<div> <div>
<h2 class="text-lg font-bold font-chillax text-job-dark">Messages</h2> <h2 class="text-lg font-bold font-titre text-job-dark">Messages</h2>
<span class="text-[11px] text-gray-400 font-medium" id="desktop-conv-count">Discussions</span> <span class="text-[11px] text-gray-400 font-medium" id="desktop-conv-count">Discussions</span>
</div> </div>
<span class="text-[10px] font-bold bg-job-sage-light text-job-sage-dark px-2.5 py-1 rounded-full flex items-center gap-1"> <span class="text-[10px] font-bold bg-job-sage-light text-job-sage-dark px-2.5 py-1 rounded-full flex items-center gap-1">
@@ -579,7 +661,7 @@
<!-- Top bar du tchat cliquable pour voir le profil --> <!-- Top bar du tchat cliquable pour voir le profil -->
<div class="p-3.5 px-5 bg-white border-b border-job-gray/80 flex items-center justify-between shrink-0"> <div class="p-3.5 px-5 bg-white border-b border-job-gray/80 flex items-center justify-between shrink-0">
<div class="flex items-center gap-3 cursor-pointer group" onclick="openProfileFromActiveChat()" title="Cliquer pour voir le profil"> <div class="flex items-center gap-3 cursor-pointer group" onclick="openProfileFromActiveChat()" title="Cliquer pour voir le profil">
<img id="desktop-chat-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray group-hover:scale-105 transition-transform" alt="Avatar"> <img loading="lazy" decoding="async" id="desktop-chat-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray group-hover:scale-105 transition-transform" alt="Avatar">
<div> <div>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h3 id="desktop-chat-name" class="font-bold text-sm text-job-dark group-hover:text-job-sage transition-colors">Nom</h3> <h3 id="desktop-chat-name" class="font-bold text-sm text-job-dark group-hover:text-job-sage transition-colors">Nom</h3>
@@ -662,7 +744,7 @@
<!-- Chat Header --> <!-- Chat Header -->
<div class="bg-white p-4 border-b border-job-gray/80 flex items-center justify-between shrink-0"> <div class="bg-white p-4 border-b border-job-gray/80 flex items-center justify-between shrink-0">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<img id="chat-header-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray" alt="Avatar"> <img loading="lazy" decoding="async" id="chat-header-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray" alt="Avatar">
<div> <div>
<div class="flex items-center gap-1.5"> <div class="flex items-center gap-1.5">
<h3 id="chat-header-name" class="font-bold text-sm text-job-dark">Nom</h3> <h3 id="chat-header-name" class="font-bold text-sm text-job-dark">Nom</h3>
@@ -700,7 +782,7 @@
<!-- ================= VUE 5 : PROFIL & PASS ================= --> <!-- ================= VUE 5 : PROFIL & PASS ================= -->
<main id="view-profile" class="app-view px-6 pt-6 md:pt-10 !pb-0 max-w-4xl mx-auto"> <main id="view-profile" class="app-view px-6 pt-6 md:pt-10 !pb-0 max-w-4xl mx-auto">
<h1 class="text-3xl font-bold font-chillax text-job-dark mb-6">Mon Compte</h1> <h1 class="text-3xl font-bold font-titre text-job-dark mb-6">Mon Compte</h1>
<!-- Carte Profil Connecté --> <!-- Carte Profil Connecté -->
<div class="bg-white rounded-3xl p-6 shadow-card border border-job-gray/70 flex flex-col items-center relative mb-6"> <div class="bg-white rounded-3xl p-6 shadow-card border border-job-gray/70 flex flex-col items-center relative mb-6">
@@ -709,13 +791,13 @@
</button> </button>
<div class="relative mb-3"> <div class="relative mb-3">
<img id="profile-avatar" src="" class="w-20 h-20 rounded-full object-cover border-4 border-white shadow-md bg-job-bg"> <img loading="lazy" decoding="async" id="profile-avatar" src="" class="w-20 h-20 rounded-full object-cover border-4 border-white shadow-md bg-job-bg">
<span id="profile-avatar-badge" class="absolute bottom-0 right-0 w-6 h-6 bg-emerald-500 text-white rounded-full flex items-center justify-center border-2 border-white text-xs" title="Compte vérifié"> <span id="profile-avatar-badge" class="absolute bottom-0 right-0 w-6 h-6 bg-emerald-500 text-white rounded-full flex items-center justify-center border-2 border-white text-xs" title="Compte vérifié">
<i class="ph-fill ph-seal-check"></i> <i class="ph-fill ph-seal-check"></i>
</span> </span>
</div> </div>
<h2 id="profile-display-name" class="text-xl font-bold font-chillax text-job-dark">Nom</h2> <h2 id="profile-display-name" class="text-xl font-bold font-titre text-job-dark">Nom</h2>
<span id="profile-display-badge" class="text-xs text-gray-500 mb-2 flex items-center gap-1"> <span id="profile-display-badge" class="text-xs text-gray-500 mb-2 flex items-center gap-1">
<i class="ph-fill ph-check-circle text-job-sage"></i> Identité vérifiée <i class="ph-fill ph-check-circle text-job-sage"></i> Identité vérifiée
</span> </span>
@@ -738,7 +820,7 @@
<div class="flex items-center gap-2 mb-1"> <div class="flex items-center gap-2 mb-1">
<span class="text-[10px] font-extrabold uppercase tracking-widest text-job-gold">Abonnement & Visibilité</span> <span class="text-[10px] font-extrabold uppercase tracking-widest text-job-gold">Abonnement & Visibilité</span>
</div> </div>
<h3 class="text-lg font-bold font-chillax text-white flex items-center gap-2" id="pass-card-title">Pass Runner Actuel</h3> <h3 class="text-lg font-bold font-titre text-white flex items-center gap-2" id="pass-card-title">Pass Runner Actuel</h3>
</div> </div>
</div> </div>
<p class="text-xs text-gray-300 leading-relaxed mb-4 relative z-10" id="pass-card-desc"> <p class="text-xs text-gray-300 leading-relaxed mb-4 relative z-10" id="pass-card-desc">
@@ -821,7 +903,7 @@
<i class="ph-bold ph-caret-left text-xl"></i> <i class="ph-bold ph-caret-left text-xl"></i>
</button> </button>
<div> <div>
<h1 class="text-2xl font-bold font-chillax text-job-dark">Mes Transactions</h1> <h1 class="text-2xl font-bold font-titre text-job-dark">Mes Transactions</h1>
<p class="text-gray-500 text-[11px]">Suivi des paiements émis et reçus avec séquestre</p> <p class="text-gray-500 text-[11px]">Suivi des paiements émis et reçus avec séquestre</p>
</div> </div>
</div> </div>
@@ -850,7 +932,7 @@
<button onclick="navigate('profile')" class="w-10 h-10 bg-white rounded-2xl flex items-center justify-center shadow-card text-job-dark hover:bg-job-bg transition-colors"> <button onclick="navigate('profile')" class="w-10 h-10 bg-white rounded-2xl flex items-center justify-center shadow-card text-job-dark hover:bg-job-bg transition-colors">
<i class="ph-bold ph-caret-left text-xl"></i> <i class="ph-bold ph-caret-left text-xl"></i>
</button> </button>
<h1 class="text-2xl font-bold font-chillax text-job-dark">Mes annonces</h1> <h1 class="text-2xl font-bold font-titre text-job-dark">Mes annonces</h1>
</div> </div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6" id="my-ads-container"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6" id="my-ads-container">
</div> </div>
@@ -882,7 +964,7 @@
<div class="max-w-6xl mx-auto md:px-6 md:pb-12"> <div class="max-w-6xl mx-auto md:px-6 md:pb-12">
<div class="relative h-72 md:h-96 bg-job-dark md:rounded-3xl overflow-hidden shadow-card"> <div class="relative h-72 md:h-96 bg-job-dark md:rounded-3xl overflow-hidden shadow-card">
<img id="detail-job-img" src="" alt="Prestation" class="w-full h-full object-cover brightness-95" onerror="this.src='https://placehold.co/600x400/D9E4DD/2B2B2B?text=Service'"> <img loading="lazy" decoding="async" id="detail-job-img" src="" alt="Prestation" class="w-full h-full object-cover brightness-95" onerror="this.src='https://placehold.co/600x400/D9E4DD/2B2B2B?text=Service'">
<div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-black/20 pointer-events-none"></div> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-black/20 pointer-events-none"></div>
<button onclick="handleBackFromDetail()" class="md:hidden absolute top-8 left-5 w-10 h-10 bg-white/90 backdrop-blur-md rounded-2xl flex items-center justify-center shadow-lg text-job-dark active:scale-95 transition-transform z-10"> <button onclick="handleBackFromDetail()" class="md:hidden absolute top-8 left-5 w-10 h-10 bg-white/90 backdrop-blur-md rounded-2xl flex items-center justify-center shadow-lg text-job-dark active:scale-95 transition-transform z-10">
@@ -908,12 +990,12 @@
<div onclick="openPublicProfile(currentDetailRunnerId)" class="flex items-center gap-3.5 pb-5 border-b border-job-gray/80 mb-5 cursor-pointer hover:bg-job-bg/50 p-2 -mx-2 rounded-2xl transition-colors group"> <div onclick="openPublicProfile(currentDetailRunnerId)" class="flex items-center gap-3.5 pb-5 border-b border-job-gray/80 mb-5 cursor-pointer hover:bg-job-bg/50 p-2 -mx-2 rounded-2xl transition-colors group">
<div class="relative shrink-0"> <div class="relative shrink-0">
<img id="detail-avatar" src="" class="w-14 h-14 rounded-2xl object-cover bg-job-bg border-2 border-job-gray shadow-sm group-hover:scale-105 transition-transform" alt="Avatar"> <img loading="lazy" decoding="async" id="detail-avatar" src="" class="w-14 h-14 rounded-2xl object-cover bg-job-bg border-2 border-job-gray shadow-sm group-hover:scale-105 transition-transform" alt="Avatar">
<div id="detail-badge-container"></div> <div id="detail-badge-container"></div>
</div> </div>
<div class="flex-grow"> <div class="flex-grow">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h2 id="detail-name" class="text-lg font-bold font-chillax text-job-dark group-hover:underline">Nom</h2> <h2 id="detail-name" class="text-lg font-bold font-titre text-job-dark group-hover:underline">Nom</h2>
<span id="detail-badge-text" class="text-[10px] font-bold px-2 py-0.5 rounded-md bg-gray-100 text-gray-500">Classique</span> <span id="detail-badge-text" class="text-[10px] font-bold px-2 py-0.5 rounded-md bg-gray-100 text-gray-500">Classique</span>
</div> </div>
<div class="flex items-center gap-2 text-xs text-gray-500 mt-0.5"> <div class="flex items-center gap-2 text-xs text-gray-500 mt-0.5">
@@ -931,7 +1013,7 @@
<i class="ph-bold ph-caret-right text-xl text-gray-300 group-hover:text-job-sage transition-colors"></i> <i class="ph-bold ph-caret-right text-xl text-gray-300 group-hover:text-job-sage transition-colors"></i>
</div> </div>
<h1 id="detail-title" class="text-2xl md:text-3xl font-bold font-chillax text-job-dark mb-4 leading-tight"> <h1 id="detail-title" class="text-2xl md:text-3xl font-bold font-titre text-job-dark mb-4 leading-tight">
Titre Titre
</h1> </h1>
@@ -978,7 +1060,7 @@
</div> </div>
<div class="mb-8"> <div class="mb-8">
<h3 class="font-bold font-chillax text-base md:text-lg text-job-dark mb-2">Description de la prestation</h3> <h3 class="font-bold font-titre text-base md:text-lg text-job-dark mb-2">Description de la prestation</h3>
<p class="text-gray-600 leading-relaxed text-sm md:text-base" id="detail-desc"> <p class="text-gray-600 leading-relaxed text-sm md:text-base" id="detail-desc">
Description... Description...
</p> </p>
@@ -997,7 +1079,7 @@
</span> </span>
</div> </div>
<div id="swipe-reserve-knob" class="w-10 h-10 bg-[#F1EDE1] rounded-xl flex items-center justify-center overflow-hidden shadow-md z-20 cursor-grab active:cursor-grabbing shrink-0 relative" style="touch-action: none;"> <div id="swipe-reserve-knob" class="w-10 h-10 bg-[#F1EDE1] rounded-xl flex items-center justify-center overflow-hidden shadow-md z-20 cursor-grab active:cursor-grabbing shrink-0 relative" style="touch-action: none;">
<img src="./logo.jpg?v=4" class="w-full h-full object-cover object-center pointer-events-none select-none" alt="Jobrunner" onerror="handleLogoError(this, 'beige')"> <img loading="lazy" decoding="async" src="assets/img/logo.png" class="w-full h-full object-contain object-center pointer-events-none select-none" alt="Jobrunner" onerror="handleLogoError(this, 'beige')">
</div> </div>
</div> </div>
@@ -1029,13 +1111,13 @@
<div class="px-6 pt-0 pb-36 rounded-t-[2.5rem] bg-white -mt-10 relative z-10 shadow-2xl flex flex-col items-center"> <div class="px-6 pt-0 pb-36 rounded-t-[2.5rem] bg-white -mt-10 relative z-10 shadow-2xl flex flex-col items-center">
<div class="relative -mt-12 mb-3"> <div class="relative -mt-12 mb-3">
<img id="public-profile-avatar" src="" class="w-24 h-24 rounded-full object-cover border-4 border-white shadow-md bg-job-bg"> <img loading="lazy" decoding="async" id="public-profile-avatar" src="" class="w-24 h-24 rounded-full object-cover border-4 border-white shadow-md bg-job-bg">
<span class="absolute bottom-0 right-0 w-7 h-7 bg-emerald-500 text-white rounded-full flex items-center justify-center border-2 border-white text-xs shadow-sm" title="Vérifié"> <span class="absolute bottom-0 right-0 w-7 h-7 bg-emerald-500 text-white rounded-full flex items-center justify-center border-2 border-white text-xs shadow-sm" title="Vérifié">
<i class="ph-fill ph-seal-check"></i> <i class="ph-fill ph-seal-check"></i>
</span> </span>
</div> </div>
<h2 id="public-profile-name" class="text-2xl font-bold font-chillax text-job-dark mb-1">Nom</h2> <h2 id="public-profile-name" class="text-2xl font-bold font-titre text-job-dark mb-1">Nom</h2>
<div class="flex items-center justify-center gap-3 mb-4"> <div class="flex items-center justify-center gap-3 mb-4">
<span class="flex items-center gap-1 text-sm font-bold text-job-dark bg-job-bg px-3 py-1 rounded-full border border-job-gray"> <span class="flex items-center gap-1 text-sm font-bold text-job-dark bg-job-bg px-3 py-1 rounded-full border border-job-gray">
@@ -1054,7 +1136,7 @@
<div class="w-full mb-8"> <div class="w-full mb-8">
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<h3 class="text-base font-bold font-chillax text-job-dark">Ses prestations</h3> <h3 class="text-base font-bold font-titre text-job-dark">Ses prestations</h3>
<span class="text-[10px] font-bold text-job-sage uppercase tracking-wider">Expert</span> <span class="text-[10px] font-bold text-job-sage uppercase tracking-wider">Expert</span>
</div> </div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 w-full text-left" id="public-profile-ads"> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 w-full text-left" id="public-profile-ads">
@@ -1064,7 +1146,7 @@
<!-- NOUVEAU: Section Avis Clients --> <!-- NOUVEAU: Section Avis Clients -->
<div class="w-full"> <div class="w-full">
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<h3 class="text-base font-bold font-chillax text-job-dark">Avis clients</h3> <h3 class="text-base font-bold font-titre text-job-dark">Avis clients</h3>
<span class="text-xs font-bold text-gray-500" id="public-profile-reviews-count">0 avis</span> <span class="text-xs font-bold text-gray-500" id="public-profile-reviews-count">0 avis</span>
</div> </div>
<div class="flex flex-col gap-3" id="public-profile-reviews-list"> <div class="flex flex-col gap-3" id="public-profile-reviews-list">
@@ -1114,7 +1196,7 @@
<div id="legal-modal-icon-container" class="w-9 h-9 rounded-xl bg-job-sage-light text-job-sage flex items-center justify-center"> <div id="legal-modal-icon-container" class="w-9 h-9 rounded-xl bg-job-sage-light text-job-sage flex items-center justify-center">
<i id="legal-modal-icon" class="ph-bold ph-shield-check text-xl"></i> <i id="legal-modal-icon" class="ph-bold ph-shield-check text-xl"></i>
</div> </div>
<h2 id="legal-modal-title" class="text-xl font-bold font-chillax text-job-dark">Mentions Légales</h2> <h2 id="legal-modal-title" class="text-xl font-bold font-titre text-job-dark">Mentions Légales</h2>
</div> </div>
<button onclick="closeLegalModal()" class="w-8 h-8 rounded-full bg-job-bg flex items-center justify-center text-gray-500 hover:text-job-dark transition-colors"> <button onclick="closeLegalModal()" class="w-8 h-8 rounded-full bg-job-bg flex items-center justify-center text-gray-500 hover:text-job-dark transition-colors">
<i class="ph-bold ph-x"></i> <i class="ph-bold ph-x"></i>
@@ -1138,8 +1220,8 @@
<div class="bg-job-bg w-full max-w-[480px] md:max-w-lg md:rounded-3xl md:my-auto mx-auto max-h-[92vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto"> <div class="bg-job-bg w-full max-w-[480px] md:max-w-lg md:rounded-3xl md:my-auto mx-auto max-h-[92vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto">
<div class="flex items-center justify-between mb-4"> <div class="flex items-center justify-between mb-4">
<div class="flex items-center gap-2.5"> <div class="flex items-center gap-2.5">
<img src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-9 h-9 rounded-xl object-contain object-center shadow-sm shrink-0" onerror="handleLogoError(this, 'beige')"> <img loading="lazy" decoding="async" src="assets/img/logo.png" alt="Logo Jobrunner" class="w-9 h-9 object-contain object-center shrink-0" onerror="handleLogoError(this, 'beige')">
<h2 class="text-2xl font-bold font-chillax text-job-dark">Connexion</h2> <h2 class="text-2xl font-bold font-titre text-job-dark">Connexion</h2>
</div> </div>
<button onclick="closeAuthModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark"> <button onclick="closeAuthModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark">
<i class="ph-bold ph-x"></i> <i class="ph-bold ph-x"></i>
@@ -1161,7 +1243,7 @@
<span class="text-[10px] uppercase font-bold text-gray-400 block mb-2">Profil enregistré</span> <span class="text-[10px] uppercase font-bold text-gray-400 block mb-2">Profil enregistré</span>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<img id="auth-saved-avatar" src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&auto=format&fit=crop&q=80" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="Avatar"> <img loading="lazy" decoding="async" id="auth-saved-avatar" src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&auto=format&fit=crop&q=80" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="Avatar">
<div> <div>
<span id="auth-saved-name" class="text-sm font-bold text-job-dark block">Christophe Vigneron</span> <span id="auth-saved-name" class="text-sm font-bold text-job-dark block">Christophe Vigneron</span>
<span id="auth-saved-email" class="text-xs text-gray-500">christophe.vigneron@email.com</span> <span id="auth-saved-email" class="text-xs text-gray-500">christophe.vigneron@email.com</span>
@@ -1274,7 +1356,7 @@
<i class="ph-fill ph-rocket-launch text-2xl"></i> <i class="ph-fill ph-rocket-launch text-2xl"></i>
</div> </div>
<div> <div>
<h2 class="text-xl md:text-2xl font-bold font-chillax text-job-dark">Pass & Boost Visibilité</h2> <h2 class="text-xl md:text-2xl font-bold font-titre text-job-dark">Pass & Boost Visibilité</h2>
<p class="text-xs text-gray-500 font-medium">Multipliez vos contacts et hissez-vous au sommet des recherches</p> <p class="text-xs text-gray-500 font-medium">Multipliez vos contacts et hissez-vous au sommet des recherches</p>
</div> </div>
</div> </div>
@@ -1292,7 +1374,7 @@
<i class="ph-fill ph-leaf text-lg text-job-sage"></i> <i class="ph-fill ph-leaf text-lg text-job-sage"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-job-dark">Pass Gratuit</h3> <h3 class="font-bold font-titre text-base text-job-dark">Pass Gratuit</h3>
<span class="text-[10px] font-bold text-gray-400 block uppercase tracking-wider">🌱 Standard</span> <span class="text-[10px] font-bold text-gray-400 block uppercase tracking-wider">🌱 Standard</span>
</div> </div>
</div> </div>
@@ -1315,7 +1397,7 @@
<i class="ph-fill ph-lightning text-lg"></i> <i class="ph-fill ph-lightning text-lg"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-job-dark">Pass Flash</h3> <h3 class="font-bold font-titre text-base text-job-dark">Pass Flash</h3>
<span class="text-[10px] font-bold text-blue-600 block uppercase tracking-wider">⚡ Boost Flash (Bleu)</span> <span class="text-[10px] font-bold text-blue-600 block uppercase tracking-wider">⚡ Boost Flash (Bleu)</span>
</div> </div>
</div> </div>
@@ -1343,7 +1425,7 @@
<i class="ph-fill ph-rocket-launch text-lg"></i> <i class="ph-fill ph-rocket-launch text-lg"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-job-dark">Pass Medium</h3> <h3 class="font-bold font-titre text-base text-job-dark">Pass Medium</h3>
<span class="text-[10px] font-bold text-emerald-600 block uppercase tracking-wider">🚀 Boost Medium (Vert)</span> <span class="text-[10px] font-bold text-emerald-600 block uppercase tracking-wider">🚀 Boost Medium (Vert)</span>
</div> </div>
</div> </div>
@@ -1374,7 +1456,7 @@
<i class="ph-fill ph-crown text-lg"></i> <i class="ph-fill ph-crown text-lg"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-job-dark">Pass Pro</h3> <h3 class="font-bold font-titre text-base text-job-dark">Pass Pro</h3>
<span class="text-[10px] font-bold text-rose-600 block uppercase tracking-wider">🔥 Boost Pro (Rouge)</span> <span class="text-[10px] font-bold text-rose-600 block uppercase tracking-wider">🔥 Boost Pro (Rouge)</span>
</div> </div>
</div> </div>
@@ -1408,7 +1490,7 @@
<i class="ph-fill ph-diamond text-xl animate-pulse text-purple-200"></i> <i class="ph-fill ph-diamond text-xl animate-pulse text-purple-200"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-white flex items-center gap-1.5"> <h3 class="font-bold font-titre text-base text-white flex items-center gap-1.5">
Pass Premium Pass Premium
</h3> </h3>
<span class="text-[10px] font-bold text-purple-300 block uppercase tracking-wider">💎 Boost Noir / Violet</span> <span class="text-[10px] font-bold text-purple-300 block uppercase tracking-wider">💎 Boost Noir / Violet</span>
@@ -1440,7 +1522,7 @@
<i class="ph-fill ph-video-camera text-xl"></i> <i class="ph-fill ph-video-camera text-xl"></i>
</div> </div>
<div> <div>
<span class="text-xs font-bold text-job-dark block font-chillax">Besoin d'un Short en plus ?</span> <span class="text-xs font-bold text-job-dark block font-titre">Besoin d'un Short en plus ?</span>
<span class="text-[11px] text-amber-800 font-medium">0.50€/mois par emplacement vidéo additionnel (Max 8)</span> <span class="text-[11px] text-amber-800 font-medium">0.50€/mois par emplacement vidéo additionnel (Max 8)</span>
</div> </div>
</div> </div>
@@ -1457,7 +1539,7 @@
<div class="bg-job-bg w-full max-w-[480px] md:max-w-lg md:rounded-3xl md:my-auto mx-auto max-h-[88vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto"> <div class="bg-job-bg w-full max-w-[480px] md:max-w-lg md:rounded-3xl md:my-auto mx-auto max-h-[88vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto">
<div class="flex items-center justify-between mb-4"> <div class="flex items-center justify-between mb-4">
<div> <div>
<h2 class="text-2xl font-bold font-chillax text-job-dark">Informations personnelles</h2> <h2 class="text-2xl font-bold font-titre text-job-dark">Informations personnelles</h2>
<p class="text-gray-500 text-xs">Gérez vos identifiants, coordonnées et sécurité</p> <p class="text-gray-500 text-xs">Gérez vos identifiants, coordonnées et sécurité</p>
</div> </div>
<button onclick="closeEditProfileModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark active:scale-95 shadow-xs"> <button onclick="closeEditProfileModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark active:scale-95 shadow-xs">
@@ -1468,7 +1550,7 @@
<form onsubmit="handleSaveProfile(event)" class="space-y-3"> <form onsubmit="handleSaveProfile(event)" class="space-y-3">
<div class="flex flex-col items-center mb-3"> <div class="flex flex-col items-center mb-3">
<div class="relative w-20 h-20 mb-1.5 cursor-pointer group" onclick="simulateProfileAvatarUpload()"> <div class="relative w-20 h-20 mb-1.5 cursor-pointer group" onclick="simulateProfileAvatarUpload()">
<img id="edit-avatar-preview" src="" class="w-full h-full rounded-full object-cover border border-job-gray shadow-sm group-hover:opacity-70 transition-opacity"> <img loading="lazy" decoding="async" id="edit-avatar-preview" src="" class="w-full h-full rounded-full object-cover border border-job-gray shadow-sm group-hover:opacity-70 transition-opacity">
<div class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity"> <div class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity">
<div class="w-8 h-8 rounded-full bg-black/50 flex items-center justify-center text-white backdrop-blur-sm shadow-md"> <div class="w-8 h-8 rounded-full bg-black/50 flex items-center justify-center text-white backdrop-blur-sm shadow-md">
<i class="ph-bold ph-camera"></i> <i class="ph-bold ph-camera"></i>
@@ -1553,7 +1635,7 @@
<i class="ph-bold ph-shield-check text-xl"></i> <i class="ph-bold ph-shield-check text-xl"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-job-dark">Modifier le mot de passe</h3> <h3 class="font-bold font-titre text-base text-job-dark">Modifier le mot de passe</h3>
<p class="text-[10px] text-gray-400">Sécurité renforcée LeBonCoin & Vinted</p> <p class="text-[10px] text-gray-400">Sécurité renforcée LeBonCoin & Vinted</p>
</div> </div>
</div> </div>
@@ -1617,7 +1699,7 @@
<i class="ph-bold ph-share-network text-xl"></i> <i class="ph-bold ph-share-network text-xl"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-job-dark">Partager ce Short</h3> <h3 class="font-bold font-titre text-base text-job-dark">Partager ce Short</h3>
<p class="text-[11px] text-gray-400">Recommander cette prestation</p> <p class="text-[11px] text-gray-400">Recommander cette prestation</p>
</div> </div>
</div> </div>
@@ -1628,7 +1710,7 @@
<!-- Aperçu du Short --> <!-- Aperçu du Short -->
<div class="flex items-center gap-3 p-3 bg-job-bg/70 rounded-2xl border border-job-gray/60 mb-5"> <div class="flex items-center gap-3 p-3 bg-job-bg/70 rounded-2xl border border-job-gray/60 mb-5">
<img id="share-preview-img" src="" class="w-12 h-16 object-cover rounded-xl border border-job-gray shrink-0" alt="Short preview"> <img loading="lazy" decoding="async" id="share-preview-img" src="" class="w-12 h-16 object-cover rounded-xl border border-job-gray shrink-0" alt="Short preview">
<div class="overflow-hidden"> <div class="overflow-hidden">
<h4 id="share-preview-title" class="font-bold text-xs text-job-dark truncate">Titre de la prestation</h4> <h4 id="share-preview-title" class="font-bold text-xs text-job-dark truncate">Titre de la prestation</h4>
<p id="share-preview-author" class="text-[10px] text-gray-500 truncate">Par le prestataire</p> <p id="share-preview-author" class="text-[10px] text-gray-500 truncate">Par le prestataire</p>
@@ -1696,7 +1778,7 @@
<i class="ph-bold ph-file-text text-xl"></i> <i class="ph-bold ph-file-text text-xl"></i>
</div> </div>
<div> <div>
<h3 class="font-bold font-chillax text-base text-job-dark">Devis & Cahier des charges</h3> <h3 class="font-bold font-titre text-base text-job-dark">Devis & Cahier des charges</h3>
<span class="text-[10px] text-gray-500 font-mono" id="devis-modal-ref">Réf: DEV-2026-88</span> <span class="text-[10px] text-gray-500 font-mono" id="devis-modal-ref">Réf: DEV-2026-88</span>
</div> </div>
</div> </div>
@@ -1765,7 +1847,7 @@
<div class="w-14 h-14 rounded-full bg-rose-100 text-rose-600 flex items-center justify-center mx-auto mb-3"> <div class="w-14 h-14 rounded-full bg-rose-100 text-rose-600 flex items-center justify-center mx-auto mb-3">
<i class="ph-fill ph-warning-octagon text-3xl"></i> <i class="ph-fill ph-warning-octagon text-3xl"></i>
</div> </div>
<h3 class="text-xl font-bold font-chillax text-job-dark text-center mb-2">Supprimer votre compte ?</h3> <h3 class="text-xl font-bold font-titre text-job-dark text-center mb-2">Supprimer votre compte ?</h3>
<div class="bg-rose-50 border border-rose-200 rounded-2xl p-3.5 mb-4 text-[11px] text-rose-900 leading-relaxed"> <div class="bg-rose-50 border border-rose-200 rounded-2xl p-3.5 mb-4 text-[11px] text-rose-900 leading-relaxed">
<p class="font-bold mb-1.5 flex items-center gap-1"> <p class="font-bold mb-1.5 flex items-center gap-1">
@@ -1807,7 +1889,7 @@
<div class="bg-job-bg w-full max-w-[480px] md:max-w-xl md:rounded-3xl md:my-auto mx-auto max-h-[88vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto"> <div class="bg-job-bg w-full max-w-[480px] md:max-w-xl md:rounded-3xl md:my-auto mx-auto max-h-[88vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto">
<div class="flex items-center justify-between pb-3 border-b border-job-gray/80 mb-4"> <div class="flex items-center justify-between pb-3 border-b border-job-gray/80 mb-4">
<div> <div>
<h2 class="text-xl font-bold font-chillax text-job-dark">Filtres de recherche</h2> <h2 class="text-xl font-bold font-titre text-job-dark">Filtres de recherche</h2>
<p class="text-gray-500 text-[11px]">Affinez par lieu, rayon, prix et critères</p> <p class="text-gray-500 text-[11px]">Affinez par lieu, rayon, prix et critères</p>
</div> </div>
<button onclick="closeSearchFiltersModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark active:scale-95 shadow-xs"> <button onclick="closeSearchFiltersModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark active:scale-95 shadow-xs">
@@ -1981,7 +2063,7 @@
<div id="contract-modal" class="fixed inset-0 z-[130] bg-black/60 backdrop-blur-sm hidden flex-col justify-end md:justify-center md:items-center md:p-4"> <div id="contract-modal" class="fixed inset-0 z-[130] bg-black/60 backdrop-blur-sm hidden flex-col justify-end md:justify-center md:items-center md:p-4">
<div class="bg-job-bg w-full max-w-[480px] md:max-w-xl md:rounded-3xl md:my-auto mx-auto max-h-[80vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto"> <div class="bg-job-bg w-full max-w-[480px] md:max-w-xl md:rounded-3xl md:my-auto mx-auto max-h-[80vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto">
<div class="flex items-center justify-between mb-4"> <div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-bold font-chillax text-job-dark">Proposer un Contrat Sécurisé</h2> <h2 class="text-xl font-bold font-titre text-job-dark">Proposer un Contrat Sécurisé</h2>
<button onclick="closeProposeContractModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark"> <button onclick="closeProposeContractModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark">
<i class="ph-bold ph-x"></i> <i class="ph-bold ph-x"></i>
</button> </button>
@@ -2007,7 +2089,7 @@
<div id="favorites-modal" class="fixed inset-0 z-50 bg-black/50 backdrop-blur-sm hidden flex-col justify-end md:justify-center md:items-center md:p-4"> <div id="favorites-modal" class="fixed inset-0 z-50 bg-black/50 backdrop-blur-sm hidden flex-col justify-end md:justify-center md:items-center md:p-4">
<div class="bg-job-bg w-full max-w-[480px] md:max-w-2xl md:rounded-3xl md:my-auto mx-auto max-h-[85vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-hidden"> <div class="bg-job-bg w-full max-w-[480px] md:max-w-2xl md:rounded-3xl md:my-auto mx-auto max-h-[85vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-hidden">
<div class="flex items-center justify-between mb-4"> <div class="flex items-center justify-between mb-4">
<h2 class="text-2xl font-bold font-chillax text-job-dark">Mes Favoris</h2> <h2 class="text-2xl font-bold font-titre text-job-dark">Mes Favoris</h2>
<button onclick="closeFavoritesModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark"> <button onclick="closeFavoritesModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark">
<i class="ph-bold ph-x"></i> <i class="ph-bold ph-x"></i>
</button> </button>
@@ -2024,7 +2106,7 @@
<div class="w-16 h-16 bg-amber-100 rounded-2xl flex items-center justify-center"> <div class="w-16 h-16 bg-amber-100 rounded-2xl flex items-center justify-center">
<i class="ph-bold ph-lock-key text-job-gold text-3xl"></i> <i class="ph-bold ph-lock-key text-job-gold text-3xl"></i>
</div> </div>
<h3 class="text-xl font-bold font-chillax text-job-dark">Confirmer le séquestre</h3> <h3 class="text-xl font-bold font-titre text-job-dark">Confirmer le séquestre</h3>
<p class="text-xs text-gray-500 leading-relaxed">Les fonds seront <strong>bloqués de façon sécurisée</strong> et libérés uniquement après validation des deux parties.</p> <p class="text-xs text-gray-500 leading-relaxed">Les fonds seront <strong>bloqués de façon sécurisée</strong> et libérés uniquement après validation des deux parties.</p>
</div> </div>
<div class="bg-job-bg rounded-2xl p-4 border border-job-gray"> <div class="bg-job-bg rounded-2xl p-4 border border-job-gray">
@@ -2521,14 +2603,14 @@
if (container) { if (container) {
container.innerHTML = ` container.innerHTML = `
<button onclick="navigate('profile')" class="flex items-center justify-center bg-white rounded-full p-0.5 shadow-card border border-job-gray/80 active:scale-95 transition-all" title="Mon Profil"> <button onclick="navigate('profile')" class="flex items-center justify-center bg-white rounded-full p-0.5 shadow-card border border-job-gray/80 active:scale-95 transition-all" title="Mon Profil">
<img src="${currentUser.avatar}" class="w-10 h-10 rounded-full object-cover shadow-sm shrink-0" alt="Profil"> <img loading="lazy" decoding="async" src="${currentUser.avatar}" class="w-10 h-10 rounded-full object-cover shadow-sm shrink-0" alt="Profil">
</button> </button>
`; `;
} }
if (desktopContainer) { if (desktopContainer) {
desktopContainer.innerHTML = ` desktopContainer.innerHTML = `
<button onclick="navigate('profile')" class="nav-btn flex items-center gap-2 bg-white hover:bg-job-bg px-2.5 py-1.5 rounded-full border border-job-gray/80 shadow-xs transition-all active:scale-95 shrink-0" data-target="profile" title="Profil"> <button onclick="navigate('profile')" class="nav-btn flex items-center gap-2 bg-white hover:bg-job-bg px-2.5 py-1.5 rounded-full border border-job-gray/80 shadow-xs transition-all active:scale-95 shrink-0" data-target="profile" title="Profil">
<img src="${currentUser.avatar}" class="w-6 h-6 rounded-full object-cover shadow-xs shrink-0" alt="Profil"> <img loading="lazy" decoding="async" src="${currentUser.avatar}" class="w-6 h-6 rounded-full object-cover shadow-xs shrink-0" alt="Profil">
<span class="text-xs font-bold text-job-dark">Profil</span> <span class="text-xs font-bold text-job-dark">Profil</span>
</button> </button>
`; `;
@@ -2628,7 +2710,7 @@
<div class="bg-white rounded-3xl p-3 shadow-card flex gap-3.5 cursor-pointer hover:shadow-elevated transition-all border border-job-gray/70 relative overflow-hidden active:scale-[0.99] ${finalRingClass}" onclick="openProfile(${runner.id})"> <div class="bg-white rounded-3xl p-3 shadow-card flex gap-3.5 cursor-pointer hover:shadow-elevated transition-all border border-job-gray/70 relative overflow-hidden active:scale-[0.99] ${finalRingClass}" onclick="openProfile(${runner.id})">
<div class="relative w-28 h-28 shrink-0 rounded-2xl overflow-hidden bg-job-bg"> <div class="relative w-28 h-28 shrink-0 rounded-2xl overflow-hidden bg-job-bg">
<img src="${runner.jobImage}" alt="${runner.title}" class="w-full h-full object-cover transition-transform duration-500 hover:scale-105" onerror="this.src='https://placehold.co/200x200/E7ECE5/7A8E76?text=Job'"> <img loading="lazy" decoding="async" src="${runner.jobImage}" alt="${runner.title}" class="w-full h-full object-cover transition-transform duration-500 hover:scale-105" onerror="this.src='https://placehold.co/200x200/E7ECE5/7A8E76?text=Job'">
</div> </div>
<div class="flex-grow flex flex-col justify-between py-0.5 overflow-hidden"> <div class="flex-grow flex flex-col justify-between py-0.5 overflow-hidden">
@@ -2648,7 +2730,7 @@
<div> <div>
<div class="flex items-center gap-2 mb-1.5"> <div class="flex items-center gap-2 mb-1.5">
<div class="relative"> <div class="relative">
<img src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover border border-job-gray" alt="${runner.name}"> <img loading="lazy" decoding="async" src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover border border-job-gray" alt="${runner.name}">
${badgeHtml} ${badgeHtml}
</div> </div>
<span class="text-[11px] text-gray-500 font-medium truncate">${runner.name}</span> <span class="text-[11px] text-gray-500 font-medium truncate">${runner.name}</span>
@@ -2707,7 +2789,7 @@
}; };
item.innerHTML = ` item.innerHTML = `
<div class="relative w-[116px] h-44 rounded-[1.25rem] overflow-hidden group-hover:scale-[1.02] transition-transform shadow-card bg-job-dark pointer-events-none select-none"> <div class="relative w-[116px] h-44 rounded-[1.25rem] overflow-hidden group-hover:scale-[1.02] transition-transform shadow-card bg-job-dark pointer-events-none select-none">
<img src="${runner.jobImage}" class="absolute inset-0 w-full h-full object-cover brightness-[0.70]" alt="${runner.title}"> <img loading="lazy" decoding="async" src="${runner.jobImage}" class="absolute inset-0 w-full h-full object-cover brightness-[0.70]" alt="${runner.title}">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/10 to-transparent"></div> <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/10 to-transparent"></div>
<div class="absolute top-2.5 left-2.5 bg-black/50 backdrop-blur-md text-white text-[9px] font-bold px-2 py-1 rounded-lg flex items-center gap-1 border border-white/10"> <div class="absolute top-2.5 left-2.5 bg-black/50 backdrop-blur-md text-white text-[9px] font-bold px-2 py-1 rounded-lg flex items-center gap-1 border border-white/10">
<i class="ph-fill ph-play text-rose-500 text-xs"></i> Short <i class="ph-fill ph-play text-rose-500 text-xs"></i> Short
@@ -2770,7 +2852,7 @@
} }
reel.innerHTML = ` reel.innerHTML = `
<video class="absolute inset-0 w-full h-full object-cover opacity-85 pointer-events-none" loop muted playsinline autoplay src="${runner.shortVideo}" poster="${runner.jobImage}"></video> <video class="absolute inset-0 w-full h-full object-cover opacity-85 pointer-events-none" loop muted playsinline autoplay preload="metadata" src="${runner.shortVideo}" poster="${runner.jobImage}"></video>
<!-- Gradient positionné plus bas pour mieux voir la vidéo --> <!-- Gradient positionné plus bas pour mieux voir la vidéo -->
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent pointer-events-none"></div> <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent pointer-events-none"></div>
@@ -2779,11 +2861,11 @@
<div class="absolute bottom-20 md:bottom-5 left-4 right-16 z-10 text-white"> <div class="absolute bottom-20 md:bottom-5 left-4 right-16 z-10 text-white">
<div class="flex items-center gap-2 mb-2 bg-white/10 backdrop-blur-md w-max px-3 py-1 rounded-full border border-white/20"> <div class="flex items-center gap-2 mb-2 bg-white/10 backdrop-blur-md w-max px-3 py-1 rounded-full border border-white/20">
<img src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover"> <img loading="lazy" decoding="async" src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover">
<span class="font-bold text-xs">${runner.name}</span> <span class="font-bold text-xs">${runner.name}</span>
${badgeHtml} ${badgeHtml}
</div> </div>
<h2 class="font-bold font-chillax text-lg leading-tight mb-1.5 text-white drop-shadow">${runner.title}</h2> <h2 class="font-bold font-titre text-lg leading-tight mb-1.5 text-white drop-shadow">${runner.title}</h2>
<p class="text-[11px] text-gray-200 line-clamp-2 mb-3 leading-relaxed">${runner.desc}</p> <p class="text-[11px] text-gray-200 line-clamp-2 mb-3 leading-relaxed">${runner.desc}</p>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
@@ -2992,7 +3074,7 @@
<div class="w-14 h-14 bg-job-bg rounded-2xl mx-auto flex items-center justify-center text-gray-400 mb-3"> <div class="w-14 h-14 bg-job-bg rounded-2xl mx-auto flex items-center justify-center text-gray-400 mb-3">
<i class="ph-bold ph-magnifying-glass text-2xl"></i> <i class="ph-bold ph-magnifying-glass text-2xl"></i>
</div> </div>
<h3 class="font-bold text-base text-job-dark mb-1 font-chillax">Aucun résultat trouvé</h3> <h3 class="font-bold text-base text-job-dark mb-1 font-titre">Aucun résultat trouvé</h3>
<p class="text-gray-400 text-xs mb-4">Essayez d'autres termes ou parcourez les catégories.</p> <p class="text-gray-400 text-xs mb-4">Essayez d'autres termes ou parcourez les catégories.</p>
<button onclick="resetFilters()" class="text-job-sage bg-job-sage-light px-4 py-2 rounded-xl text-xs font-bold"> <button onclick="resetFilters()" class="text-job-sage bg-job-sage-light px-4 py-2 rounded-xl text-xs font-bold">
Toutes les annonces Toutes les annonces
@@ -3315,7 +3397,7 @@
triggerCustomModal(`Vidéo "${vid.label}" sélectionnée pour le Short`, "check"); triggerCustomModal(`Vidéo "${vid.label}" sélectionnée pour le Short`, "check");
}; };
btn.innerHTML = ` btn.innerHTML = `
<img src="${vid.poster}" class="w-full h-full object-cover"> <img loading="lazy" decoding="async" src="${vid.poster}" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/40 flex items-center justify-center text-white"> <div class="absolute inset-0 bg-black/40 flex items-center justify-center text-white">
<i class="ph-fill ph-play-circle text-xl"></i> <i class="ph-fill ph-play-circle text-xl"></i>
</div> </div>
@@ -3554,7 +3636,7 @@
<div class="w-14 h-14 bg-job-bg rounded-2xl mx-auto flex items-center justify-center text-job-sage mb-3"> <div class="w-14 h-14 bg-job-bg rounded-2xl mx-auto flex items-center justify-center text-job-sage mb-3">
<i class="ph-bold ph-megaphone text-2xl"></i> <i class="ph-bold ph-megaphone text-2xl"></i>
</div> </div>
<h3 class="font-bold text-base text-job-dark font-chillax mb-1">Aucune annonce publiée</h3> <h3 class="font-bold text-base text-job-dark font-titre mb-1">Aucune annonce publiée</h3>
<p class="text-xs text-gray-400 mb-5">Proposez vos prestations ou chantiers pour recevoir des demandes de contrat.</p> <p class="text-xs text-gray-400 mb-5">Proposez vos prestations ou chantiers pour recevoir des demandes de contrat.</p>
<button onclick="navigate('add')" class="bg-job-sage text-white font-bold text-xs px-5 py-3 rounded-xl shadow-floating"> <button onclick="navigate('add')" class="bg-job-sage text-white font-bold text-xs px-5 py-3 rounded-xl shadow-floating">
Créer ma première annonce Créer ma première annonce
@@ -3990,7 +4072,7 @@
card.innerHTML = ` card.innerHTML = `
<div class="relative shrink-0"> <div class="relative shrink-0">
<img src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="${conv.name}"> <img loading="lazy" decoding="async" src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="${conv.name}">
<span class="absolute bottom-0 right-0 w-3 h-3 bg-emerald-500 border-2 border-white rounded-full"></span> <span class="absolute bottom-0 right-0 w-3 h-3 bg-emerald-500 border-2 border-white rounded-full"></span>
</div> </div>
<div class="flex-grow min-w-0 pr-1"> <div class="flex-grow min-w-0 pr-1">
@@ -4458,7 +4540,7 @@
item.innerHTML = ` item.innerHTML = `
<div class="relative shrink-0"> <div class="relative shrink-0">
<img src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray shadow-xs" alt="${conv.name}"> <img loading="lazy" decoding="async" src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray shadow-xs" alt="${conv.name}">
<span class="absolute bottom-0 right-0 w-3 h-3 bg-emerald-500 border-2 border-white rounded-full"></span> <span class="absolute bottom-0 right-0 w-3 h-3 bg-emerald-500 border-2 border-white rounded-full"></span>
</div> </div>
<div class="flex-grow min-w-0 pr-1"> <div class="flex-grow min-w-0 pr-1">
@@ -4532,7 +4614,7 @@
</div> </div>
<div class="rounded-2xl overflow-hidden border border-job-gray shadow-xs mb-3.5 group cursor-pointer bg-white shrink-0" onclick="openProfile(${runner.id})"> <div class="rounded-2xl overflow-hidden border border-job-gray shadow-xs mb-3.5 group cursor-pointer bg-white shrink-0" onclick="openProfile(${runner.id})">
<div class="relative aspect-video w-full overflow-hidden bg-job-bg"> <div class="relative aspect-video w-full overflow-hidden bg-job-bg">
<img src="${runner.jobImage}" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" alt="${runner.title}"> <img loading="lazy" decoding="async" src="${runner.jobImage}" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" alt="${runner.title}">
<span class="absolute top-2.5 left-2.5 bg-white/95 backdrop-blur-md text-job-dark text-[10px] font-bold px-2 py-0.5 rounded-full flex items-center gap-1 shadow-xs"> <span class="absolute top-2.5 left-2.5 bg-white/95 backdrop-blur-md text-job-dark text-[10px] font-bold px-2 py-0.5 rounded-full flex items-center gap-1 shadow-xs">
<i class="ph-fill ph-tag text-job-sage"></i> ${runner.categoryName} <i class="ph-fill ph-tag text-job-sage"></i> ${runner.categoryName}
</span> </span>
@@ -4540,7 +4622,7 @@
<div class="p-3.5"> <div class="p-3.5">
<h4 class="font-bold text-xs text-job-dark line-clamp-2 mb-1.5 group-hover:text-job-sage transition-colors leading-snug">${runner.title}</h4> <h4 class="font-bold text-xs text-job-dark line-clamp-2 mb-1.5 group-hover:text-job-sage transition-colors leading-snug">${runner.title}</h4>
<div class="flex items-baseline gap-1.5 mb-1.5"> <div class="flex items-baseline gap-1.5 mb-1.5">
<span class="text-base font-extrabold text-job-dark font-chillax">${runner.price} €</span> <span class="text-base font-extrabold text-job-dark font-titre">${runner.price} €</span>
<span class="text-xs text-gray-400 font-medium">${runner.time === 'forfait' ? 'au forfait' : '/ ' + runner.time}</span> <span class="text-xs text-gray-400 font-medium">${runner.time === 'forfait' ? 'au forfait' : '/ ' + runner.time}</span>
</div> </div>
<div class="flex items-center gap-1 text-xs text-amber-500 font-bold"> <div class="flex items-center gap-1 text-xs text-amber-500 font-bold">
@@ -4601,7 +4683,7 @@
if (att.type === 'photo') { if (att.type === 'photo') {
return ` return `
<div class="${bgClass} rounded-2xl ${isMe ? 'rounded-tr-sm' : 'rounded-tl-sm'} p-2 max-w-[78%] shadow-xs"> <div class="${bgClass} rounded-2xl ${isMe ? 'rounded-tr-sm' : 'rounded-tl-sm'} p-2 max-w-[78%] shadow-xs">
<img src="${att.url}" class="rounded-xl w-full max-h-48 object-cover mb-1.5 shadow-xs" alt="Photo jointe"> <img loading="lazy" decoding="async" src="${att.url}" class="rounded-xl w-full max-h-48 object-cover mb-1.5 shadow-xs" alt="Photo jointe">
<p class="text-[11px] font-semibold px-1 ${isMe ? 'text-white/90' : 'text-gray-600'}">${att.caption || 'Photo jointe'}</p> <p class="text-[11px] font-semibold px-1 ${isMe ? 'text-white/90' : 'text-gray-600'}">${att.caption || 'Photo jointe'}</p>
</div>`; </div>`;
} else if (att.type === 'link') { } else if (att.type === 'link') {
@@ -5738,7 +5820,7 @@
<div class="bg-white rounded-3xl p-4 shadow-card border border-job-gray/80 flex flex-col gap-2.5"> <div class="bg-white rounded-3xl p-4 shadow-card border border-job-gray/80 flex flex-col gap-2.5">
<div class="flex justify-between items-start"> <div class="flex justify-between items-start">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<img src="${tx.partyAvatar}" class="w-10 h-10 rounded-full object-cover border border-job-gray"> <img loading="lazy" decoding="async" src="${tx.partyAvatar}" class="w-10 h-10 rounded-full object-cover border border-job-gray">
<div> <div>
<h3 class="font-bold text-xs text-job-dark leading-tight">${tx.title}</h3> <h3 class="font-bold text-xs text-job-dark leading-tight">${tx.title}</h3>
<span class="text-[10px] text-gray-500">${isPaid ? 'Prestataire :' : 'Client :'} <strong>${tx.partyName}</strong> • ${tx.date}</span> <span class="text-[10px] text-gray-500">${isPaid ? 'Prestataire :' : 'Client :'} <strong>${tx.partyName}</strong> • ${tx.date}</span>
@@ -6346,8 +6428,8 @@
<!-- 1. Colonne : Présentation & Mission --> <!-- 1. Colonne : Présentation & Mission -->
<div class="space-y-2.5"> <div class="space-y-2.5">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<img src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-8 h-8 rounded-lg object-contain object-center shadow-sm select-none shrink-0" onerror="handleLogoError(this, 'sage')"> <img loading="lazy" decoding="async" src="assets/img/logo.png" alt="Logo Jobrunner" class="w-8 h-8 object-contain object-center select-none shrink-0" onerror="handleLogoError(this, 'sage')">
<span class="font-chillax text-xl font-black tracking-tight text-white">Job<span class="text-job-sage">runner</span></span> <span class="font-titre text-xl font-black tracking-tight text-white">Job<span class="text-job-sage">runner</span></span>
</div> </div>
<p class="text-[11px] text-gray-400 leading-relaxed"> <p class="text-[11px] text-gray-400 leading-relaxed">
Plateforme française de mise en relation de confiance pour vos services et travaux avec paiement séquestre. Plateforme française de mise en relation de confiance pour vos services et travaux avec paiement séquestre.
@@ -6365,7 +6447,7 @@
<!-- 2. Colonne : Sécurisation & Garanties --> <!-- 2. Colonne : Sécurisation & Garanties -->
<div class="space-y-2"> <div class="space-y-2">
<h3 class="font-chillax font-bold text-xs text-white flex items-center gap-1.5"> <h3 class="font-titre font-bold text-xs text-white flex items-center gap-1.5">
<i class="ph-bold ph-shield-check text-job-sage text-sm"></i> <i class="ph-bold ph-shield-check text-job-sage text-sm"></i>
Sécurité & Séquestre Sécurité & Séquestre
</h3> </h3>
@@ -6399,7 +6481,7 @@
<!-- 3. Colonne : Rejoindre sur les réseaux --> <!-- 3. Colonne : Rejoindre sur les réseaux -->
<div class="space-y-2"> <div class="space-y-2">
<h3 class="font-chillax font-bold text-xs text-white flex items-center gap-1.5"> <h3 class="font-titre font-bold text-xs text-white flex items-center gap-1.5">
<i class="ph-bold ph-share-network text-job-sage text-sm"></i> <i class="ph-bold ph-share-network text-job-sage text-sm"></i>
Nous rejoindre Nous rejoindre
</h3> </h3>
@@ -6445,7 +6527,7 @@
<!-- 4. Colonne : Mentions Légales & Qui sommes-nous --> <!-- 4. Colonne : Mentions Légales & Qui sommes-nous -->
<div class="space-y-2"> <div class="space-y-2">
<h3 class="font-chillax font-bold text-xs text-white flex items-center gap-1.5"> <h3 class="font-titre font-bold text-xs text-white flex items-center gap-1.5">
<i class="ph-bold ph-scales text-job-sage text-sm"></i> <i class="ph-bold ph-scales text-job-sage text-sm"></i>
Informations Légales Informations Légales
</h3> </h3>