/* www/css/site.css — socle commun des pages publiques (habillage 2026-11-19) : couleurs, en-tête, boutons, pied de page. Activé par body.hm2. */
body.hm2 {
	--ink: #1d1530; --ink-2: #4b4560; --muted: #6f6a80; --line: #ece8f3; --bg: #ffffff; --bg-alt: #f8f6fb;
	--violet: #5C2A9D; --violet-2: #7a4fc2; --violet-soft: #f1ebfa; --gold: #D4AF37; --gold-2: #b8932a; --gold-soft: #fbf4dc;
	--radius: 18px; --shadow: 0 1px 2px rgba(29,21,48,.05), 0 12px 32px rgba(29,21,48,.08);
	background: var(--bg); color: var(--ink);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.hm2 * { font-family: inherit; }
.hm-visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.hm2 section[id] { scroll-margin-top: 84px; }
.hm2 a { color: var(--violet); }
.h2-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête (clair, translucide) ---------- */
.hm2 .header { background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: var(--ink); box-shadow: none; border-bottom: 1px solid transparent; padding: 16px max(24px, calc((100% - 1160px) / 2 + 24px)); }
.hm2 .header.is-scrolled { background: rgba(255,255,255,.94); border-bottom-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
.hm2 .logo { color: var(--ink); font-size: 22px; letter-spacing: -.01em; }
.hm2 .logo img { height: 34px; }
.hm2 .nav-links li { margin-left: 26px; }
.hm2 .nav-links a { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.hm2 .nav-links a:hover { color: var(--violet); }
.hm2 .nav-cta { background: var(--violet); color: #fff; box-shadow: none; padding: 10px 20px; font-size: 15px; border-radius: 999px; }
.hm2 .nav-cta:hover { background: var(--violet-2); transform: none; }
.hm2 .nav-toggle span { background: var(--ink); }

/* ---------- Boutons ---------- */
.h2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; touch-action: manipulation; }
.h2-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hm2 .h2-btn-main { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(92,42,157,.28); }
.hm2 .h2-btn-main:hover { background: var(--violet-2); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(92,42,157,.32); }
.hm2 .h2-btn-ghost { color: var(--ink); border-color: #d9d3e6; background: #fff; }
.hm2 .h2-btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.hm2 .h2-btn-light { background: #fff; color: var(--violet); box-shadow: 0 8px 22px rgba(0,0,0,.18); white-space: nowrap; }
.hm2 .h2-btn-light:hover { transform: translateY(-1px); }
.h2-btn[disabled] { opacity: .65; cursor: progress; transform: none !important; }

/* Pied de page */
.h2-footer { background: #17112a; color: rgba(255,255,255,.72); padding: 72px 0 28px; }
.h2-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr; gap: 36px; }
.h2-foot-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: #fff !important; text-decoration: none; letter-spacing: -.01em; }
.h2-foot-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
.h2-footer h3 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 6px 0 14px; }
.h2-footer nav a { display: block; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14.5px; padding: 5px 0; }
.h2-footer nav a:hover { color: var(--gold); }
.h2-foot-nl p { font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.h2-nl { display: flex; gap: 8px; }
.h2-nl input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 15px; }
.h2-nl input::placeholder { color: rgba(255,255,255,.5); }
.h2-nl input:focus { outline: none; border-color: var(--gold); }
.h2-nl button { padding: 11px 18px; border-radius: 999px; border: 0; background: var(--gold); color: #1d1530; font-weight: 700; cursor: pointer; }
.h2-nl button:hover { background: #e2c25a; }
.hm-nl-msg { font-size: 13px; margin: 8px 0 0 !important; min-height: 1em; }
.hm-nl-msg.is-ok { color: #9be3b4; } .hm-nl-msg.is-err { color: #ffb4a8; }
.h2-nl-legal { font-size: 12px !important; opacity: .65; margin-top: 8px !important; }
.h2-nl-legal a { color: inherit; }
.h2-foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.h2-foot-bottom p { margin: 0; }
.h2-foot-bottom a { color: rgba(255,255,255,.72); text-decoration: none; margin-left: 20px; }
.h2-foot-bottom a:hover { color: var(--gold); }

@media (max-width: 1080px) {
	.h2-foot-grid { grid-template-columns: 1fr 1fr 1fr; } .h2-foot-brand, .h2-foot-nl { grid-column: span 3; }
}
@media (max-width: 991px) {
	.hm2 .header { padding: 12px 16px; }
	.hm2 .nav-links.is-open { background: #fff; box-shadow: 0 18px 30px rgba(29,21,48,.12); border-top: 1px solid var(--line); }
	.hm2 .nav-links.is-open a { color: var(--ink); border-bottom-color: var(--line); }
	.hm2 .nav-links.is-open .nav-cta-mobile a { color: var(--violet); }
}
@media (max-width: 640px) {
	.h2-wrap { padding: 0 16px; }
	.h2-foot-grid { grid-template-columns: 1fr 1fr; } .h2-foot-brand, .h2-foot-nl { grid-column: span 2; }
	.h2-foot-bottom { flex-direction: column; align-items: flex-start; } .h2-foot-bottom a { margin: 0 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hm2 * { transition: none !important; } }

/* ======================================================================
   Pages de contenu (descriptif, conditions, confidentialité, mentions, CGV, newsletter)
   ====================================================================== */
.hm2 .page-content { padding: 150px 0 110px; min-height: 0; background: radial-gradient(900px 420px at 90% 0%, rgba(122,79,194,.12), transparent 60%), radial-gradient(700px 380px at 0% 0%, rgba(212,175,55,.10), transparent 60%), #fff; background-repeat: no-repeat; }
.hm2 .page-container { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.hm2 .page-content h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: var(--ink); margin: 0 0 18px; padding: 0; }
.hm2 .page-content h1::after { display: none; }
.hm2 .page-content .last-update { display: inline-block; margin: 0 0 36px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hm2 .page-content h1 + section, .hm2 .page-content h1 + p { margin-top: 28px; }
.hm2 .page-content section { margin: 0; padding: 30px 0; border-top: 1px solid var(--line); }
.hm2 .page-content h1 + section { border-top: 0; padding-top: 8px; }
.hm2 .page-content h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.02em; font-weight: 750; color: var(--ink); margin: 0 0 14px; }
.hm2 .page-content h3 { font-size: 18px; color: var(--ink); margin: 22px 0 10px; }
.hm2 .page-content p, .hm2 .page-content ul, .hm2 .page-content ol { color: var(--ink-2); line-height: 1.75; margin: 0 0 14px; font-size: 16.5px; }
.hm2 .page-content ul, .hm2 .page-content ol { padding-left: 22px; }
.hm2 .page-content li { margin-bottom: 8px; }
.hm2 .page-content li::marker { color: var(--violet); }
.hm2 .page-content strong { color: var(--ink); }
.hm2 .page-content a:not(.cta-btn):not(.btn) { color: var(--violet); text-decoration: underline; text-decoration-color: rgba(92,42,157,.3); text-underline-offset: 3px; }
.hm2 .page-content a:not(.cta-btn):not(.btn):hover { color: var(--violet-2); text-decoration-color: currentColor; }
.hm2 .disclaimer-section { margin: 0; }
.hm2 .disclaimer-box { background: var(--gold-soft); border: 1px solid #efe0ae; border-left: 0; border-radius: var(--radius); padding: 26px 28px; }
.hm2 .disclaimer-box h2 { color: #7a5f10; }
.hm2 .disclaimer-box p, .hm2 .disclaimer-box ul { color: #5b4a1c; }
.hm2 .page-content .acceptance { background: var(--violet-soft); border-radius: var(--radius); padding: 24px 28px; border-top: 0; margin-top: 10px; }
.hm2 .page-content .call-to-action { margin: 30px 0 0; padding: 44px 32px; border-radius: 24px; text-align: center; color: #fff; background: linear-gradient(120deg, var(--violet) 0%, #7a4fc2 60%, #9a6a3a 140%); box-shadow: 0 24px 50px -18px rgba(92,42,157,.55); border-top: 0; }
.hm2 .page-content .call-to-action h2 { color: #fff; font-size: 28px; }
.hm2 .page-content .call-to-action p { color: rgba(255,255,255,.86); }
.hm2 .page-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 6px 0 18px; font-size: 15px; }
.hm2 .page-content th { background: var(--bg-alt); color: var(--ink); font-weight: 650; }
.hm2 .page-content th, .hm2 .page-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hm2 .page-content tr:last-child td { border-bottom: 0; }
.hm2 .page-content tr:hover { background: transparent; }
.hm2 .table-scroll { overflow-x: auto; }

/* Boutons dans le contenu (cta-btn, btn) */
.hm2 .page-content .cta-btn, .hm2 .page-content .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(92,42,157,.25); cursor: pointer; transition: transform .15s, background .15s; text-transform: none; letter-spacing: 0; }
.hm2 .page-content .cta-btn:hover, .hm2 .page-content .btn:hover { background: var(--violet-2); transform: translateY(-1px); color: #fff; text-decoration: none; }
.hm2 .page-content .call-to-action .cta-btn { background: #fff; color: var(--violet); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hm2 .page-content .btn-secondary { background: #fff; color: var(--ink); border-color: #d9d3e6; box-shadow: none; }
.hm2 .page-content .btn-secondary:hover { background: #fff; color: var(--violet); border-color: var(--violet); }

/* Boîtes de confirmation (newsletter) */
.hm2 .confirmation-container { margin: 8px 0 36px; }
.hm2 .confirmation-box { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 40px 36px; text-align: center; position: relative; overflow: hidden; }
.hm2 .confirmation-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--violet); }
.hm2 .confirmation-box.success::before { background: #2fb36d; } .hm2 .confirmation-box.error::before { background: #d9534f; } .hm2 .confirmation-box.warning::before { background: var(--gold); }
.hm2 .confirmation-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: block; }
.hm2 .confirmation-box h2 { font-size: 26px; margin-bottom: 10px; }
.hm2 .confirmation-actions, .hm2 .form-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hm2 .page-content .additional-info { border-top: 0; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.hm2 .page-content .form-group { margin: 18px auto; max-width: 420px; text-align: left; }
.hm2 .page-content .form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.hm2 .page-content .form-control, .hm2 .auth-form .form-control { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #e1dcea; border-radius: 12px; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.hm2 .page-content .form-control:focus, .hm2 .auth-form .form-control:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(92,42,157,.12); }

/* Message envoyé / compte supprimé */
.hm2.contact-confirmation-page { background: #fff; }
.hm2 .contact-confirmation, .hm2 .msg-page { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 140px 20px 90px; background: radial-gradient(900px 420px at 90% 0%, rgba(122,79,194,.12), transparent 60%), radial-gradient(700px 380px at 0% 0%, rgba(212,175,55,.10), transparent 60%), #fff; }
.hm2 .confirmation-card, .hm2 .message-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 44px 38px; max-width: 560px; width: 100%; text-align: center; }
.hm2 .confirmation-card .confirmation-icon, .hm2 .message-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: #e6f6ec; color: #22894f; font-size: 30px; font-weight: 800; }
.hm2 .message-icon { background: var(--violet-soft); color: var(--violet); }
.hm2 .message-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm2 .confirmation-card h1, .hm2 .message-card h1 { font-size: 30px; letter-spacing: -.03em; color: var(--ink); margin: 0 0 12px; }
.hm2 .confirmation-card p, .hm2 .message-card p { color: var(--ink-2); line-height: 1.65; margin: 0 0 10px; }
.hm2 .confirmation-card .confirmation-actions { margin-top: 26px; }
.hm2 .confirmation-card .btn, .hm2 .message-card .btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--violet); color: #fff; border: 1.5px solid transparent; margin-top: 14px; }
.hm2 .confirmation-card .confirmation-actions .btn { margin-top: 0; }
.hm2 .confirmation-card .btn:hover, .hm2 .message-card .btn:hover { background: var(--violet-2); }
.hm2 .confirmation-card .btn-secondary { background: #fff; color: var(--ink); border-color: #d9d3e6; }
.hm2 .confirmation-card .btn-secondary:hover { background: #fff; color: var(--violet); border-color: var(--violet); }

/* ======================================================================
   Connexion, inscription, mot de passe (cartes centrées, sans menu)
   ====================================================================== */
.hm2 .auth-container { min-height: 100vh; padding: 48px 16px; background: radial-gradient(900px 520px at 85% 0%, rgba(122,79,194,.16), transparent 60%), radial-gradient(700px 480px at 0% 100%, rgba(212,175,55,.16), transparent 60%), linear-gradient(180deg, #fbfaff, #fff); }
.hm2 .auth-container::before { display: none; }
.hm2 .auth-card { max-width: 480px; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(45,25,90,.25), 0 8px 20px rgba(29,21,48,.05); padding: 40px 36px; }
.hm2 .auth-logo { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 26px; }
.hm2 .auth-logo img { height: 34px; }
.hm2 .auth-card h1 { font-size: 26px; letter-spacing: -.03em; font-weight: 800; color: var(--ink); margin-bottom: 26px; }
.hm2 .auth-card h2 { color: var(--ink); letter-spacing: -.02em; }
.hm2 .auth-card p { color: var(--ink-2); }
.hm2 .auth-form label { color: var(--ink); font-weight: 600; font-size: 14px; }
.hm2 .auth-form .btn, .hm2 .auth-card .btn { border-radius: 999px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.hm2 .auth-form .btn-primary, .hm2 .auth-card .btn-primary { background: var(--violet); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(92,42,157,.25); }
.hm2 .auth-form .btn-primary:hover, .hm2 .auth-card .btn-primary:hover { background: var(--violet-2); transform: translateY(-1px); }
.hm2 .auth-form .btn-secondary, .hm2 .auth-card .btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid #d9d3e6; }
.hm2 .auth-form .btn-secondary:hover, .hm2 .auth-card .btn-secondary:hover { color: var(--violet); border-color: var(--violet); background: #fff; }
.hm2 .auth-card a:not(.btn):not(.auth-logo) { color: var(--violet); }
.hm2 .forgot-password { color: var(--violet); }
.hm2 .auth-footer { border-top: 1px solid var(--line); color: var(--muted); }
.hm2 .auth-card .captcha-box { border-radius: 12px; border-color: #e1dcea; background: #fbfaff; }
.hm2 .alert { border-radius: 12px; }
.hm2 .auth-back { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); text-decoration: none; }
.hm2 .auth-back:hover { color: var(--violet); }

@media (max-width: 640px) {
	.hm2 .page-content { padding: 112px 0 72px; }
	.hm2 .page-container { padding: 0 16px; }
	.hm2 .page-content p, .hm2 .page-content ul, .hm2 .page-content ol { font-size: 16px; }
	.hm2 .page-content h2 { font-size: 21px; }
	.hm2 .disclaimer-box, .hm2 .page-content .acceptance, .hm2 .page-content .additional-info { padding: 20px; }
	.hm2 .confirmation-box, .hm2 .confirmation-card, .hm2 .message-card { padding: 30px 20px; }
	.hm2 .page-content .call-to-action { padding: 32px 20px; }
	.hm2 .auth-container { padding: 24px 12px; align-items: flex-start; }
	.hm2 .auth-card { padding: 28px 20px; }
}
