/* BETONIA - harmonisation visuelle globale */
:root {
  --bt-blue: #005aaa;
  --bt-blue-dark: #1f258b;
  --bt-ink: #152033;
  --bt-muted: #607080;
  --bt-line: #dfe5ec;
  --bt-panel: #ffffff;
  --bt-bg: #f4f6f8;
  --bt-soft-blue: #e6f2ff;
  --bt-green: #1f8a4c;
  --bt-orange: #a05a00;
  --bt-shadow: 0 8px 20px rgba(18, 32, 52, 0.08);
}

html {
  background: var(--bt-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bt-bg) !important;
  color: var(--bt-ink) !important;
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  line-height: 1.55;
}

body > header,
header {
  min-height: auto !important;
  height: auto !important;
  padding: 18px 0 0 !important;
  background: transparent !important;
}

.top-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 18px;
  background: var(--bt-panel);
  border: 1px solid var(--bt-line);
  border-radius: 8px;
  box-shadow: var(--bt-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  width: 100%;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links li {
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.logo-ConcreteAI {
  width: 172px !important;
  height: auto !important;
  max-height: 62px;
  margin: 0 14px 0 0 !important;
  object-fit: contain;
}

.logo-gem {
  width: 118px !important;
  height: auto !important;
  margin: 0 0 0 12px !important;
  object-fit: contain;
}

.button,
.card-button,
button.submission,
.home-button,
.propertie-button,
.login-container button {
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.1;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s !important;
}

.button {
  min-height: 40px;
  padding: 10px 12px !important;
  color: #58616a !important;
  background: transparent !important;
  font-size: 0.93rem !important;
}

.button:hover,
.button:focus-visible {
  color: #ffffff !important;
  background: var(--bt-blue-dark) !important;
  outline: none;
}

.button p {
  margin: 0;
}

.logout-logo,
.login-logo {
  width: 22px !important;
  height: 22px !important;
  margin-left: 6px !important;
  object-fit: contain;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  min-width: 230px !important;
  padding: 8px !important;
  border: 1px solid var(--bt-line);
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(18, 32, 52, 0.14) !important;
  z-index: 50 !important;
}

.dropdown-content a {
  padding: 10px 12px !important;
  color: #4b5563 !important;
  border-radius: 6px !important;
  font-size: 0.9rem;
  font-weight: 750;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  color: #ffffff !important;
  background: var(--bt-blue-dark) !important;
}

.low-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 330px;
  margin: 26px auto 0;
  padding: 44px 36px;
  color: var(--bt-ink) !important;
  background: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.94)), url('/static/images/flow_prop.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--bt-line);
  border-left: 5px solid var(--bt-blue);
  border-radius: 8px;
  box-shadow: var(--bt-shadow);
  display: flex;
  align-items: flex-start !important;
  justify-content: center;
}

.low-header h1 {
  max-width: 760px;
  margin: 0 !important;
  padding: 0 !important;
  color: #111827 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: clamp(2rem, 4vw, 3.45rem) !important;
  line-height: 1.06;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.low-header p {
  max-width: 620px;
  margin: 16px 0 0 !important;
  color: var(--bt-muted) !important;
  font-size: 1.05rem !important;
  text-align: left;
}

.floating-image {
  display: none !important;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 56px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 18px;
}

.description,
.presentation-container,
.form-container,
.section > .description {
  width: 100% !important;
  box-sizing: border-box;
  background: #ffffff !important;
  border: 1px solid var(--bt-line) !important;
  border-left: 5px solid var(--bt-blue) !important;
  border-radius: 8px !important;
  box-shadow: var(--bt-shadow) !important;
  padding: 26px 30px !important;
  color: var(--bt-ink) !important;
}

.description h2,
.presentation-container h2,
.form-container h2,
main h1 {
  width: auto !important;
  max-width: none !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #111827 !important;
  border: 0 !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  font-weight: 850 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  animation: none !important;
}

.description p,
.presentation-container p,
.section p,
.card-text {
  width: auto !important;
  max-width: 820px !important;
  margin: 0 !important;
  color: var(--bt-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.65;
}

.presentation-container p,
.about-us p {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cards,
.team-container {
  width: 100% !important;
  background: transparent !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px !important;
  margin: 0 !important;
  align-items: stretch !important;
}

.card,
.team-member {
  width: 100% !important;
  max-width: none !important;
  min-height: 100%;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid var(--bt-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 16px rgba(18, 32, 52, 0.05) !important;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s !important;
}

.card:hover,
.team-member:hover {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  transform: translateY(-2px);
  border-color: #b9d8f6 !important;
  box-shadow: 0 12px 26px rgba(18, 32, 52, 0.11) !important;
}

.card img {
  width: 100% !important;
  height: 190px !important;
  display: block;
  object-fit: cover;
  background: #eef2f6 !important;
}

.card-body {
  min-height: 230px;
  padding: 18px !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  margin: 0;
  color: var(--bt-blue) !important;
  font-size: 1.12rem !important;
  font-weight: 850 !important;
  line-height: 1.25;
}

.card-button {
  align-self: flex-start !important;
  min-height: 40px;
  margin-top: auto;
  padding: 10px 14px !important;
  color: #ffffff !important;
  background: var(--bt-blue) !important;
  font-size: 0.9rem !important;
}

.card-button:hover,
button.submission:hover,
.home-button:hover {
  color: #ffffff !important;
  background: var(--bt-blue-dark) !important;
  transform: translateY(-1px);
}

.team-member {
  padding: 22px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center;
}

.team-member img {
  width: 132px !important;
  height: 132px !important;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 14px !important;
  border: 3px solid #e6f2ff;
}

.team-member h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 1rem;
  font-weight: 850;
}

.team-member p {
  margin: 0;
  color: var(--bt-muted);
  font-size: 0.9rem;
}

form {
  width: 100%;
}

.form-group {
  margin-bottom: 18px !important;
}

label {
  margin-bottom: 7px !important;
  color: #4b5563 !important;
  font-size: 0.86rem;
  font-weight: 850 !important;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  min-height: 42px;
  width: 100%;
  padding: 9px 11px !important;
  color: #1f2933 !important;
  background: #f9fbfd !important;
  border: 1px solid var(--bt-line) !important;
  border-radius: 6px !important;
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-size: 0.95rem !important;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--bt-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 90, 170, 0.12);
}

button.submission {
  min-height: 44px;
  background: var(--bt-blue) !important;
  font-size: 0.95rem !important;
}

.propertie-button,
.login-container button {
  min-height: 42px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  background: var(--bt-blue) !important;
  font-size: 0.92rem !important;
  cursor: pointer;
}

.propertie-button:hover,
.login-container button:hover {
  color: #ffffff !important;
  background: var(--bt-blue-dark) !important;
  transform: translateY(-1px);
}

.values {
  width: auto !important;
  min-width: 96px;
  padding: 8px 12px !important;
  background: var(--bt-blue) !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

.values:before {
  border-top-color: var(--bt-blue) !important;
}

input[type="range"]::-webkit-slider-thumb {
  background-color: var(--bt-blue) !important;
}

input[type="range"]::-moz-range-thumb {
  background-color: var(--bt-blue) !important;
}

.modal-content {
  border-radius: 8px !important;
  border: 1px solid var(--bt-line) !important;
  box-shadow: 0 18px 40px rgba(18, 32, 52, 0.18) !important;
}

@media (max-width: 980px) {
  .top-header,
  main,
  .low-header {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    justify-content: flex-start;
  }

  .logo-gem {
    display: none;
  }
}

@media (max-width: 680px) {
  .top-header {
    padding: 12px;
  }

  .nav-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .nav-links li:first-child {
    grid-column: 1 / -1;
  }

  .nav-links li,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .logo-ConcreteAI {
    margin: 0 auto 4px !important;
  }

  .low-header {
    min-height: auto;
    padding: 30px 22px;
  }

  .description,
  .presentation-container,
  .form-container,
  .section > .description {
    padding: 22px !important;
  }

  .cards,
  .team-container {
    grid-template-columns: 1fr;
  }
}
