/* Charte Mentori, ambiance Noël : vert sapin, orange, crème, touches dorées. */
:root {
  --green: #00312e;
  --green-2: #0a4540;
  --green-3: #145b53;
  --orange: #f08a39;
  --orange-d: #d4722a;
  --cream: #fbf4ea;
  --cream-2: #f1e4d1;
  --paper: #fffdf8;
  --gold: #d6ad62;
  --gold-l: #f4dca3;
  --ink: #00312e;
  --muted: #56706b;
  --danger: #b4412c;
  --ok: #2f7d5b;
  --font-display: 'Anton', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px -18px rgba(0, 49, 46, 0.45);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.45;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* --- Logo ------------------------------------------------------------- */
.logo {
  position: relative;
  display: inline-block;
  padding: 10px 0 0 12px;
  white-space: nowrap;
  line-height: 1;
}
.logo-mouth {
  position: absolute;
  top: -1px;
  left: -6px;
  width: 30px;
  height: 22px;
  object-fit: contain;
  transform: rotate(-18deg);
}
.logo-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.05rem;
}
.logo-cream .logo-text {
  color: var(--cream);
}
.logo-green .logo-text {
  color: var(--green);
}
.logo-accent {
  color: var(--orange);
}

/* --- Boutons ---------------------------------------------------------- */
.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  min-height: 52px;
  padding: 14px 20px;
  width: 100%;
  font: 700 1rem/1.2 var(--font-body);
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, opacity 0.2s;
  touch-action: manipulation;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(240, 138, 57, 0.9);
}
.btn-primary:hover {
  background: var(--orange-d);
}
.btn-green {
  background: var(--green);
  color: var(--cream);
}
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(0, 49, 46, 0.25);
}
.btn-ghost.armed,
.btn.armed {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-link {
  background: none;
  border: 0;
  padding: 8px 0;
  font: 600 0.95rem var(--font-body);
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-row > .btn {
  flex: 1 1 140px;
}

/* --- Formulaires ------------------------------------------------------ */
.field {
  display: block;
  margin: 0 0 14px;
}
.field > span {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field small {
  font-weight: 500;
  color: var(--muted);
}
.input {
  width: 100%;
  font: 500 16px/1.3 var(--font-body); /* 16 px : évite le zoom automatique sur iPhone */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--cream-2);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 138, 57, 0.16);
}
textarea.input {
  min-height: 92px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0 18px;
}
.check input {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--orange);
}
.form-error {
  background: #fbe6e0;
  color: var(--danger);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 14px;
}

/* --- Bandeau réseau et toasts ----------------------------------------- */
.net-banner {
  position: fixed;
  left: 50%;
  top: calc(10px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 100;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.toasts {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 90;
  pointer-events: none;
}
.toast {
  background: var(--green);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  max-width: 460px;
  text-align: center;
  animation: toast-in 0.3s ease;
  transition: opacity 0.4s, transform 0.4s;
}
.toast.gold {
  background: var(--orange);
  color: #fff;
}
.toast.out {
  opacity: 0;
  transform: translateY(8px);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* --- Guirlande de lumières dorées (décor) ----------------------------- */
.garland {
  height: 16px;
  background: radial-gradient(circle at 50% 55%, var(--gold-l) 0 2.2px, rgba(244, 220, 163, 0.35) 3px, transparent 6px) 0 0 / 26px 16px
    repeat-x;
  animation: twinkle-bg 2.6s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes twinkle-bg {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
