/* Variables */
: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: 960px;
  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: 1.5rem 0;
}

/* Title ("datacofi.fr") */
.site-header h1 {
  margin: 0;
  text-align: left;
}

/* Subtitle ("Applications financières simples et efficaces") */
.tagline {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

/* *********************** Main ******************************* */

/* "startup" style for cards*/
.app-card {
  margin-top: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Title ("Applications disponibles") */
.app-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 {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem 0.8rem;
}

th {
  background-color: var(--primary-soft);
  text-align: left;
}

tr:nth-child(even) td {
  background-color: #f9fafb;
}

/* *********************** 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;
}

/* ---------------------------------------------------------------------------
------------------------------- OTHER PAGES ----------------------------------                                      
--------------------------------------------------------------------------- */

/* *********************** Header ******************************* */

/* Border configuration */
.legal-header {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #ffffff;
  padding: 1.5rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Title */
.legal-header h1 {
  margin: 0;
  font-size: 1.6rem;
}

/* Subtitle ("Version du ...") */
.legal-meta {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* *********************** Main ******************************* */

/* Card configuration */
.legal-content {
  max-width: 800px;
  margin: 2rem auto 3rem;
  background-color: #ffffff;
  padding: 2rem 2.2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Subtitles */
.legal-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  text-transform: none;
  text-decoration: none;
}

.legal-content h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  text-decoration: none;
}

/* Paragraphs */
.legal-content p {
  margin: 0.4rem 0 0.8rem;
  font-style: normal;
}

/* Lists */
.legal-content ul,
.legal-content ol {
  margin: 0.4rem 0 0.8rem 1.3rem;
}

.legal-content li {
  margin: 0.2rem 0;
  font-style: normal;
}

/* CTA Section */
.cta-section {
  margin-top: 2rem;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid #2563eb;
  text-align: center;
}

.cta-section h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: #1f2933;
}

.cta-section p {
  margin: 0.5rem 0 1.5rem;
  color: #475569;
  font-size: 0.95rem;
}

.btn-cta {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-cta:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Links */
.legal-content a {
  color: #2563eb;
  text-decoration: underline;
}

.button-page {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background-color: #2563eb;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 200px;
  margin-bottom: 30px;
}

button:hover {
  background-color: #1d4ed8;
}

/* ---------------------------------------------------------------------------
------------------------------- MEDIA SCREEN ---------------------------------                                      
--------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
