/*
Theme Name: WI-FORM
Theme URI: https://wi-form.fr
Author: WI-FORM
Description: Site public WI-FORM. Informations Qualiopi, couleurs et logo de l'enseigne.
Version: 1.3
Text Domain: wiform
*/
:root {
  --ink: #1c2430;
  --plum: #370826;
  --teal: #147296;
  --teal-dark: #0e5670;
  --cyan: #38b8e8;
  --magenta: #883868;
  --muted: #5c6570;
  --paper: #f3f7f8;
  --card: #ffffff;
  --line: #d5e3e8;
  --mark: #e5f4fa;
  --plum-soft: #f7eef3;
  --warn: #8a4b12;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}
a { color: var(--teal-dark); }
a:hover { text-decoration: none; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--plum);
  color: white;
  padding: 0.5rem 0.8rem;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
header.site { background: var(--card); }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}
header.site .accent {
  height: 4px;
  background: linear-gradient(90deg, #b8d8e8 0%, #147296 38%, #883868 72%, #370826 100%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand img { height: 58px; width: auto; display: block; }
.brand strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand .wi { color: var(--plum); }
.brand .form { color: var(--teal); }
.brand .tagline { color: var(--muted); font-size: 0.85rem; }
nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }
nav a { text-decoration: none; font-size: 0.95rem; }
nav a[aria-current="page"] { font-weight: 700; color: var(--plum); border-bottom: 2px solid var(--plum); }

.hero { padding: 2.4rem 0 1.6rem; }
.hero.home {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.hero-logo { width: 168px; height: auto; }
.kicker {
  display: inline-block;
  background: var(--mark);
  color: var(--teal-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin: 0.6rem 0; color: var(--plum); }
h2 { font-size: 1.55rem; margin: 0 0 0.6rem; color: var(--plum); }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--plum); }
.lead { font-size: 1.15rem; max-width: 42rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.btn {
  display: inline-block;
  background: var(--teal);
  color: white;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}
.btn.secondary { background: transparent; color: var(--plum); border: 1px solid var(--plum); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.card:nth-child(2) { border-top-color: var(--plum); }
.card:nth-child(3) { border-top-color: var(--magenta); }
.card strong.price { font-size: 1.6rem; color: var(--teal); }
dl { margin: 0; }
.item { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.item dt { font-weight: 700; color: var(--plum); }
.item dd { margin: 0.2rem 0 0; }
ul.clean { padding-left: 1.1rem; }
.note {
  background: var(--plum-soft);
  border: 1px solid #e4c9d6;
  color: var(--plum);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
section { padding: 0.4rem 0 2rem; }
footer.site {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #b8d8e8, #147296, #883868, #370826) 1;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--card);
}
.update { color: var(--muted); font-size: 0.9rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 14px;
  padding: 0.9rem 0.85rem 1rem;
}
.step:nth-child(even) { border-top-color: var(--plum); }
.step .num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
}
.step:nth-child(even) .num { background: var(--plum); }
.step h2 { font-size: 1.05rem; margin: 0.55rem 0 0.4rem; }
.step ul { margin: 0; padding-left: 1.05rem; font-size: 0.92rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bar { flex-direction: column; align-items: flex-start; }
  .hero.home { grid-template-columns: 1fr; }
  .hero-logo { width: 120px; }
}
