/* Variables */
#prov {
  text-align: center;
  padding-top: 150px;
  transform: rotateZ(-10deg) scale(1);
}

:root {
  --bg: #e5f1f5;
  --card-bg: #ffffff;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --text: #1f2933;
  --muted: #6b7280;
}

* {
  /*The HTML element will never exceed the specified content size*/
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* Common container (header, main and footer attributes HTML) */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
------------------------------- WEB PAGE -------------------------------------                                      
--------------------------------------------------------------------------- */

/* *********************** Header ******************************* */

/* Border configuration */
.site-header {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: white;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-logo {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 32px;
}

.mini-logo span {
  display: block;
  width: 8px;
  background: white;
  border-radius: 2px 2px 0 0;
}

.mini-logo span:nth-child(1) {
  height: 12px;
}

.mini-logo span:nth-child(2) {
  height: 22px;
}

.mini-logo span:nth-child(3) {
  height: 32px;
}

/* Subtitle ("Applications financières simples et efficaces") */
.tagline {
  align-self: flex-end;
  text-align: right;
  margin-top: -0.3rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  float: none;
}

/* *********************** Main ******************************* */

.cards-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

/* "startup" style for cards*/
.app-card,
.data-card {
  flex: 1;
  margin-top: 1rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.sql-card {
  margin-top: 2rem;
  margin: 0px auto;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  width: 800px;
}

/* Title */
.app-card h2,
.data-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Table configuration */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.6rem 0.8rem;
  border: 1px solid black;
}

th {
  background-color: var(--primary-soft);
  text-align: left;
}

button {
  border-radius: 10px;
  border: 1px solid #888;
  background-color: var(--primary-soft);
  width: 150px;
  display: block;
  margin: 20px auto;
  padding-top: 5px;
  padding-bottom: 5px;
}

button:hover {
  box-shadow: 0 10px 10px #555;
}

.text-button {
  color: black;
}

.text-button:hover {
  text-decoration: none;
}

.info {
  color: #585a5d;
  margin-top: 10px;
  font-style: italic;
}

/* *********************** Footer ******************************* */

/* Footer */
.site-footer {
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ---------------------------------------------------------------------------
------------------------------- MEDIA SCREEN ---------------------------------                                      
--------------------------------------------------------------------------- */

/* Smartphones */
@media (max-width: 900px) {
  body {
    font-size: 0.95rem;
  }

  .container,
  .app-card,
  .sql-card,
  .form-section,
  .table-section {
    max-width: 100%;
    width: 100%;
    margin: 1rem auto;
    padding: 1rem 1.1rem;
  }
  .sql-card table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .sql-card th,
  .sql-card td {
    padding: 0.4rem 0.5rem;
    word-break: break-word;
    font-size: 0.85rem;
  }

  .sql-card th:nth-child(1),
  .sql-card td:nth-child(1) {
    width: 50% !important;
    white-space: normal !important;
  }

  .sql-card th:nth-child(2),
  .sql-card td:nth-child(2) {
    width: 50% !important;
    white-space: normal !important;
  }

  .cards-row {
    flex-direction: column;
  }

  header h1,
  .site-header h1 {
    font-size: 1.4rem;
    text-align: left;
  }

  header p,
  .tagline {
    font-size: 0.9rem;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.4rem 0.5rem;
    word-break: break-word;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .form-row label {
    min-width: auto;
    text-align: left;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .smartphones {
    display: none;
  }
}
