/* ====================================================================
   wp-pirate.fr · feuilles de style custom
   Complémentaire à Tailwind CDN. Ne réécrit que ce que les utilités
   ne couvrent pas proprement (composants, micro-interactions, focus).
   ==================================================================== */

:root {
  --ink:     #0f172a;
  --ink2:    #1e293b;
  --paper:   #f8fafc;
  --mute:    #94a3b8;
  --line:    #1f2a44;
  --alert:   #ef4444;
  --alert-d: #b91c1c;
  --ok:      #22c55e;
  --ok-d:    #15803d;
}

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

.kpi .n, .stat-num {
  font-variant-numeric: tabular-nums;
}

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

/* ============ Section 2 · Symptômes ============ */
.symptom-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(30, 41, 59, .55);
  border: 1px solid rgba(31, 42, 68, .9);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.symptom-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, .35);
  background: rgba(30, 41, 59, .8);
}
.symptom-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: .65rem;
  background: rgba(239, 68, 68, .12);
  font-size: 1.1rem;
}
.symptom-card h3 {
  font-weight: 700; color: var(--paper); font-size: 1rem; line-height: 1.3;
}
.symptom-card p {
  color: var(--mute); font-size: .9rem; line-height: 1.5;
}

/* ============ Section 3 · Timeline ============ */
.timeline-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(30,41,59,.6), rgba(15,23,42,.6));
  border: 1px solid rgba(31, 42, 68, .9);
}
.timeline-card .t-badge {
  display: inline-flex; gap: .35rem; align-items: center;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--alert);
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  padding: .35rem .65rem; border-radius: 9999px;
  margin-bottom: .85rem;
}
.timeline-card h3 {
  font-weight: 800; color: var(--paper); font-size: 1.15rem;
  line-height: 1.25;
}

/* ============ Section 3 · Stats ============ */
.stat-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 42, 68, .9);
  background: rgba(30, 41, 59, .4);
}
.stat-num {
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--alert);
  margin-bottom: .6rem;
}
.stat-card p {
  color: var(--mute); font-size: .95rem; line-height: 1.55;
}
.stat-card p strong { color: var(--paper); font-weight: 700; }
.stat-card .src { color: #64748b; font-size: .8rem; font-style: italic; }

/* ============ Section 4 · KPI ============ */
.kpi {
  border-radius: .85rem;
  background: rgba(30, 41, 59, .55);
  border: 1px solid rgba(31, 42, 68, .9);
  padding: 1rem .9rem;
  text-align: center;
}
.kpi .n {
  font-size: 1.8rem; font-weight: 900; color: var(--paper);
  line-height: 1; letter-spacing: -.02em;
}
.kpi .l {
  margin-top: .35rem; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--mute);
}

.prose-frame {
  border-left: 3px solid var(--alert);
  padding-left: 1.25rem;
}

/* ============ Section 5 · Étapes ============ */
.step-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1rem;
  background: rgba(30, 41, 59, .5);
  border: 1px solid rgba(31, 42, 68, .9);
  transition: border-color .25s ease, transform .25s ease;
}
.step-card:hover {
  border-color: rgba(34, 197, 94, .35);
  transform: translateY(-2px);
}
.step-n {
  position: absolute; top: -.95rem; left: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.1rem; min-width: 2.1rem; padding: 0 .65rem;
  background: var(--ok); color: var(--paper);
  border-radius: 9999px;
  font-weight: 900; font-size: .85rem; letter-spacing: .05em;
  box-shadow: 0 12px 30px -10px rgba(34, 197, 94, .7);
}
.step-card h3 {
  font-weight: 800; color: var(--paper); font-size: 1.2rem;
  margin-bottom: .65rem; margin-top: .5rem;
}
.step-card p {
  color: var(--mute); font-size: .95rem; line-height: 1.6;
}

/* ============ Section 7 · Témoignages ============ */
.testi {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(30, 41, 59, .5);
  border: 1px solid rgba(31, 42, 68, .9);
}
.testi .stars {
  color: #fbbf24;
  letter-spacing: .15em;
  font-size: 1.1rem;
  margin-bottom: .8rem;
}
.testi blockquote {
  color: var(--paper); font-size: 1rem; line-height: 1.55;
  font-style: italic;
}
.testi footer {
  margin-top: 1rem; display: flex; flex-direction: column;
  font-size: .85rem;
}
.testi footer strong { color: var(--paper); font-weight: 700; }
.testi footer span { color: var(--mute); }

/* ====================================================================
   Section 8 · FAQ 2026
   Card style, numéro, catégorie chip, chevron SVG animé
   ==================================================================== */
.faq2 {
  border-radius: 1rem;
  border: 1px solid rgba(31, 42, 68, .85);
  background: rgba(30, 41, 59, .35);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.faq2[open] {
  background: rgba(30, 41, 59, .65);
  border-color: rgba(34, 197, 94, .35);
}
.faq2:hover:not([open]) {
  border-color: rgba(148, 163, 184, .35);
  background: rgba(30, 41, 59, .55);
}

.faq2 summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq2 summary::-webkit-details-marker,
.faq2 summary::marker { display: none; content: ''; }

.faq2-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: .65rem;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(31, 42, 68, .9);
  color: var(--mute);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  transition: color .2s, background .2s, border-color .2s;
}
.faq2[open] .faq2-num {
  background: rgba(34, 197, 94, .15);
  border-color: rgba(34, 197, 94, .4);
  color: var(--paper);
}

.faq2-q { min-width: 0; }
.faq2-q h3 {
  margin: .35rem 0 0;
  font-weight: 700;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .faq2-q h3 { font-size: 1.05rem; }
}

.faq2-cat {
  display: inline-flex; align-items: center;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .2rem .55rem;
  border-radius: 9999px;
  border: 1px solid currentColor;
  opacity: .85;
}
.faq2-cat--diag  { color: #60a5fa; background: rgba(96, 165, 250, .08); }
.faq2-cat--delai { color: #facc15; background: rgba(250, 204, 21, .08); }
.faq2-cat--seo   { color: #22c55e; background: rgba(34, 197, 94, .08);  }
.faq2-cat--rgpd  { color: #c084fc; background: rgba(192, 132, 252, .08); }
.faq2-cat--secu  { color: #f97316; background: rgba(249, 115, 22, .08); }
.faq2-cat--meth  { color: #38bdf8; background: rgba(56, 189, 248, .08); }
.faq2-cat--risk  { color: #ef4444; background: rgba(239, 68, 68, .08);  }
.faq2-cat--tarif { color: #34d399; background: rgba(52, 211, 153, .08); }

.faq2-chev {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: .5rem;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(31, 42, 68, .9);
  color: var(--paper);
  transition: transform .25s ease, background .2s, border-color .2s;
  flex: 0 0 auto;
}
.faq2-chev svg { width: 1rem; height: 1rem; }
.faq2[open] .faq2-chev {
  transform: rotate(180deg);
  background: rgba(34, 197, 94, .15);
  border-color: rgba(34, 197, 94, .4);
}

.faq2-body {
  padding: 0 1.25rem 1.4rem calc(1.25rem + 2.25rem + 1rem);
  color: var(--mute);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 75ch;
}
.faq2-body p + p { margin-top: .8rem; }
.faq2-body strong { color: var(--paper); }
.faq2-body a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--alert); }
@media (max-width: 640px) {
  .faq2-body { padding-left: 1.25rem; }
}

/* ====================================================================
   Section 9 · Contact + Formulaire 2026
   Field group, chips hébergeur, segmented control urgence
   ==================================================================== */
.contact-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: .9rem;
  flex: 0 0 auto;
}

/* Field wrapper */
.field { }

/* Labels */
.lbl {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}
.lbl .req { color: var(--alert); margin-left: 2px; }
.lbl .opt { color: var(--mute); font-weight: 400; font-size: .75rem; margin-left: 4px; }
fieldset .lbl { display: block; }

/* Inputs */
.inp {
  width: 100%;
  padding: .85rem .9rem;
  background: rgba(15, 23, 42, .65);
  color: var(--paper);
  border: 1px solid rgba(31, 42, 68, .95);
  border-radius: .75rem;
  font-size: 1rem;
  line-height: 1.4;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.inp::placeholder { color: #64748b; }
.inp:hover { border-color: rgba(148, 163, 184, .55); }
.inp:focus {
  outline: none;
  border-color: var(--alert);
  background: rgba(15, 23, 42, .85);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .15);
}
textarea.inp { min-height: 120px; }

/* Input with prefix icon */
.inp-prefix {
  position: relative;
  display: flex; align-items: center;
}
.inp-prefix > span {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  pointer-events: none;
  display: flex;
}
.inp--with-prefix { padding-left: 2.4rem; }

.inp:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(239, 68, 68, .55);
}

fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }

/* Chips hébergeur */
.chip-group {
  display: flex; flex-wrap: wrap;
  gap: .4rem;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px;
}
.chip > span {
  display: inline-flex; align-items: center;
  padding: .55rem .85rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, .65);
  border: 1px solid rgba(31, 42, 68, .95);
  color: var(--mute);
  font-size: .85rem;
  font-weight: 500;
  transition: color .15s, background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.chip:hover > span {
  color: var(--paper);
  border-color: rgba(148, 163, 184, .55);
}
.chip input:checked + span {
  color: var(--paper);
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .55);
  font-weight: 600;
}
.chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(248, 250, 252, .25);
}
.chip--neutral input:checked + span {
  background: rgba(148, 163, 184, .12);
  border-color: rgba(148, 163, 184, .45);
}

/* Segmented control niveau d'urgence */
.urg-group {
  display: grid;
  gap: .55rem;
}
.urg-card {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: .9rem;
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(31, 42, 68, .95);
  transition: background .15s, border-color .15s, transform .1s;
}
.urg-card input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px;
}
.urg-card:hover {
  border-color: rgba(148, 163, 184, .55);
  background: rgba(15, 23, 42, .75);
}
.urg-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: .65rem;
  flex: 0 0 auto;
}
.urg-icon svg { width: 1.15rem; height: 1.15rem; }
.urg-card--red    .urg-icon { background: rgba(239, 68, 68, .12); color: var(--alert); }
.urg-card--orange .urg-icon { background: rgba(249, 115, 22, .12); color: #f97316; }
.urg-card--yellow .urg-icon { background: rgba(250, 204, 21, .12); color: #facc15; }

.urg-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.urg-title {
  color: var(--paper);
  font-weight: 700;
  font-size: .95rem;
}
.urg-sub {
  color: var(--mute);
  font-size: .8rem;
  line-height: 1.4;
}

.urg-check {
  width: 1.3rem; height: 1.3rem;
  border-radius: 9999px;
  border: 2px solid rgba(148, 163, 184, .35);
  background: rgba(15, 23, 42, .8);
  flex: 0 0 auto;
  position: relative;
  transition: border-color .15s, background .15s;
}
.urg-check::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: .55rem; height: .55rem;
  border-radius: 9999px;
  background: var(--paper);
  transform: scale(0);
  transition: transform .15s ease;
}

.urg-card input:checked ~ .urg-check::after { transform: scale(1); }

.urg-card--red    input:checked ~ * .urg-icon, /* no-op fallback */
.urg-card--red:has(input:checked) {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .55);
}
.urg-card--orange:has(input:checked) {
  background: rgba(249, 115, 22, .1);
  border-color: rgba(249, 115, 22, .55);
}
.urg-card--yellow:has(input:checked) {
  background: rgba(250, 204, 21, .08);
  border-color: rgba(250, 204, 21, .55);
}
.urg-card:has(input:checked) .urg-check {
  border-color: var(--paper);
  background: var(--paper);
}
.urg-card:has(input:checked) .urg-check::after { background: var(--ink); }

.urg-card:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(248, 250, 252, .25);
}

/* RGPD checkbox */
.rgpd {
  display: flex; gap: .65rem; align-items: flex-start;
  color: var(--mute); font-size: .82rem; line-height: 1.5;
  cursor: pointer;
}
.rgpd input {
  margin-top: .15rem;
  width: 1.1rem; height: 1.1rem;
  accent-color: var(--alert);
  flex: 0 0 auto;
}
.rgpd a { color: var(--paper); }
.rgpd strong { color: var(--paper); font-weight: 700; }

/* Form status messages */
.form-status {
  padding: .85rem 1rem;
  border-radius: .65rem;
  font-size: .92rem; line-height: 1.45;
  border: 1px solid;
}
.form-status.is-ok    { background: rgba(34, 197, 94, .12);  border-color: rgba(34, 197, 94, .45);  color: #bbf7d0; }
.form-status.is-error { background: rgba(239, 68, 68, .12);  border-color: rgba(239, 68, 68, .55);  color: #fecaca; }
.form-status.is-info  { background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .45); color: var(--paper); }

/* Sticky WhatsApp mobile : marge bas du footer */
@media (max-width: 767px) {
  footer { padding-bottom: 6rem; }
}

/* Code inline */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(248, 250, 252, .08);
  border: 1px solid rgba(31, 42, 68, .9);
  border-radius: .35rem;
  padding: .05rem .35rem;
  font-size: .85em;
}

/* Print */
@media print {
  #wa-sticky, header, .form-status { display: none !important; }
  body { background: white; color: black; }
}
