/* ============================================================
   Theme yanaweb pour Listmonk (pages PUBLIQUES)
   Charte source : Customers/partenaires/yanaweb/marketing/website/yanaweb.css
   Selecteurs verifies sur le HTML reellement servi par
   send.yanaweb.net (/subscription/form, /archive) et sur
   /public/static/style.css.

   Ou coller : Listmonk > Settings > Appearance > Public > Custom CSS
   Concerne : inscription, desinscription, gestion des preferences,
   confirmation d'opt-in, archive publique.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Montserrat:wght@700;800;900&family=Poppins:wght@700;800&display=swap');

:root {
  --yw-dark:   #0B1A11;   /* vert quasi noir : fond de page, texte */
  --yw-block:  #0E2318;   /* vert profond : bandeau logo */
  --yw-terra:  #E34A1C;   /* terracotta : boutons, accents */
  --yw-terra-h:#C03810;
  --yw-teal:   #277A6E;   /* teal : liens */
  --yw-teal-h: #1C5C52;
  --yw-cream:  #EDE8D9;   /* creme : carte */
  --yw-muted:  #3C5D51;   /* vert mute : texte secondaire lisible */
  --yw-line:   rgba(11,26,17,0.12);
}

/* ── Page ──────────────────────────────────────────────── */
html, body {
  background: var(--yw-dark);
}
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--yw-dark);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Carte centrale ────────────────────────────────────── */
.container {
  max-width: 560px;
  margin: 56px auto 15px auto;
  padding: 0 16px;
}
.wrap {
  background: var(--yw-cream);
  border: 1px solid rgba(11,26,17,0.08);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  padding: 0 40px 40px 40px;
  overflow: hidden;
}

/* ── Bandeau logo : rappelle la nav du site ────────────── */
.header {
  background: var(--yw-block);
  border-bottom: 0;
  margin: 0 -40px 32px -40px;
  padding: 22px 40px;
  display: flex;
  align-items: center;
}
.header .logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.header .logo img {
  max-width: 132px;
  width: auto;
}

/* Logo yanaweb dessine en CSS : picto etoile, puis "yana" en blanc
   et "web" en terracotta, suivis de la mention de service.
   Le mot est coupe en deux parce qu'un pseudo-element ne porte
   qu'une seule couleur de texte.

   Cette feuille couvre aussi la PAGE DE CONNEXION de l'admin
   (/admin/login), qui utilise le meme gabarit public.

   A GARDER tant que le logo par defaut de Listmonk n'est pas
   remplace dans Parametres > General > URL du logo. */
.header .logo img { display: none; }
.header .logo a::before {
  content: '';
  width: 26px; height: 26px; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E34A1C' d='M12 1.5c.5 5.7 3 8.2 8.5 8.5-5.5.3-8 2.8-8.5 8.5-.5-5.7-3-8.2-8.5-8.5 5.5-.3 8-2.8 8.5-8.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.header .logo a::after {
  content: 'yana';
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
.header .logo { display: flex; align-items: baseline; }
.header .logo::after {
  content: 'web';
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--yw-terra);
}
/* Mention de service, calee sur le .nav-by du site */
.header::after {
  content: 'newsletter manager';
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237,232,217,0.5);
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(237,232,217,0.18);
  white-space: nowrap;
}

/* ── Titres ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--yw-dark);
}
h1 { font-size: 34px; margin: 0 0 16px; }
h2 { font-size: 28px; margin: 0 0 20px; }
h3 { font-size: 20px; }

/* Le titre "Lists" du formulaire est un h2 dans une ul :
   on le repasse en intitule discret. */
.lists h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yw-muted);
  margin: 26px 0 10px;
}

/* ── Liens ─────────────────────────────────────────────── */
a {
  color: var(--yw-teal);
  text-decoration-color: rgba(39,122,110,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s cubic-bezier(0.4,0,0.2,1);
}
a:hover { color: var(--yw-terra); }

/* ── Formulaire ────────────────────────────────────────── */
label {
  color: var(--yw-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="password"],
select {
  background: #FFFFFF;
  border: 1px solid var(--yw-line);
  border-radius: 3px;
  box-shadow: none;
  padding: 13px 15px;
  color: var(--yw-dark);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder { color: rgba(11,26,17,0.35); }
input:focus {
  outline: none;
  border-color: var(--yw-teal);
  box-shadow: 0 0 0 3px rgba(39,122,110,0.15);
}
input[type="checkbox"] {
  accent-color: var(--yw-terra);
  width: 16px; height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
}

/* ── Bouton ────────────────────────────────────────────── */
.button {
  background: var(--yw-terra);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 3px;
  transition: background 0.2s cubic-bezier(0.4,0,0.2,1), transform 0.2s;
}
.button:hover {
  background: var(--yw-terra-h);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.button.button-outline {
  background: transparent;
  border: 1px solid var(--yw-terra);
  color: var(--yw-terra);
}
.button.button-outline:hover {
  background: var(--yw-terra);
  border-color: var(--yw-terra);
  color: #FFFFFF;
}

/* ── Listes d'abonnement ───────────────────────────────── */
.lists li {
  margin-bottom: 10px;
}
.lists label {
  color: var(--yw-dark);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 0;
}
.lists .description {
  color: var(--yw-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-left: 24px;
}

/* ── Archive ───────────────────────────────────────────── */
.archive li {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--yw-line);
}
.archive li:last-child { border-bottom: 0; }
.archive .date {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yw-muted);
}
.archive a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--yw-dark);
  text-decoration: none;
}
.archive a:hover { color: var(--yw-terra); }

/* ── Pagination ────────────────────────────────────────── */
.pg-page { color: var(--yw-teal); }
.pg-page.pg-selected {
  color: var(--yw-terra);
  text-decoration-color: var(--yw-terra);
}

/* ── Divers ────────────────────────────────────────────── */
.unsub-all { border-top: 1px solid var(--yw-line); }
.error { color: var(--yw-terra-h); font-weight: 500; }
.small { color: var(--yw-muted); }

/* ── Pied de page (hors carte, sur le fond sombre) ─────── */
footer.container {
  color: rgba(255,255,255,0.38);
  font-size: 12px;
}
footer.container a { color: rgba(255,255,255,0.55); }
footer.container a:hover { color: var(--yw-terra); }

/* ── Mobile ────────────────────────────────────────────── */
@media screen and (max-width: 650px) {
  .container { margin-top: 24px; }
  .wrap { padding: 0 24px 28px 24px; }
  .header { margin: 0 -24px 24px -24px; padding: 18px 24px; }
  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
}