/* GestioCommunity — pages publiques (accueil, connexion, inscription, contenus) */

.page-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barre de navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 243, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 86px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-nav { display: none; gap: 1.4rem; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.site-nav a:hover { color: var(--terracotta-dark); text-decoration: none; }
.site-header__actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
@media (min-width: 880px) {
  .site-nav { display: flex; }
  .site-header__actions { margin-left: 1.5rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(1100px 420px at 82% -12%, rgba(240, 165, 44, .28), transparent 62%),
    radial-gradient(760px 400px at 6% 8%, rgba(20, 102, 107, .13), transparent 60%);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-xs);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 6.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: .8rem;
}
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero__lead { font-size: 1.05rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.7rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.5rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: .86rem; color: var(--ink-2); }
.hero__points span::before { content: '✓'; color: var(--teal); font-weight: 700; margin-right: .35rem; }

.hero__visual { position: relative; }
.hero__logo {
  width: min(320px, 74vw);
  margin: 0 auto;
  filter: drop-shadow(0 26px 46px rgba(74, 44, 40, .26));
}
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .8rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: .8rem;
  font-weight: 600;
}
.hero__chip strong { display: block; font-size: 1.15rem; line-height: 1; color: var(--teal); }
.hero__chip--1 { left: -4px; top: 14%; }
.hero__chip--2 { right: -6px; bottom: 16%; }
.hero__chip i { font-style: normal; font-size: 1.2rem; }

@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 3rem; }
}

/* ---------- Sections ---------- */

.section { padding: 3.2rem 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: 2rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .5rem;
}
.section h2 { font-family: var(--serif); font-size: clamp(1.55rem, 3.6vw, 2.15rem); letter-spacing: -.02em; }
.section__head p { color: var(--ink-2); margin-bottom: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1rem; }
.feature {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section--paper .feature { background: var(--cream); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-size: 1.25rem;
  margin-bottom: .85rem;
}
.feature:nth-child(3n+2) .feature__icon { background: var(--teal-soft); color: var(--teal-dark); }
.feature:nth-child(3n) .feature__icon { background: var(--amber-soft); color: var(--warning); }
.feature h3 { font-size: 1rem; margin-bottom: .35rem; }
.feature p { font-size: .89rem; color: var(--ink-2); margin: 0; }

/* ---------- Étapes ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-left: 3.1rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-family: var(--serif);
}
.step h3 { font-size: 1rem; margin-bottom: .3rem; }
.step p { font-size: .89rem; color: var(--ink-2); margin: 0; }

/* ---------- Formules ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; align-items: start; }
.plan {
  position: relative;
  padding: 1.6rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.plan--featured {
  border-color: var(--terracotta);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff, #fffaf4);
}
.plan__tag {
  position: absolute; top: -12px; left: 1.35rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.plan h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.plan__limit { font-family: var(--serif); font-size: 1.9rem; color: var(--teal); line-height: 1.1; margin: .5rem 0 .1rem; }
.plan__price { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.plan ul { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--ink-2); }
.plan li::before { content: '✓'; color: var(--teal); font-weight: 700; margin-right: .45rem; }

/* ---------- Bandeau final ---------- */

.cta-band {
  margin: 0 auto;
  padding: 2.4rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal) 55%, #1d7d74);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-family: var(--serif); }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 34rem; margin: 0 auto 1.4rem; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--teal-dark); }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .5); }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--brown); color: rgba(255, 255, 255, .78); padding: 2.6rem 0 1.6rem; font-size: .88rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.8rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between;
  font-size: .82rem;
}
.site-footer .brandmark span { color: #fff; }

/* ---------- Pages d'authentification ---------- */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(700px 340px at 10% -6%, rgba(240, 165, 44, .22), transparent 60%),
    radial-gradient(620px 320px at 96% 100%, rgba(20, 102, 107, .16), transparent 60%);
}
.auth__aside { display: none; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 1.6rem 1.1rem 3rem; }
.auth__card {
  width: min(470px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.7rem 1.5rem 1.5rem;
}
.auth__card h1 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .3rem; }
.auth__card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.auth__logo { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-bottom: 1.3rem; }
.auth__logo img { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.auth__logo b { font-size: 1.25rem; letter-spacing: -.02em; }
.auth__foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .87rem; text-align: center; color: var(--muted); }
.auth__back { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 600; margin-bottom: 1rem; }

@media (min-width: 960px) {
  .auth { grid-template-columns: 46% 54%; }
  .auth__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    padding: 3rem;
    background: linear-gradient(160deg, var(--teal-dark), var(--teal) 60%, #1b7c73);
    color: #fff;
  }
  .auth__aside h2 { font-family: var(--serif); font-size: 2rem; color: #fff; }
  .auth__aside p { color: rgba(255, 255, 255, .84); max-width: 26rem; }
  .auth__aside img { width: 86px; border-radius: 18px; }
  .auth__aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .93rem; }
  .auth__aside li::before { content: '✓'; margin-right: .5rem; color: var(--amber); font-weight: 700; }
}

/* ---------- Étapes du formulaire (inscription) ---------- */

.stepper { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.stepper div {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}
.stepper div.is-done { background: var(--terracotta); }

.code-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px dashed var(--amber);
  margin-bottom: 1.1rem;
  font-size: .87rem;
}
.code-box b { font-size: 1.35rem; letter-spacing: .18em; display: block; margin: .3rem 0; font-family: var(--serif); }

/* ---------- Contenus (À propos, Confidentialité) ---------- */

.doc { max-width: 46rem; margin: 0 auto; padding: 2.6rem 20px 4rem; }
.doc h1 { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.5rem); }
.doc h2 { font-family: var(--serif); font-size: 1.35rem; margin-top: 2.2rem; }
.doc h3 { font-size: 1rem; margin-top: 1.4rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: .4rem; }
.doc__meta { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }
.contact-card {
  display: grid;
  gap: .55rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  margin: 1.4rem 0;
}
.contact-card div { display: flex; gap: .6rem; align-items: baseline; font-size: .93rem; }
.contact-card span:first-child { min-width: 92px; color: var(--muted); font-size: .82rem; font-weight: 600; }
