/* NoteMonCV : design system */
:root {
  --encre: #0e1726;
  --teinte: #f1efe9;
  --teinte-2: #e4e0d7;
  --papier: #f7f5f0;
  --blanc: #ffffff;
  --accent: #2f5cff;
  --accent-fonce: #1e43c9;
  --ok: #16a34a;
  --alerte: #dc2626;
  --orange: #ea8a00;
  --gris: #5b6472;
  --bord: #e4e0d7;
  --radius: 14px;
  --ombre: 0 10px 30px rgba(14, 23, 38, 0.08);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--papier);
  color: var(--encre);
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.bouton, .logo, .nav-principale a, .pied a { text-decoration: none; }
.nav-principale a:hover, .pied a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord);
}
.entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--encre); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em;
  position: relative;
}
.logo-badge::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--papier);
}
.nav-principale { display: flex; gap: 26px; align-items: center; }
.nav-principale a { color: var(--encre); font-weight: 600; font-size: 0.95rem; }
.nav-principale a.bouton { color: var(--blanc); }
@media (max-width: 720px) {
  .entete-inner { height: auto; padding: 10px 0; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .nav-principale { width: 100%; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .nav-principale a { padding: 6px 2px; }
}

/* Boutons */
.bouton {
  display: inline-block;
  background: var(--accent);
  color: var(--blanc);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, transform 0.15s;
}
.bouton:hover { background: var(--accent-fonce); text-decoration: none; transform: translateY(-1px); }
.bouton-secondaire {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.bouton-secondaire:hover { background: var(--accent); border-color: var(--accent); color: var(--blanc); }
.bouton-large { padding: 16px 34px; font-size: 1.08rem; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 800px; margin: 0 auto 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sous-titre { font-size: 1.2rem; color: var(--gris); max-width: 640px; margin: 0 auto 30px; }
.hero-preuves { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 26px; color: var(--gris); font-size: 0.92rem; font-weight: 600; }
.hero-preuves span::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* Sections */
.section { padding: 64px 0; }
.section-teintee { background: var(--teinte); color: var(--encre); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 14px; text-align: center;
}
.section .intro-section { text-align: center; color: var(--gris); max-width: 620px; margin: 0 auto 40px; }
.section-teintee .intro-section { color: var(--gris); }

/* Outil */
.outil-carte {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 30px;
  max-width: 820px;
  margin: 0 auto;
}
.outil-carte label { font-weight: 700; display: block; margin-bottom: 8px; }
.outil-carte textarea {
  width: 100%; min-height: 240px; resize: vertical;
  border: 2px solid #8a8f99; border-radius: 10px;
  padding: 14px; font-family: var(--sans); font-size: 16px;
  color: var(--encre); background: #fcfbf8;
}
.outil-carte textarea:focus, .outil-carte input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.outil-carte input[type="text"] {
  width: 100%; border: 2px solid #8a8f99; border-radius: 10px;
  padding: 12px 14px; font-size: 16px; background: #fcfbf8; color: var(--encre);
}
.champ { margin-bottom: 18px; }
.aide-champ { font-size: 0.85rem; color: var(--gris); margin-top: 6px; }

/* Résultat */
.resultat { max-width: 820px; margin: 34px auto 0; }
.carte-score {
  background: var(--blanc); color: var(--encre);
  border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 34px;
  text-align: center; box-shadow: var(--ombre);
}
.score-chiffre { font-family: var(--serif); font-size: 4.6rem; font-weight: 700; line-height: 1; color: var(--accent); }
.score-sur { font-size: 1.4rem; color: var(--gris); }
.score-label { font-size: 1.25rem; font-weight: 800; margin-top: 8px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre); }
.score-verdict { color: var(--gris); margin-top: 10px; max-width: 480px; margin-left: auto; margin-right: auto; }
.score-delta { display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 100px; font-weight: 800; font-size: 0.9rem; }
.score-delta.hausse { background: rgba(22, 163, 74, 0.12); color: #126c33; }
.score-delta.baisse { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.sous-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-top: 26px; }
.sous-score { background: var(--teinte); border-radius: 10px; padding: 14px; text-align: left; }
.sous-score .nom { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); font-weight: 700; }
.sous-score .valeur { font-size: 1.5rem; font-weight: 800; margin-top: 2px; color: var(--encre); }
.barre { height: 6px; background: var(--teinte-2); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.barre i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.actions-resultat { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.constats { margin-top: 26px; display: grid; gap: 12px; }
.constat {
  background: var(--blanc); border: 1px solid var(--bord);
  border-left: 5px solid var(--gris);
  border-radius: 10px; padding: 16px 18px;
}
.constat.bon { border-left-color: var(--ok); }
.constat.mauvais { border-left-color: var(--alerte); }
.constat.moyen { border-left-color: var(--orange); }
.constat strong { display: block; margin-bottom: 3px; }
.constat p { font-size: 0.93rem; color: var(--gris); }

/* Paywall */
.paywall {
  margin-top: 30px; position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--bord); background: var(--blanc);
}
.paywall-flou { filter: blur(7px); pointer-events: none; user-select: none; padding: 22px; }
.paywall-voile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.94));
  text-align: center; padding: 24px;
}
@media (max-width: 620px) {
  .paywall-voile { position: static; background: var(--blanc); }
  .paywall-flou { display: none; }
}
.paywall-voile h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 8px; }
.paywall-voile p { color: var(--gris); max-width: 420px; margin-bottom: 18px; }
.prix-barre { text-decoration: line-through; color: var(--gris); font-weight: 600; }
.prix-fort { font-size: 1.3rem; font-weight: 800; color: var(--encre); }

/* Étapes */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.etape { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--radius); padding: 26px; }
.etape .numero {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}
.etape h3 { margin-bottom: 6px; font-size: 1.1rem; }
.etape p { color: var(--gris); font-size: 0.95rem; }

/* Tarif */
.carte-tarif {
  max-width: 460px; margin: 0 auto;
  background: var(--blanc); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 36px; text-align: center;
  box-shadow: var(--ombre);
}
.carte-tarif .badge-tarif {
  display: inline-block; background: var(--accent); color: var(--blanc);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 14px;
}
.carte-tarif .prix { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; }
.carte-tarif .prix small { font-size: 1.1rem; color: var(--gris); font-family: var(--sans); }
.liste-inclus { list-style: none; text-align: left; margin: 22px 0 26px; }
.liste-inclus li { padding: 7px 0; border-bottom: 1px dashed var(--bord); font-size: 0.97rem; }
.liste-inclus li::before { content: "✓  "; color: var(--ok); font-weight: 800; }
.garantie { font-size: 0.85rem; color: var(--gris); margin-top: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--blanc); border: 1px solid var(--bord);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; padding: 8px 0; min-height: 28px; }
.faq details p { margin-top: 10px; color: var(--gris); }

/* Articles */
.article { max-width: 760px; margin: 0 auto; padding: 56px 20px; }
.article h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; margin-bottom: 12px; }
.article .chapo { font-size: 1.15rem; color: var(--gris); margin-bottom: 30px; }
.article h2 { font-family: var(--serif); font-size: 1.55rem; margin: 38px 0 12px; }
.article h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 7px; }
.article .encadre {
  background: var(--blanc); border-left: 5px solid var(--accent);
  border-radius: 8px; padding: 18px 22px; margin: 24px 0;
}
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--blanc); font-size: 0.95rem; }
.article th, .article td { border: 1px solid var(--bord); padding: 10px 12px; text-align: left; }
.article th { background: var(--teinte); color: var(--encre); }
.article table { display: block; overflow-x: auto; }
.meta-article { font-size: 0.88rem; color: var(--gris); margin-bottom: 26px; }
.cta-article {
  background: var(--teinte); color: var(--encre);
  border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 30px; text-align: center; margin: 40px 0 10px;
}
.cta-article h2 { color: var(--encre); margin-top: 0; }
.cta-article p { color: var(--gris); }
.fil-ariane { font-size: 0.85rem; color: var(--gris); margin-bottom: 18px; }

/* Pages légales */
.page-simple { max-width: 760px; margin: 0 auto; padding: 56px 20px; }
.page-simple h1 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 24px; }
.page-simple h2 { font-family: var(--serif); font-size: 1.4rem; margin: 30px 0 10px; }
.page-simple p, .page-simple li { margin-bottom: 12px; }
.page-simple ul { margin-left: 24px; }
.bloc-info {
  background: var(--blanc); border: 1px solid var(--bord);
  border-radius: 10px; padding: 20px 24px; margin: 18px 0;
}
.bloc-info p { margin-bottom: 6px; }

/* Footer */
.pied {
  background: var(--blanc); color: var(--gris);
  border-top: 1px solid var(--bord);
  margin-top: 70px; padding: 54px 0 0;
  font-size: 0.93rem;
}
.pied a { color: var(--encre); }
.pied a:hover { color: var(--accent); }
.pied-grille {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 40px;
}
@media (max-width: 860px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h4 { color: var(--encre); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.pied ul { list-style: none; }
.pied li { margin-bottom: 4px; }
.pied li a { display: inline-block; padding: 6px 0; }
.pied h3 { color: var(--encre); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.pied .logo { color: var(--encre); margin-bottom: 12px; }
.pied .logo-badge::after { border-color: var(--blanc); }
.pied-bas {
  border-top: 1px solid var(--bord);
  padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.83rem; color: var(--gris);
}
.pied-desc { max-width: 280px; font-size: 0.9rem; }

/* Divers */
.centre { text-align: center; }
.mt-30 { margin-top: 30px; }
.cache { display: none !important; }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.erreur-champ { color: var(--alerte); font-weight: 600; font-size: 0.92rem; margin-top: 8px; }
.erreur-champ:empty { display: none; }
.lien-bouton {
  background: none; border: none; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; font: inherit; font-size: 0.9rem; padding: 8px 4px;
}
#resultat:focus { outline: none; }

@media (max-width: 520px) {
  .conteneur { padding: 0 14px; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 28px; }
  .outil-carte { padding: 18px; }
  .carte-score { padding: 22px; }
  .carte-tarif { padding: 22px; }
  .paywall-flou { padding: 14px; }
  .article th, .article td { padding: 8px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
  .bouton:hover { transform: none; }
}
