/* Allovem — système de design commun : clair, lisible, pensé d'abord pour le téléphone */
:root {
  --bg: #fff; --bg-2: #f5f6f8; --card: #fff; --field: #fff;
  --line: #e3e5ea; --line-2: #c9cdd5;
  --text: #15171b; --muted: #5a606a;
  --accent: #2251d1; --accent-2: #1a41ad; --accent-soft: #edf1fc;
  --green: #12703f; --green-soft: #e8f5ee; --red: #b42318; --red-soft: #fdecea; --warn: #8a5a00;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 4px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.mono { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Titres */
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: normal; }
.h1 { font-size: clamp(30px, 5vw, 48px); max-width: 22ch; }
.h2 { font-size: clamp(24px, 3.4vw, 34px); max-width: 26ch; }
.lead { font-size: 17px; color: var(--muted); max-width: 58ch; }
.lead strong { color: var(--text); font-weight: 600; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.logo svg { width: 24px; height: 24px; }
.links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r); background: var(--accent); color: #fff; font: 600 16px/1.2 var(--sans); border: 1px solid var(--accent); cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--text); }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn.block { width: 100%; }

/* Éléments */
.tag { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.plate { color: var(--accent); }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat; }
.card { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.badge { padding: 3px 8px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Sections */
.hero { padding: 48px 0 40px; }
section.s { padding: 72px 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: grid; gap: 10px; margin-bottom: 32px; }
.head p { color: var(--muted); max-width: 60ch; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Formulaires : 16 px minimum pour éviter le zoom automatique sur iPhone */
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea, .input { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; min-height: 48px; outline: none; transition: border-color .15s; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: #8b919b; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field small { font-weight: 400; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: block; position: relative; padding: 18px 36px 18px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }
.faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Tarifs (générés par Atlas.pricing) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.plan.feat { border: 2px solid var(--accent); padding: 23px; }
.plan .ptop { display: flex; justify-content: space-between; align-items: center; min-height: 26px; color: var(--muted); }
.plan h3 { font-size: 22px; margin-top: 12px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 2px; }
.plan .price b { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); }
.plan .note { color: var(--muted); font-size: 15px; }
.plan .checks { margin: 20px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.plan .btn { margin-top: auto; }
.legal-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.legal-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Fenêtres (Premium, compte) : feuille en bas d'écran sur téléphone */
.atl-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(15,17,22,.5); opacity: 0; pointer-events: none; transition: opacity .15s; }
.atl-modal.open { opacity: 1; pointer-events: auto; }
.atl-box { position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 28px 24px 22px; border-radius: var(--r); background: var(--card); transform: translateY(8px); transition: transform .15s; }
.atl-modal.open .atl-box { transform: none; }
.atl-box h2 { font-size: 24px; margin: 8px 0 8px; padding-right: 36px; }
.atl-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: var(--r); border: 0; background: var(--bg-2); color: var(--text); font-size: 18px; cursor: pointer; }
.atl-close:hover { background: var(--line); }
.atl-opts { display: grid; gap: 10px; margin: 18px 0 14px; }
.atl-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--field); cursor: pointer; transition: border-color .15s; }
.atl-opt:hover, .atl-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.atl-opt:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.atl-opt b { font-weight: 600; }
.atl-opt small { display: block; color: var(--muted); font-size: 14px; }
.atl-opt .p { font-size: 22px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.atl-opt .per { display: inline; font-size: 14px; font-weight: 400; color: var(--muted); }
.atl-foot { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.atl-foot a { text-decoration: underline; text-underline-offset: 3px; }
.atl-wl { display: flex; gap: 8px; margin-top: 16px; }
.atl-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); }
.atl-or::before, .atl-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.atl-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 20px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 15px; }
.atl-dl dt { color: var(--muted); }
.atl-link { background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; }
.atl-link:hover { color: var(--red); }

/* Notification */
.atl-toast { position: fixed; left: 50%; bottom: 88px; z-index: 70; transform: translate(-50%, 200%); padding: 12px 16px; border-radius: var(--r); background: var(--text); color: #fff; font-size: 15px; transition: transform .2s; max-width: calc(100% - 32px); }
.atl-toast.show { transform: translate(-50%, 0); }

/* Pied de page légal (injecté par atlas.js) */
.atl-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.atl-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.atl-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.atl-footer a:hover { color: var(--text); text-decoration: underline; }

/* Compte */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atl-me { gap: 8px; }
.atl-av { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--accent); color: #fff; font: 600 12px var(--sans); border-radius: 50%; }
[data-atlas-account]:empty { display: none; }

/* Anciennes pages : apparition sans animation, le contenu est toujours visible */
.r { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .links { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  section.s { padding: 56px 0; }
}
@media (max-width: 560px) {
  .top nav .btn:not(.sm) { display: none; }
  .atl-modal { place-items: end stretch; padding: 0; }
  .atl-box { width: 100%; max-height: 92svh; border-radius: var(--r) var(--r) 0 0; padding: 24px 16px 20px; }
  .atl-wl { flex-direction: column; }
}
@media print { .top, .atl-footer, .atl-modal, .atl-toast { display: none !important; } }
