/* ═══════════════════════════════════════════════════════════════════════════
   LibComPlus — feuille de style du site public
   Charte : assets/images/README_LOGO.md
     primaire #0F6E56 (teal) · accent #FAC775 (ambre) · CTA #E65100 (orange)
     fond héros #0A0E1A · texte sur clair #1A1A2E · radius 24 / 20 / 14
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --teal:        #0F6E56;
  --teal-dark:   #0B5341;
  --teal-light:  #E6F2EE;
  --amber:       #FAC775;
  --cta:         #E65100;
  --cta-dark:    #BF4300;
  --ink:         #1A1A2E;
  --ink-soft:    #4A4A63;
  --ink-faint:   #7A7A90;
  --night:       #0A0E1A;
  --surface:     #FFFFFF;
  --surface-alt: #F7F9F8;
  --line:        #E3E8E6;

  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 14px;

  --shadow-sm: 0 1px 2px rgba(10,14,26,.06), 0 2px 8px rgba(10,14,26,.04);
  --shadow-md: 0 4px 12px rgba(10,14,26,.08), 0 12px 32px rgba(10,14,26,.06);

  --wrap: 1140px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ─── Accessibilité ─────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--teal); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ─── En-tête ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.nav a:hover { color: var(--teal); text-decoration: none; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: var(--surface);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 14px; font: inherit; font-size: .82rem; font-weight: 700;
  color: var(--ink-faint); letter-spacing: .04em;
}
.lang-switch button[aria-pressed="true"] { background: var(--teal); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0;
  cursor: pointer; padding: 8px; color: var(--ink);
}

/* ─── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary   { background: var(--cta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--cta-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover:not(:disabled) { background: var(--teal-dark); }
.btn-ghost     { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.btn-on-dark   { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-on-dark:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ─── Héros ─────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1000px 520px at 15% -10%, rgba(15,110,86,.42), transparent 62%),
    radial-gradient(760px 420px at 92% 8%, rgba(250,199,117,.16), transparent 60%),
    var(--night);
  color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: rgba(255,255,255,.82);
  max-width: 56ch; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; font-size: .84rem; font-weight: 700;
}
.badge-teal  { background: var(--teal); color: #fff; }
.badge-amber { background: transparent; color: var(--amber); border: 1.5px solid var(--amber); }

/* ─── Sections ──────────────────────────────────────────────────────────── */
section { padding: 84px 0; }
section.alt { background: var(--surface-alt); }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 30px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.feature-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--teal-light); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 18px;
}

/* ─── Tarifs ────────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; background: var(--surface-alt); border: 1px solid var(--line);
        border-radius: 999px; padding: 5px; margin-bottom: 36px; }
.tabs button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-weight: 700; font-size: .95rem; padding: 10px 24px; border-radius: 999px;
  color: var(--ink-soft);
}
.tabs button[aria-selected="true"] { background: var(--teal); color: #fff; }

.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.plan {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column;
  position: relative; transition: border-color .18s ease, box-shadow .18s ease;
}
.plan:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.plan.featured { border-color: var(--teal); box-shadow: var(--shadow-md); }
.plan .tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--amber); color: var(--ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.plan h3 { font-size: 1.06rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.plan .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--ink-faint); }
.plan .quota { color: var(--teal); font-weight: 700; margin: 12px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); font-size: .95rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 13px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

.price-note {
  margin-top: 26px; font-size: .92rem; color: var(--ink-faint);
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 20px;
}

/* ─── Bandeau d'appel ───────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 52px 44px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 52ch; margin: 0 auto 26px; }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
details.faq {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.06rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); font-weight: 400; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: 14px 0 0; color: var(--ink-soft); }

/* ─── Pied de page ──────────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: rgba(255,255,255,.72); padding: 62px 0 34px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer a:hover { color: var(--amber); text-decoration: none; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: .88rem; color: rgba(255,255,255,.5);
}

/* ─── Formulaires ───────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; }
.field .hint { font-size: .85rem; color: var(--ink-faint); margin-top: 6px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 32px; box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 24px; }

.alert { border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; }
.alert-error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.alert-success { background: var(--teal-light); border: 1px solid var(--teal); color: var(--teal-dark); }
.alert-info    { background: #FFFBEB; border: 1px solid var(--amber); color: #78350F; }

.pay-methods { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pay-method {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 18px;
  cursor: pointer; background: var(--surface); text-align: left; font: inherit;
  transition: border-color .16s ease;
}
.pay-method:hover { border-color: var(--teal); }
.pay-method[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-light); }
.pay-method strong { display: block; margin-bottom: 4px; }
.pay-method span { font-size: .88rem; color: var(--ink-soft); }

.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .96rem;
}
.summary-row:last-of-type { border-bottom: 0; font-weight: 800; font-size: 1.1rem; padding-top: 14px; }

/* ─── Contenu légal ─────────────────────────────────────────────────────── */
.legal { max-width: 78ch; }
.legal h2 { margin-top: 2em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.6em; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .94rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.legal th { background: var(--surface-alt); font-weight: 700; }
.legal-wrap { overflow-x: auto; }

/* ─── Utilitaires ───────────────────────────────────────────────────────── */
.muted { color: var(--ink-faint); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
[hidden] { display: none !important; }

.spinner {
  display: inline-block; width: 15px; height: 15px;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Adaptatif ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; margin-left: 0; box-shadow: var(--shadow-md);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn, .nav .lang-switch { margin-top: 14px; align-self: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 68px; }
  .cta-band { padding: 40px 26px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav { display: none; }
}

/* ─── Séparateur « ou » entre Google et le formulaire ───────────────────── */
.or-sep {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: var(--ink-faint); font-size: .85rem;
}
.or-sep::before, .or-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
