/*
Theme Name: Bowling Challans Portail
Theme URI: https://bowling-challans.com/
Author: Bowling Challans
Description: Thème WordPress minimal et pleine largeur conçu pour le portail Bowling – Cartes Licenciés. Il n'impose aucune largeur maximale à la page du portail.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bowling-challans-portail
*/

:root {
  --bcpt-ink: #102532;
  --bcpt-muted: #657781;
  --bcpt-line: #dce6eb;
  --bcpt-surface: #ffffff;
  --bcpt-bg: #edf3f6;
  --bcpt-navy: #082d39;
  --bcpt-teal: #008f98;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--bcpt-ink);
  background: var(--bcpt-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--bcpt-teal);
}

img {
  max-width: 100%;
  height: auto;
}

.bcpt-site-header,
.bcpt-site-footer {
  width: min(calc(100% - 32px), 1320px);
  margin-inline: auto;
}

.bcpt-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 20px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, #071c27, #0b4653);
}

.bcpt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.bcpt-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.bcpt-page {
  width: min(calc(100% - 32px), 1320px);
  margin: 24px auto;
  padding: clamp(20px, 3vw, 42px);
  border: 1px solid var(--bcpt-line);
  border-radius: 24px;
  background: var(--bcpt-surface);
  box-shadow: 0 16px 48px rgba(8, 31, 43, .09);
}

.bcpt-page h1 {
  margin-top: 0;
  line-height: 1.1;
}

.bcpt-site-footer {
  padding: 20px 0 34px;
  color: var(--bcpt-muted);
  text-align: center;
  font-size: 14px;
}

/* La page du plugin doit occuper tout le viewport, sans en-tête ni pied de page. */
body.bcpt-portal-page {
  background: #edf3f6;
}

body.bcpt-portal-page .bcpt-site-header,
body.bcpt-portal-page .bcpt-site-footer {
  display: none;
}

body.bcpt-portal-page .bcpt-portal-host {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body.bcpt-portal-page .bcpt-portal-host > * {
  max-width: none;
}

@media (max-width: 680px) {
  .bcpt-site-header,
  .bcpt-site-footer,
  .bcpt-page {
    width: min(calc(100% - 16px), 1320px);
  }

  .bcpt-site-header {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .bcpt-page {
    margin-block: 12px;
    padding: 18px;
    border-radius: 18px;
  }
}
