:root {
  --bg: #fffaf0;
  --card: #fff1c9e6;
  --primary: #8b1e3f;
  --text: #2a2a2a;
  --muted: #6f6f6f;
  --radius: 14px;
  --bg-header-footer: rgba(255, 253, 232, 0.46); 
  }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/*FONT*/

@font-face {
    font-family: "Libre Baskerville";
    src: url("/backend/fonts/Libre_Baskerville/static/LibreBaskerville-Regular.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: "karla";
    src: url("/backend/fonts/Karla/static/Karla-Regular.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== HEADER ===== */
.header {
  
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  background-color:var(--bg);
}


.header-top {
  text-align: center;
  transform: translateY(65px);
  display: inline-block;
}

.logo-text {
  font-family: "Libre Baskerville", serif;
  font-size: 2.5rem;
  color: var(--primary);
  
}


.header-nav {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  align-items: end;
  margin-top: 1 rem;
  padding: 0 1.5rem;
}


.logo-img {
  width: 70px;
  height: auto;
transform: translateY(10px);
  display: inline-block;
  
}


.header-nav a {
  font-family: "Karla", sans-serif;
  text-decoration: none;
  color: #7b002f;
  font-size: 1rem;
  text-align: center;
}


.header-nav a.active {
  color: green;
}


.logout-btn:hover {
    background: #6f1026;
}

/* FOOTER */
.footer {
  padding: 0.8rem;
  background-color:var(--bg);

}

.footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 1rem;
  background-color: var(--bg);
}

.footer-nav a {
  text-decoration: none;
  color: #7b002f;
  font-family: "Karla", sans-serif;
}

.footer-nav a.active {
  color: green;
}

/*TITLE*/

h1 {
  color: var(--primary);
  font-family: "Libre Baskerville", serif;
}

p{
  color: var(--primary);
  font-family: "karla", sans-serif;
}

/* Cartes */
.card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  margin: 2rem 3rem;        
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Titres de section */
.card h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);

}

/* Texte */
.card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.7rem;
    color: var(--text);
}

/* Listes */
.card ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.card li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

/* Liens */
.card a {
    color: var(--primary);
    text-decoration: underline;
}


@media (min-width: 768px) {
  .card {
    margin: 2rem auto;
  }}

