feat(beta): formulaire et gate autonomes, deploiement dns
Cette révision appartient à :
1 Parent
7e23443f1b
révision
2034610335
6 fichiers modifiés
+2406
-102
Aucun fichier ne correspond à votre recherche
@@ -34,3 +34,5 @@ WhatsApp Video*.mp4
|
||||
# Bêta testeurs : base locale, captures, codes émis (jamais dans git)
|
||||
beta/data/
|
||||
beta/pdf/*.ttf
|
||||
__pycache__/
|
||||
*.pyc
|
||||
+34
-13
@@ -14,9 +14,40 @@ import time
|
||||
from pathlib import Path
|
||||
|
||||
ICI = Path(__file__).resolve().parent
|
||||
DATA = Path(os.environ.get("BETA_DATA", ICI / "data"))
|
||||
ALPHABET = "ABCDEFGHJKMNPQRSTUVWXYZ23456789" # sans I, L, O, 0, 1
|
||||
|
||||
|
||||
def dossier_data():
|
||||
return Path(os.environ.get("BETA_DATA", ICI / "data"))
|
||||
|
||||
|
||||
def dossier_prive():
|
||||
"""Dossier de données en 0700 (sous Windows, chmod est sans effet : voir README)."""
|
||||
d = dossier_data()
|
||||
d.mkdir(mode=0o700, parents=True, exist_ok=True)
|
||||
try:
|
||||
os.chmod(d, 0o700)
|
||||
except OSError:
|
||||
pass
|
||||
return d
|
||||
|
||||
|
||||
class _DataProxy:
|
||||
def __truediv__(self, other):
|
||||
return dossier_data() / other
|
||||
|
||||
def __getattr__(self, name):
|
||||
return getattr(dossier_data(), name)
|
||||
|
||||
def __fspath__(self):
|
||||
return str(dossier_data())
|
||||
|
||||
def __str__(self):
|
||||
return str(dossier_data())
|
||||
|
||||
|
||||
DATA = _DataProxy()
|
||||
|
||||
SCHEMA = """
|
||||
CREATE TABLE IF NOT EXISTS codes(
|
||||
id INTEGER PRIMARY KEY, label TEXT NOT NULL, code_hash TEXT NOT NULL,
|
||||
@@ -52,15 +83,6 @@ CREATE TABLE IF NOT EXISTS demo_activity(
|
||||
"""
|
||||
|
||||
|
||||
def dossier_prive():
|
||||
"""Dossier de données en 0700 (sous Windows, chmod est sans effet : voir README)."""
|
||||
DATA.mkdir(mode=0o700, parents=True, exist_ok=True)
|
||||
try:
|
||||
os.chmod(DATA, 0o700)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
||||
def connect(path=None, check_same_thread=True):
|
||||
dossier_prive()
|
||||
ancien = os.umask(0o077) # base, -wal et -shm créés en 0600
|
||||
@@ -72,7 +94,7 @@ def connect(path=None, check_same_thread=True):
|
||||
|
||||
|
||||
def _ouvrir(path, check_same_thread):
|
||||
c = sqlite3.connect(str(path or DATA / "beta.sqlite"), timeout=10, check_same_thread=check_same_thread)
|
||||
c = sqlite3.connect(str(path or dossier_prive() / "beta.sqlite"), timeout=10, check_same_thread=check_same_thread)
|
||||
c.row_factory = sqlite3.Row
|
||||
c.execute("PRAGMA journal_mode=WAL")
|
||||
c.executescript(SCHEMA)
|
||||
@@ -81,8 +103,7 @@ def _ouvrir(path, check_same_thread):
|
||||
|
||||
def sel():
|
||||
"""Sel local (créé au premier usage, hors git, jamais affiché)."""
|
||||
f = DATA / "sel.bin"
|
||||
dossier_prive()
|
||||
f = dossier_prive() / "sel.bin"
|
||||
try:
|
||||
fd = os.open(f, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600)
|
||||
with os.fdopen(fd, "wb") as fh:
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Ajoute l'enregistrement A beta.jobrunner.fr via l'API Infomaniak (à lancer sur cornafsuisse).
|
||||
|
||||
Le jeton est lu dans ~/.config/infomaniak/api_token, jamais affiché ni écrit ailleurs.
|
||||
Mode par défaut : lecture seule + sauvegarde de la zone. --ajouter pour créer la ligne.
|
||||
"""
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
|
||||
DOMAINE = "jobrunner.fr"
|
||||
SOURCE = "beta"
|
||||
CIBLE = "179.237.102.233"
|
||||
TTL = 300
|
||||
BASE = "https://api.infomaniak.com/2"
|
||||
|
||||
|
||||
def appel(methode, chemin, jeton, corps=None):
|
||||
donnees = json.dumps(corps).encode() if corps is not None else None
|
||||
req = urllib.request.Request(BASE + chemin, data=donnees, method=methode)
|
||||
req.add_header("Authorization", "Bearer " + jeton)
|
||||
req.add_header("Accept", "application/json")
|
||||
if donnees is not None:
|
||||
req.add_header("Content-Type", "application/json")
|
||||
try:
|
||||
with urllib.request.urlopen(req, timeout=20) as r:
|
||||
return json.loads(r.read().decode())
|
||||
except urllib.error.HTTPError as e:
|
||||
try:
|
||||
return json.loads(e.read().decode())
|
||||
except Exception:
|
||||
return {"result": "error", "error": {"code": "http_%d" % e.code}}
|
||||
|
||||
|
||||
def main():
|
||||
ajouter = "--ajouter" in sys.argv
|
||||
chemin_jeton = os.path.expanduser("~/.config/infomaniak/api_token")
|
||||
with open(chemin_jeton, encoding="utf-8") as f:
|
||||
jeton = f.read().strip()
|
||||
|
||||
zone = appel("GET", "/zones/%s/records" % DOMAINE, jeton)
|
||||
if zone.get("result") != "success":
|
||||
print("Erreur API (lecture) :", (zone.get("error") or {}).get("description") or (zone.get("error") or {}).get("code"))
|
||||
return 1
|
||||
|
||||
dossier = os.path.expanduser("~/sauvegardes/dns")
|
||||
os.makedirs(dossier, exist_ok=True)
|
||||
nom = os.path.join(dossier, "zone-avant-jobrunner-beta-%s.json" % time.strftime("%Y%m%d-%H%M%S"))
|
||||
with open(nom, "w", encoding="utf-8") as f:
|
||||
json.dump(zone, f, ensure_ascii=False, indent=1)
|
||||
os.chmod(nom, 0o600)
|
||||
print("Sauvegarde de la zone :", nom, "(%d enregistrements)" % len(zone["data"]))
|
||||
|
||||
existants = [r for r in zone["data"] if r.get("source") == SOURCE]
|
||||
print("Lignes A de la zone :")
|
||||
for r in zone["data"]:
|
||||
if r.get("type") == "A":
|
||||
src = "@" if r.get("source") in ("", ".") else r.get("source")
|
||||
print(" A %-12s -> %s (ttl %s)" % (src, r.get("target"), r.get("ttl")))
|
||||
if existants:
|
||||
print("Une ligne '%s' existe déjà :" % SOURCE, [(r["type"], r["target"]) for r in existants])
|
||||
return 0
|
||||
|
||||
if not ajouter:
|
||||
print("Simulation : '%s' absent. Relance avec --ajouter pour créer A %s -> %s." % (SOURCE, SOURCE, CIBLE))
|
||||
return 0
|
||||
|
||||
rep = appel("POST", "/zones/%s/records" % DOMAINE, jeton,
|
||||
{"type": "A", "source": SOURCE, "target": CIBLE, "ttl": TTL})
|
||||
if rep.get("result") == "success":
|
||||
print("OK : A %s.%s -> %s créé." % (SOURCE, DOMAINE, CIBLE))
|
||||
return 0
|
||||
print("Erreur API (création) :", (rep.get("error") or {}).get("description") or (rep.get("error") or {}).get("code"))
|
||||
return 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Diff désactivé car ce fichier est trop long.
Voir la Diff
+679
-15
@@ -5,13 +5,657 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>JobRunner bêta · accès testeurs</title>
|
||||
<link rel="icon" type="image/png" href="/assets/img/logo.png">
|
||||
<link rel="stylesheet" href="/assets/css/fonts.css">
|
||||
<link rel="stylesheet" href="/__beta/static/pages.css">
|
||||
<link rel="icon" type="image/png" href="../../assets/img/logo.png">
|
||||
<link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=chillax@400,600,700&display=swap">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'Chillax';
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url('/assets/fonts/chillax-latin-400-normal.woff2') format('woff2'),
|
||||
url('../../assets/fonts/chillax-latin-400-normal.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Chillax';
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url('/assets/fonts/chillax-latin-700-normal.woff2') format('woff2'),
|
||||
url('../../assets/fonts/chillax-latin-700-normal.woff2') format('woff2');
|
||||
}
|
||||
|
||||
/* Pages de la bêta hors application (porte d'entrée, formulaire) : charte JobRunner */
|
||||
:root {
|
||||
--fond: #F2F0E6;
|
||||
--sauge: #8B9E90;
|
||||
--sauge-sombre: #6E8173;
|
||||
--sauge-clair: #D8E0DA;
|
||||
--sauge-fond: #EBF0EC;
|
||||
--texte: #2D2D2D;
|
||||
--texte-doux: #5A5A5A;
|
||||
--texte-muet: #7A7A7A;
|
||||
--chair: #E8D5C4;
|
||||
--chair-clair: #F6EDE5;
|
||||
--filet: #E0DDD5;
|
||||
--filet-fort: #CEC9BD;
|
||||
--carte: #FFFFFF;
|
||||
--carte-teintee: #F8F7F1;
|
||||
--ombre: 0 10px 30px -10px rgba(45, 45, 45, 0.08), 0 2px 6px -1px rgba(45, 45, 45, 0.04);
|
||||
--ombre-carte: 0 16px 40px -12px rgba(45, 45, 45, 0.12);
|
||||
--rayon-xl: 28px;
|
||||
--rayon-lg: 20px;
|
||||
--rayon-md: 14px;
|
||||
--rayon-sm: 10px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--fond);
|
||||
color: var(--texte);
|
||||
font-family: 'Chillax', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
|
||||
line-height: 1.55;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--sauge-sombre);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--texte);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Conteneurs */
|
||||
main {
|
||||
max-width: 760px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 20px 80px;
|
||||
}
|
||||
|
||||
main.centre {
|
||||
max-width: 480px;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
padding: 32px 20px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Rétro-compatibilité pour gate.html */
|
||||
.chapo {
|
||||
color: var(--texte-doux);
|
||||
max-width: 460px;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.logo {
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 8px 20px -6px rgba(45, 45, 45, 0.15);
|
||||
}
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
padding: 6px 14px;
|
||||
border-radius: 999px;
|
||||
background: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.carte {
|
||||
background: var(--carte);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-lg);
|
||||
padding: 24px;
|
||||
width: 100%;
|
||||
max-width: 460px;
|
||||
text-align: left;
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
#code {
|
||||
text-align: center;
|
||||
letter-spacing: 0.1em;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.btn {
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 13px 26px;
|
||||
cursor: pointer;
|
||||
margin-top: 16px;
|
||||
width: 100%;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.btn-primaire {
|
||||
background: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.btn-primaire:hover {
|
||||
background: var(--sauge-sombre);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: wait;
|
||||
}
|
||||
.erreur {
|
||||
color: #A0554B;
|
||||
font-weight: 600;
|
||||
min-height: 1.4em;
|
||||
margin: 10px 0 0;
|
||||
}
|
||||
.petit {
|
||||
font-size: 13px;
|
||||
color: var(--texte-doux);
|
||||
max-width: 460px;
|
||||
}
|
||||
|
||||
/* En-tête de marque */
|
||||
.entete-marque {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.logo-wrap {
|
||||
position: relative;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.logo-wrap img {
|
||||
border-radius: 22px;
|
||||
box-shadow: 0 8px 20px -6px rgba(45, 45, 45, 0.15);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.badge-beta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
padding: 5px 14px;
|
||||
border-radius: 999px;
|
||||
background-color: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.badge-beta i {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background-color: #FFFFFF;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(28px, 5vw, 38px);
|
||||
font-weight: 800;
|
||||
line-height: 1.15;
|
||||
margin: 6px 0 10px;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.sous-titre {
|
||||
color: var(--texte-doux);
|
||||
font-size: clamp(15px, 2.5vw, 17px);
|
||||
max-width: 580px;
|
||||
margin: 0 auto;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Bannière d'avantages testeurs */
|
||||
.avantages-grille {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
|
||||
gap: 14px;
|
||||
margin: 28px 0 32px;
|
||||
}
|
||||
|
||||
.avantage-carte {
|
||||
background: var(--carte);
|
||||
border: 1px solid var(--filet);
|
||||
border-radius: var(--rayon-md);
|
||||
padding: 16px 18px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
|
||||
.avantage-ico {
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
background: var(--sauge-fond);
|
||||
padding: 8px;
|
||||
border-radius: 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.avantage-texte strong {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--texte);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.avantage-texte span {
|
||||
font-size: 13px;
|
||||
color: var(--texte-doux);
|
||||
line-height: 1.35;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Carte Formulaire */
|
||||
.carte-form {
|
||||
background: var(--carte);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-xl);
|
||||
padding: 36px 32px;
|
||||
box-shadow: var(--ombre-carte);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.carte-form {
|
||||
padding: 24px 18px;
|
||||
border-radius: var(--rayon-lg);
|
||||
}
|
||||
}
|
||||
|
||||
.form-section {
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.form-section-titre {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--sauge-sombre);
|
||||
margin: 0 0 16px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.form-section-titre span.numero {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background: var(--sauge);
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.champs-grille {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 580px) {
|
||||
.champs-grille {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.champ {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.champ label {
|
||||
font-size: 13.5px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 6px;
|
||||
color: var(--texte);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.champ label .aide {
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: var(--texte-muet);
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="tel"],
|
||||
input[type="date"] {
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
font-size: 15px;
|
||||
padding: 13px 16px;
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-md);
|
||||
background-color: #FAFAFA;
|
||||
color: var(--texte);
|
||||
outline: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
input:hover {
|
||||
border-color: var(--filet-fort);
|
||||
}
|
||||
|
||||
input:focus {
|
||||
background-color: #FFFFFF;
|
||||
border-color: var(--sauge);
|
||||
box-shadow: 0 0 0 3px rgba(139, 158, 144, 0.25);
|
||||
}
|
||||
|
||||
/* Bloc parent pour mineurs */
|
||||
.bloc-parent {
|
||||
background: var(--chair-clair);
|
||||
border: 1.5px solid var(--chair);
|
||||
border-radius: var(--rayon-md);
|
||||
padding: 20px;
|
||||
margin: 16px 0;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.bloc-parent.cache {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bloc-parent-titre {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
margin: 0 0 6px 0;
|
||||
color: #7D5D44;
|
||||
}
|
||||
|
||||
.bloc-parent-desc {
|
||||
font-size: 13px;
|
||||
color: #7D5D44;
|
||||
margin: 0 0 14px 0;
|
||||
}
|
||||
|
||||
/* Cartes de consentement tactiles */
|
||||
.options-liste {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.option-carte {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14px;
|
||||
background: var(--carte-teintee);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-md);
|
||||
padding: 14px 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.option-carte:hover {
|
||||
border-color: var(--sauge);
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.option-carte:has(input:checked) {
|
||||
border-color: var(--sauge);
|
||||
background: var(--sauge-fond);
|
||||
}
|
||||
|
||||
.option-carte input[type="checkbox"] {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: 2px solid var(--filet-fort);
|
||||
border-radius: 7px;
|
||||
background: #FFFFFF;
|
||||
margin: 2px 0 0 0;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.option-carte input[type="checkbox"]:checked {
|
||||
background: var(--sauge);
|
||||
border-color: var(--sauge);
|
||||
}
|
||||
|
||||
.option-carte input[type="checkbox"]:checked::before {
|
||||
content: "";
|
||||
width: 10px;
|
||||
height: 6px;
|
||||
border-left: 2px solid #FFFFFF;
|
||||
border-bottom: 2px solid #FFFFFF;
|
||||
transform: rotate(-45deg) translate(1px, -1px);
|
||||
}
|
||||
|
||||
.option-texte {
|
||||
font-size: 13.5px;
|
||||
line-height: 1.45;
|
||||
color: var(--texte);
|
||||
}
|
||||
|
||||
.option-texte strong {
|
||||
display: block;
|
||||
font-weight: 700;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.option-texte span {
|
||||
color: var(--texte-doux);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
/* Réseaux sociaux */
|
||||
.reseaux-suivi {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.reseau-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: 999px;
|
||||
padding: 6px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--texte);
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.reseau-chip:hover {
|
||||
border-color: var(--sauge);
|
||||
color: var(--sauge-sombre);
|
||||
transform: translateY(-1px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Boutons */
|
||||
.btn-soumettre {
|
||||
font-family: inherit;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
background-color: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
padding: 16px 32px;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
margin-top: 24px;
|
||||
box-shadow: 0 8px 20px -4px rgba(139, 158, 144, 0.4);
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.btn-soumettre:hover {
|
||||
background-color: var(--sauge-sombre);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 24px -6px rgba(139, 158, 144, 0.5);
|
||||
}
|
||||
|
||||
.btn-soumettre:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-soumettre:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* Écran de succès */
|
||||
.succes-carte {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
.succes-icone {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
background: var(--sauge-fond);
|
||||
color: var(--sauge);
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
font-size: 36px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.succes-carte h2 {
|
||||
font-size: 26px;
|
||||
font-weight: 800;
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
|
||||
.succes-carte p {
|
||||
color: var(--texte-doux);
|
||||
font-size: 15px;
|
||||
max-width: 480px;
|
||||
margin: 0 auto 28px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.succes-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
max-width: 380px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.btn-secondaire {
|
||||
font-family: inherit;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
background: #FFFFFF;
|
||||
color: var(--texte);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: 999px;
|
||||
padding: 13px 24px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.btn-secondaire:hover {
|
||||
border-color: var(--texte);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Pied de page */
|
||||
.pied-form {
|
||||
text-align: center;
|
||||
margin-top: 32px;
|
||||
color: var(--texte-muet);
|
||||
font-size: 13.5px;
|
||||
}
|
||||
|
||||
.pied-form a {
|
||||
color: var(--texte-doux);
|
||||
}
|
||||
|
||||
.pied-form a:hover {
|
||||
color: var(--texte);
|
||||
}
|
||||
|
||||
.message-alerte {
|
||||
padding: 12px 16px;
|
||||
border-radius: var(--rayon-md);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-top: 14px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.message-alerte.erreur {
|
||||
background: #FDF2F0;
|
||||
color: #A0554B;
|
||||
border: 1px solid #F5D6D1;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.piege-robot {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="centre">
|
||||
<img class="logo" src="/assets/img/logo.png" alt="JobRunner" width="88" height="88">
|
||||
<img id="logo-gate" class="logo" src="../../assets/img/logo.png" alt="JobRunner" width="88" height="88">
|
||||
<span class="badge">Bêta · version de test</span>
|
||||
<h1>Accès testeurs</h1>
|
||||
<p class="chapo">Entrez le code que JobRunner vous a communiqué. Tout ce que vous verrez ici est fictif : profils, annonces et paiements sont <b>simulés</b>.</p>
|
||||
@@ -24,17 +668,37 @@
|
||||
<p class="petit">Pas encore de code ? <a href="/__beta/formulaire">Remplissez le formulaire testeur</a> ou téléchargez le <a href="/__beta/static/pdf/formulaire-testeur-jobrunner.pdf">formulaire PDF</a>.</p>
|
||||
</main>
|
||||
<script>
|
||||
const f=document.getElementById('f'),m=document.getElementById('msg'),i=document.getElementById('code');
|
||||
f.addEventListener('submit',async e=>{
|
||||
e.preventDefault(); m.textContent=''; const b=f.querySelector('button'); b.disabled=true;
|
||||
try{
|
||||
const r=await fetch('/__beta/api/enter',{method:'POST',headers:{'Content-Type':'application/json','X-Beta':'1'},body:JSON.stringify({code:i.value})});
|
||||
const d=await r.json().catch(()=>({}));
|
||||
if(r.ok&&d.ok){location.href=d.suite||'/app.html';return}
|
||||
m.textContent=d.erreur||'Accès refusé.';
|
||||
}catch(_){m.textContent='Connexion impossible. Réessayez.'}
|
||||
b.disabled=false;
|
||||
});
|
||||
(function() {
|
||||
const logo = document.getElementById('logo-gate');
|
||||
const b64Logo = 'data:image/png;base64,iVBORw0KGgoAAA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IPLkmdDJBKJRKKbrXUbV1C/4NuMGg0V3Hn4aFU2N1Gg1gBm2FAuUO9Zgd8fFtztBhludvsu7AIZaMYx9yfPZ2M/DXs44ReOZfexHRSdFEZhMYModft6qdkQiUQikehma92WVVyjgcygqNHAaA7UFmjQQO2BDuyF6jXsDgVudoMKN7t9F247aGB/AUsYtVJ1voL2n9pD46aNppCogbRs5QJ6/c3nBDhEIpFIJLpZAmigeeHAqf1U0lBk1GiYCbJ0kNdNGF0BNNgmaOjOqnYoYjCq8XC68oyiNJ5m/kT2YRo3ZQRFxofS/EXT6fXXnxXYEIlEIpHoZmjjtrUUHDmADqUf5KnYjWGlRspv3+yqfqCBwO8GBW52gwo3u30Xbhk00JfEr/al3pgXBX1NML08ammqz1dQtjeNkkclUkTcIJq3YCq9++fX3jNPgUgkEolEos7ShtR1vhqN8sYyKqorss0/YoCG13RRrQEd7lDQFrcNNPwgww4a5igUJ2jg0Xu6kMrOlvJsr7nl2VyzkV2SQZNmYZr5EJo5ZyI98ftH6cq1L0+Yp0IkEolEIlLigne tronquée
|
||||
if (logo) {
|
||||
if (location.protocol === 'http:' || location.protocol === 'https:') {
|
||||
logo.src = '/assets/img/logo.png';
|
||||
}
|
||||
logo.onerror = function() {
|
||||
this.onerror = null;
|
||||
this.src = b64Logo;
|
||||
};
|
||||
}
|
||||
|
||||
const f = document.getElementById('f'), m = document.getElementById('msg'), i = document.getElementById('code');
|
||||
f.addEventListener('submit', async e => {
|
||||
e.preventDefault(); m.textContent = ''; const b = f.querySelector('button'); b.disabled = true;
|
||||
try {
|
||||
const r = await fetch('/__beta/api/enter', {
|
||||
method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', 'X-Beta': '1'},
|
||||
body: JSON.stringify({code: i.value})
|
||||
});
|
||||
const d = await r.json().catch(() => ({}));
|
||||
if (r.ok && d.ok) { location.href = d.suite || '/app.html'; return; }
|
||||
m.textContent = d.erreur || 'Accès refusé.';
|
||||
} catch (_) {
|
||||
m.textContent = 'Connexion impossible. Réessayez.';
|
||||
}
|
||||
b.disabled = false;
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
+624
-27
@@ -1,28 +1,625 @@
|
||||
/* Pages de la bêta hors application (porte d'entrée, formulaire) : charte JobRunner */
|
||||
:root{--fond:#F2F0E6;--sauge:#8B9E90;--texte:#2D2D2D;--chair:#E8D5C4;--filet:#E0DDD5;--carte:#F8F7F1;--doux:#6B6B6B;--rayon:22px}
|
||||
*{box-sizing:border-box}
|
||||
html,body{margin:0;background:var(--fond);color:var(--texte);font-family:Chillax,Outfit,system-ui,sans-serif;line-height:1.55}
|
||||
main{max-width:640px;margin:0 auto;padding:32px 16px 64px}
|
||||
main.centre{text-align:center;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
|
||||
h1{font-size:clamp(28px,6vw,40px);font-weight:800;line-height:1.15;margin:4px 0}
|
||||
h2{font-size:18px;margin:26px 0 8px}
|
||||
.chapo{color:var(--doux);max-width:460px;margin:0 0 8px}
|
||||
.logo{border-radius:20px}
|
||||
.badge{display:inline-flex;font-size:13px;font-weight:600;padding:6px 14px;border-radius:999px;background:var(--sauge);color:var(--fond)}
|
||||
.carte{background:var(--carte);border:1px solid var(--filet);border-radius:var(--rayon);padding:20px;width:100%;max-width:460px;text-align:left}
|
||||
label{display:block;font-weight:600;font-size:14px;margin:12px 0 6px}
|
||||
input[type=text],input[type=email],input[type=tel],input[type=date]{width:100%;font:inherit;font-size:16px;padding:12px 14px;border:1.5px solid var(--filet);border-radius:14px;background:#fff;color:var(--texte)}
|
||||
input:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid var(--sauge);outline-offset:2px}
|
||||
#code{text-align:center;letter-spacing:.08em;text-transform:uppercase}
|
||||
.btn{font:inherit;font-weight:600;font-size:15px;border:0;border-radius:999px;padding:13px 26px;cursor:pointer;margin-top:16px;width:100%}
|
||||
.btn-primaire{background:var(--sauge);color:var(--fond)}
|
||||
.btn:disabled{opacity:.6;cursor:wait}
|
||||
.erreur{color:#A0554B;font-weight:600;min-height:1.4em;margin:10px 0 0}
|
||||
.ok{color:#4F7A55;font-weight:700}
|
||||
.petit{font-size:13px;color:var(--doux);max-width:460px}
|
||||
a{color:var(--texte)}
|
||||
.case{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:14px;margin:10px 0}
|
||||
.case input{margin-top:3px;width:20px;height:20px;accent-color:var(--sauge);flex:none}
|
||||
.piege{position:absolute;left:-9999px;height:0;overflow:hidden}
|
||||
.cache{display:none}
|
||||
.note{background:var(--chair);border-radius:14px;padding:12px 14px;font-size:14px}
|
||||
:root {
|
||||
--fond: #F2F0E6;
|
||||
--sauge: #8B9E90;
|
||||
--sauge-sombre: #6E8173;
|
||||
--sauge-clair: #D8E0DA;
|
||||
--sauge-fond: #EBF0EC;
|
||||
--texte: #2D2D2D;
|
||||
--texte-doux: #5A5A5A;
|
||||
--texte-muet: #7A7A7A;
|
||||
--chair: #E8D5C4;
|
||||
--chair-clair: #F6EDE5;
|
||||
--filet: #E0DDD5;
|
||||
--filet-fort: #CEC9BD;
|
||||
--carte: #FFFFFF;
|
||||
--carte-teintee: #F8F7F1;
|
||||
--ombre: 0 10px 30px -10px rgba(45, 45, 45, 0.08), 0 2px 6px -1px rgba(45, 45, 45, 0.04);
|
||||
--ombre-carte: 0 16px 40px -12px rgba(45, 45, 45, 0.12);
|
||||
--rayon-xl: 28px;
|
||||
--rayon-lg: 20px;
|
||||
--rayon-md: 14px;
|
||||
--rayon-sm: 10px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--fond);
|
||||
color: var(--texte);
|
||||
font-family: 'Chillax', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
|
||||
line-height: 1.55;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--sauge-sombre);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--texte);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Conteneurs */
|
||||
main {
|
||||
max-width: 760px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 20px 80px;
|
||||
}
|
||||
|
||||
main.centre {
|
||||
max-width: 480px;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
padding: 32px 20px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Rétro-compatibilité pour gate.html */
|
||||
.chapo {
|
||||
color: var(--texte-doux);
|
||||
max-width: 460px;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.logo {
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 8px 20px -6px rgba(45, 45, 45, 0.15);
|
||||
}
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
padding: 6px 14px;
|
||||
border-radius: 999px;
|
||||
background: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.carte {
|
||||
background: var(--carte);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-lg);
|
||||
padding: 24px;
|
||||
width: 100%;
|
||||
max-width: 460px;
|
||||
text-align: left;
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
#code {
|
||||
text-align: center;
|
||||
letter-spacing: 0.1em;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.btn {
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 13px 26px;
|
||||
cursor: pointer;
|
||||
margin-top: 16px;
|
||||
width: 100%;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.btn-primaire {
|
||||
background: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.btn-primaire:hover {
|
||||
background: var(--sauge-sombre);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: wait;
|
||||
}
|
||||
.erreur {
|
||||
color: #A0554B;
|
||||
font-weight: 600;
|
||||
min-height: 1.4em;
|
||||
margin: 10px 0 0;
|
||||
}
|
||||
.petit {
|
||||
font-size: 13px;
|
||||
color: var(--texte-doux);
|
||||
max-width: 460px;
|
||||
}
|
||||
|
||||
/* En-tête de marque */
|
||||
.entete-marque {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.logo-wrap {
|
||||
position: relative;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.logo-wrap img {
|
||||
border-radius: 22px;
|
||||
box-shadow: 0 8px 20px -6px rgba(45, 45, 45, 0.15);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.badge-beta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
padding: 5px 14px;
|
||||
border-radius: 999px;
|
||||
background-color: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.badge-beta i {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background-color: #FFFFFF;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(28px, 5vw, 38px);
|
||||
font-weight: 800;
|
||||
line-height: 1.15;
|
||||
margin: 6px 0 10px;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.sous-titre {
|
||||
color: var(--texte-doux);
|
||||
font-size: clamp(15px, 2.5vw, 17px);
|
||||
max-width: 580px;
|
||||
margin: 0 auto;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Bannière d'avantages testeurs */
|
||||
.avantages-grille {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
|
||||
gap: 14px;
|
||||
margin: 28px 0 32px;
|
||||
}
|
||||
|
||||
.avantage-carte {
|
||||
background: var(--carte);
|
||||
border: 1px solid var(--filet);
|
||||
border-radius: var(--rayon-md);
|
||||
padding: 16px 18px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
|
||||
.avantage-ico {
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
background: var(--sauge-fond);
|
||||
padding: 8px;
|
||||
border-radius: 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.avantage-texte strong {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--texte);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.avantage-texte span {
|
||||
font-size: 13px;
|
||||
color: var(--texte-doux);
|
||||
line-height: 1.35;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Carte Formulaire */
|
||||
.carte-form {
|
||||
background: var(--carte);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-xl);
|
||||
padding: 36px 32px;
|
||||
box-shadow: var(--ombre-carte);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.carte-form {
|
||||
padding: 24px 18px;
|
||||
border-radius: var(--rayon-lg);
|
||||
}
|
||||
}
|
||||
|
||||
.form-section {
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.form-section-titre {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--sauge-sombre);
|
||||
margin: 0 0 16px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.form-section-titre span.numero {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background: var(--sauge);
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.champs-grille {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 580px) {
|
||||
.champs-grille {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.champ {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.champ label {
|
||||
font-size: 13.5px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 6px;
|
||||
color: var(--texte);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.champ label .aide {
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: var(--texte-muet);
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="tel"],
|
||||
input[type="date"] {
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
font-size: 15px;
|
||||
padding: 13px 16px;
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-md);
|
||||
background-color: #FAFAFA;
|
||||
color: var(--texte);
|
||||
outline: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
input:hover {
|
||||
border-color: var(--filet-fort);
|
||||
}
|
||||
|
||||
input:focus {
|
||||
background-color: #FFFFFF;
|
||||
border-color: var(--sauge);
|
||||
box-shadow: 0 0 0 3px rgba(139, 158, 144, 0.25);
|
||||
}
|
||||
|
||||
/* Bloc parent pour mineurs */
|
||||
.bloc-parent {
|
||||
background: var(--chair-clair);
|
||||
border: 1.5px solid var(--chair);
|
||||
border-radius: var(--rayon-md);
|
||||
padding: 20px;
|
||||
margin: 16px 0;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.bloc-parent.cache {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bloc-parent-titre {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
margin: 0 0 6px 0;
|
||||
color: #7D5D44;
|
||||
}
|
||||
|
||||
.bloc-parent-desc {
|
||||
font-size: 13px;
|
||||
color: #7D5D44;
|
||||
margin: 0 0 14px 0;
|
||||
}
|
||||
|
||||
/* Cartes de consentement tactiles */
|
||||
.options-liste {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.option-carte {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14px;
|
||||
background: var(--carte-teintee);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: var(--rayon-md);
|
||||
padding: 14px 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.option-carte:hover {
|
||||
border-color: var(--sauge);
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.option-carte:has(input:checked) {
|
||||
border-color: var(--sauge);
|
||||
background: var(--sauge-fond);
|
||||
}
|
||||
|
||||
.option-carte input[type="checkbox"] {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: 2px solid var(--filet-fort);
|
||||
border-radius: 7px;
|
||||
background: #FFFFFF;
|
||||
margin: 2px 0 0 0;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.option-carte input[type="checkbox"]:checked {
|
||||
background: var(--sauge);
|
||||
border-color: var(--sauge);
|
||||
}
|
||||
|
||||
.option-carte input[type="checkbox"]:checked::before {
|
||||
content: "";
|
||||
width: 10px;
|
||||
height: 6px;
|
||||
border-left: 2px solid #FFFFFF;
|
||||
border-bottom: 2px solid #FFFFFF;
|
||||
transform: rotate(-45deg) translate(1px, -1px);
|
||||
}
|
||||
|
||||
.option-texte {
|
||||
font-size: 13.5px;
|
||||
line-height: 1.45;
|
||||
color: var(--texte);
|
||||
}
|
||||
|
||||
.option-texte strong {
|
||||
display: block;
|
||||
font-weight: 700;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.option-texte span {
|
||||
color: var(--texte-doux);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
/* Réseaux sociaux */
|
||||
.reseaux-suivi {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.reseau-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: 999px;
|
||||
padding: 6px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--texte);
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.reseau-chip:hover {
|
||||
border-color: var(--sauge);
|
||||
color: var(--sauge-sombre);
|
||||
transform: translateY(-1px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Boutons */
|
||||
.btn-soumettre {
|
||||
font-family: inherit;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
background-color: var(--sauge);
|
||||
color: #FFFFFF;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
padding: 16px 32px;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
margin-top: 24px;
|
||||
box-shadow: 0 8px 20px -4px rgba(139, 158, 144, 0.4);
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.btn-soumettre:hover {
|
||||
background-color: var(--sauge-sombre);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 24px -6px rgba(139, 158, 144, 0.5);
|
||||
}
|
||||
|
||||
.btn-soumettre:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-soumettre:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* Écran de succès */
|
||||
.succes-carte {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
.succes-icone {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
background: var(--sauge-fond);
|
||||
color: var(--sauge);
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
font-size: 36px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.succes-carte h2 {
|
||||
font-size: 26px;
|
||||
font-weight: 800;
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
|
||||
.succes-carte p {
|
||||
color: var(--texte-doux);
|
||||
font-size: 15px;
|
||||
max-width: 480px;
|
||||
margin: 0 auto 28px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.succes-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
max-width: 380px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.btn-secondaire {
|
||||
font-family: inherit;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
background: #FFFFFF;
|
||||
color: var(--texte);
|
||||
border: 1.5px solid var(--filet);
|
||||
border-radius: 999px;
|
||||
padding: 13px 24px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.btn-secondaire:hover {
|
||||
border-color: var(--texte);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Pied de page */
|
||||
.pied-form {
|
||||
text-align: center;
|
||||
margin-top: 32px;
|
||||
color: var(--texte-muet);
|
||||
font-size: 13.5px;
|
||||
}
|
||||
|
||||
.pied-form a {
|
||||
color: var(--texte-doux);
|
||||
}
|
||||
|
||||
.pied-form a:hover {
|
||||
color: var(--texte);
|
||||
}
|
||||
|
||||
.message-alerte {
|
||||
padding: 12px 16px;
|
||||
border-radius: var(--rayon-md);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-top: 14px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.message-alerte.erreur {
|
||||
background: #FDF2F0;
|
||||
color: #A0554B;
|
||||
border: 1px solid #F5D6D1;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.piege-robot {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur