/* Styles spécifiques à mentions-legales.php.
   Externalisés depuis la balise <style> de la page pour faciliter la maintenance. */

* { box-sizing: border-box; }

:root {
  --wood: #7c3f19;
  --panel: #efe7c8;
  --accent: #c5522b;
  --accent-dark: #8f341c;
  --text: #24160d;
  --button-bg: #dcd98a;
  --button-bg-hover: #d5d17f;
  --cream: #fff8e8;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(215, 176, 122, 0.24), rgba(215, 176, 122, 0.24)),
    url("../images/fond-bovins.webp") center center / cover no-repeat fixed,
    linear-gradient(45deg, #c7975b, #f3d796 35%, #b4783c 70%, #efd398);
  min-height: 100vh;
}

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

.panel {
  background: rgba(239, 231, 200, .96);
  border: 4px solid var(--wood);
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(0,0,0,.2);
  padding: 24px 26px;
}

.page-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}

section + section {
  margin-top: 22px;
}

h2 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 1.2rem;
}

p, li {
  line-height: 1.55;
}

ul {
  margin-top: 8px;
}

.note {
  padding: 10px 12px;
  border-left: 5px solid var(--accent);
  background: rgba(255,255,255,.45);
  border-radius: 8px;
  font-weight: 700;
}

.todo {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff3cd;
  border: 1px solid rgba(124,63,25,.35);
  font-weight: 900;
}

a {
  color: var(--accent-dark);
  font-weight: 900;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 63, 25, .25);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border: 2px solid var(--wood);
  background: var(--button-bg);
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}

.back-btn:hover {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.site-footer {
  margin: 18px auto 4px;
  padding: 10px 0;
  text-align: center;
  font-size: .84rem;
  font-weight: 800;
  opacity: .82;
}

@media (max-width: 700px) and (orientation: portrait) {
  body {
    background:
      linear-gradient(rgba(215, 176, 122, 0.26), rgba(215, 176, 122, 0.26)),
      url("../images/fond-bovins-mobile.webp") center bottom / cover no-repeat scroll,
      linear-gradient(180deg, #f3d796, #c7975b);
  }

  .page {
    width: calc(100% - 16px);
    padding: 8px 0 18px;
  }
.panel {
    padding: 16px;
    border-width: 2px;
    border-radius: 11px;
  }

  .page-title {
    margin-bottom: 14px;
  }

  p, li {
    line-height: 1.45;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .back-btn {
    width: 100%;
  }
}

/* Téléphone paysage : même fond large que l’accueil, sans fixed pour éviter les saccades */
@media (max-width: 950px) and (orientation: landscape) {
  body {
    background:
      linear-gradient(rgba(215, 176, 122, 0.14), rgba(215, 176, 122, 0.14)),
      url("../images/fond-bovins.webp") center center / cover no-repeat scroll,
      linear-gradient(45deg, #c7975b, #f3d796 35%, #b4783c 70%, #efd398);
  }
}

@media (max-width: 950px) and (max-height: 620px) and (orientation: landscape) {
  .page {
    width: calc(100% - 16px);
    padding: 8px 0 18px;
  }
.panel {
    padding: 16px 18px;
  }
}
