/* ===============================
   Nout2ou – Pages publiques + Typographie
   =============================== */

/* ---------- Couleurs & variables ---------- */
:root{
  /* Couleurs */
  --nz-bg:#ffffff;
  --nz-text:#1f2937;        /* gris très foncé */
  --nz-muted:#6b7280;       /* gris moyen */
  --nz-primary:#ff2e7a;     /* rose Nout2ou */
  --nz-primary-600:#e6296e;
  --nz-primary-50:#fff1f6;
  --nz-border:#e5e7eb;      /* gris clair */
  --nz-card:#ffffff;
  --nz-link:#0ea5e9;        /* bleu lien */

  /* Pile de polices (rapide) */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";

  /* Échelle typographique fluide */
  --step--1: clamp(0.86rem, 0.80rem + 0.30vw, 0.95rem);
  --step-0 : clamp(1.00rem, 0.95rem + 0.40vw, 1.10rem); /* corps */
  --step-1 : clamp(1.20rem, 1.10rem + 0.60vw, 1.35rem); /* h3 */
  --step-2 : clamp(1.45rem, 1.30rem + 0.80vw, 1.70rem); /* h2 */
  --step-3 : clamp(1.80rem, 1.55rem + 1.10vw, 2.20rem); /* h1 */
  --step-4 : clamp(2.20rem, 1.85rem + 1.50vw, 2.80rem); /* hero */

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-loose: 1.8;

  --measure: 68ch; /* largeur idéale pour les blocs de texte */
}

/* ---------- Base typo ---------- */
html{ font-size:100%; }
body{
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-normal);
  color: var(--nz-text);
  background: var(--nz-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,.h1{ font-size: var(--step-3); line-height: var(--leading-tight); margin: 0 0 .4em; }
h2,.h2{ font-size: var(--step-2); line-height: var(--leading-tight); margin: 1.2em 0 .5em; }
h3,.h3{ font-size: var(--step-1); line-height: 1.3;           margin: 1.1em 0 .5em; }
p,ul,ol{ margin: 0 0 1em; }

.eyebrow{ font-size:.85em; text-transform:uppercase; letter-spacing:.08em; color:var(--nz-muted); }
.muted{ color: var(--nz-muted); }
.text-xs{ font-size: var(--step--1); }
.text-lg{ font-size: clamp(1.05rem, 1.0rem + 0.4vw, 1.25rem); }
.measure, .max-w-prose{ max-width: var(--measure); }

/* Optionnel : si tu ajoutes Inter variable via <link>, on bascule automatiquement */
@supports (font-variation-settings: normal){
  body{ font-family: "Inter var", "Inter", var(--font-sans); }
}

/* ---------- Layouts communs ---------- */
.page-header{
  background: var(--nz-bg);
  border-bottom: 1px solid var(--nz-border);
}
.page-header .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.logo-link img{
  display:block;
  height:auto;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Prose (pages éditoriales) ---------- */
.prose{
  color: var(--nz-text);
  line-height: var(--leading-normal);
  font-size: var(--step-0);
  max-width: var(--measure);
}
.prose h1{ font-size: var(--step-3); line-height: var(--leading-tight); margin: 0 0 12px; }
.prose h2{ font-size: var(--step-2); margin: 28px 0 10px; }
.prose h3{ font-size: var(--step-1); margin: 22px 0 8px; }
.prose p{ margin: 0 0 14px; }
.prose a{ color: var(--nz-link); text-decoration: underline; }
.prose ul, .prose ol{ margin: 8px 0 16px 1.25rem; }
.prose li{ margin: 6px 0; }
.prose .lead{ font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem); line-height: var(--leading-loose); color: var(--nz-muted); }

/* ---------- Bullets mises en avant ---------- */
.bullets{
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.bullets li{
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
.bullets li::before{
  content: "•";
  position: absolute;
  left: 10px;
  top: 0;
  color: var(--nz-primary);
  font-weight: 700;
}

/* ---------- FAQ compacte ---------- */
.faq-home{
  margin: 28px 0 8px;
  border-top: 1px solid var(--nz-border);
  padding-top: 16px;
}
.faq-home details{
  background: #fff;
  border: 1px solid var(--nz-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
}
.faq-home summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--nz-text);
  outline: none;
}
.faq-home details[open]{
  background: var(--nz-primary-50);
  border-color: #ffd0e1;
}

/* ---------- Boutons ---------- */
.btn{
  --btn-bg:#f3f4f6;
  --btn-fg:#111827;
  border: 1px solid var(--nz-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none !important; /* garantit pas de soulignement */
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  --btn-bg: var(--nz-primary);
  --btn-fg: #fff;
  color: #fff !important;
  text-decoration: none !important;
  border-color: var(--nz-primary);
  background: var(--nz-primary);
  box-shadow: 0 6px 16px rgba(255,46,122,.18);
}
.btn-primary:hover{
  color: #fff !important;
  text-decoration: none !important;
  background: var(--nz-primary-600);
  border-color: var(--nz-primary-600);
}

.btn-ghost{
  background: transparent;
  border: 1px solid var(--nz-border);
  color: var(--nz-text);
  text-decoration: none !important;
}

/* ---------- Piles de CTA ---------- */
.cta-stack{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.cta-stack .btn{ min-width: 180px; }

/* ---------- Cartes d’info ---------- */
.info-card{
  background: var(--nz-card);
  border: 1px solid var(--nz-border);
  border-radius: 12px;
  padding: 16px;
  color: var(--nz-text);
}

/* ---------- Footer public ---------- */
.site-footer{
  border-top: 1px solid var(--nz-border);
  background: var(--nz-bg);
  margin-top: 32px;
}
.site-footer .footer-container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
}
.site-footer .footer-nav{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
.site-footer .footer-nav a{
  color: var(--nz-muted);
  text-decoration: none;
}
.site-footer .footer-nav a:hover{
  text-decoration: underline;
}

/* ---------- Hero (si utilisé) ---------- */
.hero .title{ font-size: var(--step-4); line-height: var(--leading-tight); }
.hero .sub{ font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem); }

/* ---------- Responsive ---------- */
@media (max-width: 768px){
  .prose{ font-size: 1rem; }
  .prose h1{ font-size: var(--step-3); }
  .prose h2{ font-size: var(--step-2); }
  .cta-stack .btn{ min-width: 140px; }
}

/* ---------- Accessibilité focus ---------- */
a:focus, button:focus, .btn:focus, summary:focus{
  outline: 3px solid rgba(14,165,233,.45); /* bleu focus */
  outline-offset: 2px;
  border-radius: 8px;
}
