:root {
  --bg: #f3f6f5;
  --bg-2: #e7eeec;
  --ink: #14201e;
  --muted: #4d5f5b;
  --teal: #0f5c56;
  --teal-deep: #0a3f3b;
  --line: #c9d6d2;
  --paper: #ffffff;
  --warn: #c62828;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-deep);
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Bandeau marque —— */
.mast {
  background: var(--teal-deep);
  color: #f2faf8;
  padding: 1.25rem 0 2.75rem;
  border-bottom: 6px solid #5eead4;
}

.mast-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mast-bar a {
  color: #b7ebe3;
  text-decoration: none;
  font-size: 0.95rem;
}

.mast-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

.mast-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.lang-switch span {
  color: #7fbbb2;
}

.lang-switch a.is-active {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  pointer-events: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark svg {
  flex-shrink: 0;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.tag {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #d7f3ee;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  cursor: pointer;
}

.btn-solid {
  background: #5eead4;
  color: #062a27 !important;
  border-color: #5eead4;
}

.btn-solid:hover {
  background: #99f6e4;
  border-color: #99f6e4;
  color: #062a27 !important;
}

.btn-line {
  background: transparent;
  color: #e7fffa !important;
  border-color: rgba(231, 255, 250, 0.45);
}

.btn-line:hover {
  border-color: #fff;
  color: #fff !important;
}

.meta {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: #9ed4cb;
}

/* —— Contenu —— */
main {
  padding: 2.5rem 0 1rem;
}

.block {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.block:last-child {
  border-bottom: 0;
}

.block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.block p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.howto {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.howto li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.howto li:first-child {
  border-top: 0;
}

.howto li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.85rem;
}

.howto strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.facts {
  margin: 1rem 0 0;
  padding: 0;
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--muted);
}

.facts li {
  margin: 0.35rem 0;
}

.facts strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border-left: 3px solid var(--teal);
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.contact-form {
  margin-top: 1.25rem;
  max-width: 28rem;
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-flash {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-flash.ok {
  background: #e6f7f4;
  color: #0a3f3b;
}

.form-flash.err {
  background: #fdecea;
  color: #8a1c1c;
}

@media (max-width: 640px) {
  .mast {
    padding-bottom: 2.1rem;
  }

  .brand {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
