:root {
  --bg1: #fff3c4;
  --bg2: #ffb36b;
  --card: rgba(255, 255, 255, 0.88);
  --text: #3b2100;
  --accent: #ff6b35;
  --accent2: #1f9ecf;
  --shadow: 0 18px 45px rgba(84, 39, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg1), var(--bg2));
}

.page-shell {
  width: min(1050px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0;
}

.card {
  background: var(--card);
  border: 3px solid rgba(255, 255, 255, 0.65);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.weather-label {
  margin: 0 0 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: #4d4d4d;
}

.weather-box {
  /*display: inline-flex;*/
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 210px;
  padding: 12px 20px;
  /*border-radius: 999px;*/
  background: #fc9d30;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  
}


h1 {
  margin: 24px 0 12px;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
}

.top-m{
  margin-top: 5%;
}


.funny-sentence {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  padding-top: 5%;
  padding-bottom: 3%;
}

.hydration-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
  padding: 12px 18px;
  color: #0f5f80;
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.main-button:hover,
.main-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.water-button,
.temp-button {
  background: var(--accent2);
}

.temp-button,
.hot-button {
  background: var(--accent);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #f0d6b7;
}

th {
  background: #fc9d30;
  color: #fff;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  font-weight: 700;
}

.form-card {
  max-width: 650px;
  margin: 0 auto;
}


.back-link {
    display: block;
    margin-bottom: 15px;
    color: var(--text);
    text-decoration: none;
    text-align: center;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

label {
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #f0b36f;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1.05rem;
}

.hydration-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.hydration-card {
  width: min(850px, 100%);
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hydration-card h1 {
  font-size: clamp(3.5rem, 15vw, 9rem);
}

.gif-box img {
  width: min(520px, 100%);
  max-height: 420px;
  object-fit: contain;
  border-radius: 22px;
}

.small-text {
  font-size: 0.95rem;
  opacity: 0.75;
}

.orange {
  color: #ffb36b;
}

.heat-title {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.9;
}


.hydration-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at top, #d7f7ff, #2ba7db 58%, #0f5f9c);
  color: #ffffff;
}

.hydration-gate-hidden {
  display: none;
}

.main-content-hidden {
  display: none;
}

.hydration-gate-card {
  width: min(900px, 100%);
  padding: 34px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 45px rgba(0, 45, 86, 0.28);
  backdrop-filter: blur(8px);
}

.gate-kicker {
  margin: 0 0 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hydration-gate h1 {
  color: #ffffff;
  margin-top: 0;
}

.gate-sentence {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 900;
}

.gate-button {
  background: #ffffff;
  color: #0f5f9c;
}

.gate-note {
  margin-top: 18px;
  opacity: 0.9;
}

.redirect{
  background: #ffffff;
  color: #0f5f9c;
}

@media (max-width: 650px) {
  .page-shell {
    width: min(100% - 18px, 1050px);
    padding: 12px 0;
  }

  .card {
    padding: 20px;
  }

  .main-button {
    width: 100%;
    min-height: 64px;
    font-size: 1rem;
  }

  th,
  td {
    padding: 12px 9px;
    font-size: 0.95rem;
  }
}

/* Kit Canard™ : champ invisible anti-bot */
.canard-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
