/* Proxim — feuille de style commune du site proxim.live
   Thème « fumée rose » : fond rose pâle grisé, nuages flous en arrière-plan,
   contenu sur des cartes de verre dépoli qui semblent flotter. */
:root {
  --bg: #F3ECEE;                          /* rose fumé très pâle */
  --card: rgba(255,255,255,0.62); --card2: rgba(255,255,255,0.78); --border: rgba(255,255,255,0.85);
  --line: rgba(120,70,90,0.14);           /* filets et séparateurs */
  --text: #2B1A21; --muted: #5E4A53; --faint: #8C7882;
  --pink: #E84B7A; --pink-deep: #C93666; --coral: #FF7A59; --gold: #B7841F; --danger: #C4122F; --ok: #1F8A57;
  --accent: var(--pink-deep);
  --grad: linear-gradient(90deg, var(--pink), var(--coral));
  --float: 0 12px 40px rgba(110,50,75,0.10), 0 2px 8px rgba(110,50,75,0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; position: relative;
}
/* Nuages de fumée rose, fixes et flous, derrière tout le contenu */
body::before, body::after {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  filter: blur(60px); opacity: 1;
}
body::before {
  background:
    radial-gradient(38vmax 30vmax at 15% 20%, rgba(232,75,122,0.34), transparent 70%),
    radial-gradient(34vmax 28vmax at 85% 15%, rgba(180,150,165,0.50), transparent 70%),
    radial-gradient(40vmax 30vmax at 70% 75%, rgba(255,130,165,0.32), transparent 70%),
    radial-gradient(30vmax 26vmax at 20% 85%, rgba(165,140,155,0.45), transparent 70%);
  animation: smoke-a 38s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(28vmax 22vmax at 50% 40%, rgba(255,255,255,0.55), transparent 70%),
    radial-gradient(26vmax 20vmax at 35% 60%, rgba(232,75,122,0.20), transparent 70%);
  animation: smoke-b 46s ease-in-out infinite alternate;
}
@keyframes smoke-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(3vmax,-2vmax,0) scale(1.08); } }
@keyframes smoke-b { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-3vmax,2vmax,0) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(243,236,238,0.65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px rgba(201,54,102,0.25); }
.brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: #fff; }
.btn { display: inline-block; border: 0; border-radius: 14px; padding: 13px 22px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--grad); text-decoration: none; cursor: pointer; text-align: center; box-shadow: 0 8px 22px rgba(232,75,122,0.30); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(232,75,122,0.36); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn.ghost { background: rgba(255,255,255,0.6); border: 1px solid var(--border); color: var(--text); box-shadow: var(--float); backdrop-filter: blur(10px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } }

/* Sections */
section.block { padding: 72px 0; }
.eyebrow { color: var(--pink-deep); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -1px; margin: 12px 0 16px; }
h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -0.5px; margin: 8px 0 14px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { color: var(--muted); margin: 0 0 12px; }
.lead { font-size: 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cartes « flottantes » en verre dépoli */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--float); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Accueil */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .shot { border-radius: 28px; overflow: hidden; border: 6px solid rgba(255,255,255,0.75); aspect-ratio: 4 / 5; background: var(--card); box-shadow: 0 30px 70px rgba(110,50,75,0.22); animation: float 7s ease-in-out infinite; }
.hero .shot img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero .shot { animation: none; } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.note { font-size: 13px; color: var(--faint); margin-top: 12px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } .hero .shot { max-width: 420px; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(232,75,122,0.12); color: var(--pink-deep); font-size: 22px; margin-bottom: 14px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 15px; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; box-shadow: 0 4px 12px rgba(232,75,122,0.3); }
.steps strong { color: var(--text); }

/* Formules */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--card2); border: 1.5px solid var(--border); border-radius: 20px; padding: 20px; cursor: pointer; text-align: left; color: var(--text); font: inherit; box-shadow: var(--float); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .15s ease; }
.plan:hover { transform: translateY(-2px); }
.plan.selected { border-color: var(--pink); background: rgba(255,255,255,0.92); box-shadow: 0 0 0 3px rgba(232,75,122,0.18), var(--float); }
.plan .dur { font-weight: 700; font-size: 17px; }
.plan .price { font-size: 30px; font-weight: 800; margin: 8px 0 0; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .per { font-size: 13px; color: var(--faint); }
.plan .badge { position: absolute; top: -11px; right: 14px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.plan .save { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ok); background: rgba(31,138,87,0.10); padding: 2px 8px; border-radius: 8px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }
.perks li { color: var(--muted); padding-left: 26px; position: relative; }
.perks li::before { content: "✦"; position: absolute; left: 0; color: var(--pink); }

/* Formulaires */
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input[type=email], input[type=password] { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.9); color: var(--text); font: inherit; font-size: 16px; outline: none; }
input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(232,75,122,0.15); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--pink); }
.check label { margin: 0; }
.msg { margin-top: 12px; font-size: 14px; min-height: 1em; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }
.hidden { display: none !important; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.8); border: 1px solid var(--line); color: var(--muted); }
.pill.on { color: #fff; border-color: transparent; background: var(--grad); }
.summary { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0 4px; }
.summary b { font-size: 22px; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--faint); margin-top: 10px; }

/* Pages légales */
.legal { padding: 40px 0 72px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal h2 { font-size: 21px; margin-top: 34px; }
.legal h3 { font-size: 16px; margin-top: 20px; }
.legal p, .legal li { color: var(--muted); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--float); }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; background: rgba(255,255,255,0.5); }
.legal .meta { font-size: 14px; color: var(--faint); }
.legal .box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 16px 0; box-shadow: var(--float); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.todo { background: #FFF1C2; color: #7A5200; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.toc { columns: 2; column-gap: 28px; font-size: 15px; }
@media (max-width: 560px) { .toc { columns: 1; } }

/* Pied de page */
footer.site { border-top: 1px solid var(--line); background: rgba(255,255,255,0.35); backdrop-filter: blur(12px); padding: 28px 0 40px; font-size: 13px; color: var(--faint); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 16px; }
footer.site a:hover { color: var(--text); }

/* ── Langues : arabe (police et sens de lecture de droite à gauche) ── */
html[lang=ar] body { font-family: "Tajawal", "Poppins", -apple-system, "Segoe UI", Tahoma, sans-serif; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] .brand span, html[lang=ar] .eyebrow { letter-spacing: 0; }
html[lang=ar] h1 { line-height: 1.3; }
html[dir=rtl] .steps li { padding-left: 0; padding-right: 44px; }
html[dir=rtl] .steps li::before { left: auto; right: 0; }
html[dir=rtl] .perks li { padding-left: 0; padding-right: 26px; }
html[dir=rtl] .perks li::before { left: auto; right: 0; }
html[dir=rtl] .plan { text-align: right; }
html[dir=rtl] .plan .badge { right: auto; left: 14px; }
html[dir=rtl] .legal ul, html[dir=rtl] .legal ol { padding-left: 0; padding-right: 22px; }
html[dir=rtl] .legal th, html[dir=rtl] .legal td { text-align: right; }
html[dir=rtl] footer.site a { margin-right: 0; margin-left: 16px; }
.lang-note { display: none; }
html:not([lang=fr]) .lang-note { display: block; }
.nav { flex-wrap: nowrap; }
@media (max-width: 640px) { .nav { gap: 10px; } }
