* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

main,
.page,
.content-wrapper {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Système de grille */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.75rem;
  margin: 1.5rem 0 1rem;
}

h4 {
  font-size: 1.5rem;
  margin: 1.25rem 0 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Liens */
a {
  color: #6B5D4C;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #51473d;
}

/* Sélection */
::selection {
  color: white;
  background-color: #51473d;
}

/* Header */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid #dee2e6;
  background-color: #fff;
  position: relative;
}

.site-header .container {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Menu navigation */
.primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.primary-menu li {
  margin-left: 1.5rem;
}

.primary-menu li a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-menu li a:hover {
  color: #6B5D4C;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 999;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Description produit */
.product-description {
  padding: 4rem 0;
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  text-align: center;
}

.product-description h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-description h4 {
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 1rem;
}

/* Structure de page */
.page {
  padding-top: 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .row {
    margin-top: 40px;
    text-align: justify
  }
  nav, footer, .footer-menu {
    text-align: center;
  }
}


/* Menu latéral */
.persistent-menu {
  width: 100%;
  margin-bottom: 2rem;
}

.navigation {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.navigation span {
  display: block;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation ul li {
  margin-bottom: 0.5rem;
}

.navigation ul li a {
  display: block;
  padding: 0.75rem 0;
  color: #6c757d;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.navigation ul li a:hover {
  color: #6B5D4C;
}

.navigation ul li a.active {
  color: #6B5D4C;
  font-weight: 500;
}

/* Contenu principal */
.page-content {
  margin-bottom: 2rem;
}

.post-header {
  margin-bottom: 2rem;
}

.page-title {
  font-weight: 700;
  margin: 0;
}

.updated {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* Cartes */
.card {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  background-color: #fff;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  margin-bottom: 0.75rem;
}

.card-text {
  margin-bottom: 1rem;
  color: #6c757d;
}

/* Boutons */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: #554837;
  border-color: #554837;
}

.btn-primary:hover {
  background-color: #6B5D4C;
  border-color: #6B5D4C;
}

.btn-outline-light {
  color: #f8f9fa;
  background-color: transparent;
  border-color: #f8f9fa;
}

.btn-outline-light:hover {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.btn-pill {
  border-radius: 50px;
}

/* Navigation de page */
.page-nav {
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  justify-content: space-between;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid #dee2e6;
  background-color: #fff;
  text-align: center;
  margin-top: auto; /* Ajout pour coller le footer en bas */
}

.footer-logo img {
  max-height: 60px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-menu li {
  margin: 0.5rem 1rem;
}

.footer-menu li a {
  color: #6c757d;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-menu li a:hover {
  color: #6B5D4C;
}

.footer-social {
  margin: 1.5rem 0;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social ul li {
  margin: 0 0.75rem;
}

.footer-social ul li a {
  color: #cacedb;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social ul li a:hover {
  color: #6B5D4C;
}

/* Utilitaires */
.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: white;
  transition: transform 0.2s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

/* Media queries */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .persistent-menu {
    width: 20rem;
    padding-right: 1.5rem;
  }
  .page .container {
    display: flex;
  }
  .page-content {
    flex: 1;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Styles pour les petits écrans */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  .product-description {
    padding: 2rem 0;
  }
  .product-description h1 {
    font-size: 1.75rem;
  }
  .page-title {
    font-size: 1.75rem;
  }
  .hamburger {
    display: block;
  }
  .primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-bottom: 1px solid #dee2e6;
  }
  .primary-menu.active {
    display: flex;
  }
  .primary-menu li {
    margin: 0.5rem 0;
    margin-left: 0;
  }
  .primary-menu li a {
    padding: 0.75rem;
    font-size: 1.1rem;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .page-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .footer-menu {
    flex-direction: column;
  }
  .footer-menu li {
    margin: 0.5rem;
  }
}
