/* WALLY — page de présentation (site statique, sans compilation) */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --green: #0b5a44;
  --green-dark: #08402f;
  --green-soft: #e4efe9;
  --gold: #f4b31b;
  --gold-dark: #c98f00;
  --cream: #fbf6ea;
  --ink: #17261f;
  --muted: #5a6b63;
  --line: #dfe5df;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 90, 68, 0.12);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.cream { background: var(--cream); }
.eyebrow { color: var(--gold-dark); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; color: var(--green-dark); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 46rem; margin-top: 1rem; }
.center { text-align: center; }
.center .lead, .lead.center { margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.97rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: #ffc43d; box-shadow: 0 8px 20px rgba(244, 179, 27, 0.35); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.topbar .logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.93rem; }
.nav a:not(.btn):hover { color: var(--green); }
.nav .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* Héros */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #14795c 0%, transparent 60%), var(--green); color: var(--white); padding: clamp(3.5rem, 8vw, 6.5rem) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; padding: 0; list-style: none; }
.chips li { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.85rem; }

/* Ticket illustratif */
.ticket { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 1.6rem 1.5rem 2rem; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); transform: rotate(2deg); max-width: 380px; margin-inline: auto; position: relative; }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: radial-gradient(circle at 8px -2px, transparent 8px, var(--cream) 9px) repeat-x; background-size: 16px 12px; }
.ticket h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.ticket .tag { background: var(--green-soft); color: var(--green); font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; }
.ticket table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.ticket td { padding: 0.4rem 0; border-bottom: 1px dashed #d8d1bd; }
.ticket td:last-child { text-align: right; font-weight: 600; }
.ticket .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.9rem; }
.ticket .pay { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ticket .pay span { border: 1px solid #d8d1bd; border-radius: 8px; padding: 0.15rem 0.55rem; font-size: 0.75rem; color: var(--muted); }
.ticket .pay span.on { background: var(--green); color: var(--white); border-color: var(--green); }
.ticket .note { text-align: center; font-size: 0.7rem; color: var(--muted); margin-top: 1rem; }
.sync-badge { position: absolute; top: -16px; right: -12px; background: var(--gold); color: var(--green-dark); font-weight: 600; font-size: 0.78rem; padding: 0.4rem 0.8rem; border-radius: 999px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); display: flex; align-items: center; gap: 0.4rem; }
.sync-badge svg { width: 15px; height: 15px; }

/* Icônes */
.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cartes de fonctionnalités */
.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 1rem; }
.card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; color: var(--green-dark); }
.card p { color: var(--muted); font-size: 0.93rem; }
.also { margin-top: 2rem; text-align: center; color: var(--muted); font-size: 0.95rem; }
.also strong { color: var(--green-dark); }

/* Bandeau hors-ligne */
.offline { background: var(--green-dark); color: var(--white); }
.offline .eyebrow { color: var(--gold); }
.offline h2 { color: var(--white); }
.offline .lead { color: rgba(255, 255, 255, 0.82); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.8rem; counter-reset: s; }
.step { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 1.4rem; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--green-dark); font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: rgba(255, 255, 255, 0.8); font-size: 0.93rem; }

/* Métiers */
.trades .card { padding: 1.3rem 1.4rem; }
.trades h3 { font-size: 1rem; }

/* Appareils */
.devices .card { display: flex; flex-direction: column; }
.devices .card .btn { margin-top: auto; align-self: flex-start; }
.devices .card p { margin-bottom: 1.2rem; }
.small { font-size: 0.8rem; color: var(--muted); margin-top: 1.2rem; }

/* Démarrer */
.start { counter-reset: n; }
.start .card { position: relative; padding-top: 2.2rem; }
.start .card::before { counter-increment: n; content: counter(n); position: absolute; top: -18px; left: 1.4rem; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 700; display: grid; place-items: center; }

/* Offres */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--gold); position: relative; box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 1.4rem; background: var(--gold); color: var(--green-dark); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.8rem; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; }
.plan .price { margin: 0.8rem 0 0.2rem; font-size: 1.9rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; }
.plan .price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.plan .for { color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9rem; height: 0.5rem; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg) scale(0.9); }
.plan .btn { margin-top: auto; }
.fineprint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.6rem; }

/* Sécurité */
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.checks li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checks .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.checks strong { display: block; color: var(--green-dark); }
.checks span { color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq { max-width: 52rem; margin: 2.5rem auto 0; display: grid; gap: 0.8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--green-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { background: var(--green); color: var(--white); text-align: center; }
.contact h2 { color: var(--white); }
.contact .lead { color: rgba(255, 255, 255, 0.85); }
.contact .cta-row { justify-content: center; }
.contact .mail { margin-top: 1.4rem; color: rgba(255, 255, 255, 0.85); }
.contact .mail a { color: var(--gold); font-weight: 600; }

/* Pied de page */
footer { background: var(--green-dark); color: rgba(255, 255, 255, 0.75); padding: 2.5rem 0; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
footer img { height: 30px; width: auto; }
footer a { color: var(--white); text-decoration: none; margin-left: 1.2rem; }
footer a:hover { text-decoration: underline; }

/* Adaptation aux petits écrans */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ticket { transform: none; margin-top: 1rem; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .steps, .checks { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer a { margin: 0 1.2rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
