/* ======= POLICE GLOBALE ======= */
:root {
  --main-bg: #f9f9f9;
  --main-color: #222;
  --link-color: #007bff;
  --header-bg: #212529;
  --footer-bg: #e9ecef;
  --font-family: 'Inter', sans-serif;
  --max-width: 1200px;
}

body {
  font-family: var(--font-family);
  background-color: var(--main-bg);
  color: var(--main-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  main {
    max-width: 100%;
    padding: 15px 10px;
  }
  body {
    font-size: 18px;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  p, li, td, th, input, select, textarea {
    font-size: 1.1rem;
  }
}


/* ======= TITRES ======= */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #1a1a1a;
}

/* ======= PARAGRAPHES & LIENS ======= */
p {
  margin-bottom: 1rem;
}
a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ======= LISTES ======= */
ul, ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

/* ======= IMAGES ======= */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* ======= TABLEAUX ======= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  padding: 10px;
  border: 1px solid #ccc;
}
th {
  background-color: #f0f0f0;
}

/* ======= FORMULAIRES ======= */
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 3px rgba(0,123,255,0.5);
}
button {
  background-color: var(--link-color);
  color: white;
  border: none;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}

/* ======= HEADER / NAV ======= */
header {
  background-color: var(--header-bg);
  color: white;
  padding: 1rem;
}
header h2 {
  margin: 0;
}
nav {
  margin-top: 0.5rem;
}
nav a {
  color: #f8f9fa;
  margin-right: 1rem;
}
nav a:hover {
  color: #adb5bd;
}

/* ======= FOOTER ======= */
footer {
  background-color: var(--footer-bg);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #555;
  margin-top: 2rem;
}

/* ======= SECTIONS ======= */
section {
  padding: 1.5rem 0;
}



/* Harmonisation titre du site */
.site-title h1 {
  margin: 0;
  font-size: 1.8rem;
}
.site-title h1 a {
  color: white;
  text-decoration: none;
}
.site-title h1 a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  nav a {
    margin-right: 0.8rem;
  }
}
footer a {
  white-space: nowrap;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.produit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
}
.produit img {
  width: 90px;
  height: 90px;
  object-fit: cover;
}
.produit__prix { margin: .2rem 0; }
.produit__allergenes { margin: .2rem 0; }
