/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Global === */
body {
  font-family: Arial, sans-serif;
  background-color: #fff8f3;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}

section {
  margin-bottom: 20px; /* espace vertical global entre sections */
}

/* === Header === */
header {
  background-color: #8b0000;
  position:sticky;
  top:0;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  color: #fff;
  padding: 1rem 0;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 50px;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.page-news-title{
  text-align:center;                 /* centre le texte */
  margin: 24px auto 16px;            /* centre le bloc et ajoute de l'air */
  font-size: clamp(28px, 4vw, 42px); /* taille responsive (optionnel) */
  line-height: 1.2;
}


/* === Hero === */
.hero {
  background: url('/assets/hero.jpg') center top 51% /cover no-repeat;
  padding: 100px 10px;
  color: #fff;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* === Section titres === */
section h3 {
  margin-top: 0;
  color: #8b0000;
}

/* === About === */
.about-content {
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-radius: 20px;
  padding: 1.5rem;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text h3 {
  color: #8b0000;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
}

/* === Adresse & Horaires === */
.info-map {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

/* Colonne gauche */
.left-col {
  flex: 1 1 45%;
  min-width: 280px;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: #f4f4f4;
}

/* Colonne droite contenant 2 blocs */
.right-col {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Blocs horaires et contact */
.horaires-col,
.contact-col {
  padding: 1.5rem;
  border-radius: 20px;
  background-color: #f4f4f4;
}

.horaires-col h3,
.contact-col h3,
.left-col h3 {
  color: #8b0000;
  margin-bottom: 1rem;
}


/* === Contact === */
.contact-col {
  flex: 1 1 30%;
  min-width: 280px;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: #f4f4f4;
}

.contact-col h3 {
  margin-bottom: 1rem;
  color: #8b0000;
}


/* === Carte Map === */
.location {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
}

/* === Footer === */
footer {
  background-color: #8b0000;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* === Produits Page === */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.news-grid{
  display:flex;
  flex-wrap: wrap;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  justify-content: center;  /* <-- centré */
  gap:16px;
}

.news-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  width: clamp(280px, 30vw, 280px);
}

.news-thumb{
  position:relative;
  aspect-ratio:16/10;      /* image en haut */
  overflow:hidden;
}
.news-thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}

@media (hover:hover){
  .news-card:hover,
  .news-card:focus-within{
    transform: scale(1.03);         /* 1.02–1.05 selon ton goût */
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
    z-index: 2;
  }

  .news-card:hover .news-thumb img,
  .news-card:focus-within .news-thumb img{
    transform: scale(1.06);
  }
}

/* accessibilité : pas d’anim si préférences réduites */
@media (prefers-reduced-motion:reduce){
  .news-card, .news-thumb img{ transition: none; }
}


/*ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
.badge-pin{
  position:absolute; top:8px; left:8px;
  background:rgba(255,255,255,.9);
  padding:2px 6px; border-radius:10px; font-size:.85rem;
}

.news-body{
  padding:12px;
  display:flex; flex-direction:column; gap:6px;
}
.news-title{ margin:0; font-size:1rem; font-weight:700; }
.news-excerpt{ margin:0; color:#444; font-size:.92rem; }
.news-more{
  margin-left:auto; text-decoration:none; font-weight:600; color:#333;
}


/* === Recherche / Filtres === */
.filtre-bar {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.filtre-bar label {
  font-weight: bold;
  color: #8b0000;
  display: block;
  margin-bottom: 0.3rem;
}

.filtre-bar input {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  max-width: 200px;
}

/* === Catégories Produits === */
.category-section {
  margin-bottom: 60px;
}

.category-section h2 {
  font-size: 24px;
  color: #7a1d12;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid #7a1d12;
  padding-bottom: 5px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* === Collapsibles (catégories) === */
.collapsible {
  cursor: pointer;
  font-size: 1.4rem;
  color: #7a1d12;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapsible:hover {
  text-decoration: underline;
}

.arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.collapsible-content.collapsed {
  display: none;
}

/* === Boutons === */
.btn-red {
  display: inline-block;
  background-color: #8b0000;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
  margin-top: 2px;
  margin-left: 1px;
}
.current-btn {
  display: inline-block;
  background-color: #a30000;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
  margin-top: 2px;
  margin-left: 1px;
}
.btn-red:hover {
  background-color: #a30000;
}

/* === Admin Login === */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #ffffff;
}

.login-form {
  background-color: #f4f4f4;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
}

.login-form h1 {
  color: #8b0000;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-form .form-group {
  margin-bottom: 1rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.login-form input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.login-form .btn-red {
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
}

.login-form .error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

/* === Logout button === */
.logout-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #8b0000;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: background-color 0.2s ease;
}

.logout-button:hover {
  background-color: #a30000;
}

/* === Responsive === */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #8b0000;
    width: 100%;
    padding: 1rem 0;
    z-index: 10;
  }

  .menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-left {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .info-map {
    flex-direction: column;
  }
}
.container + .container {
  margin-top: 10px;
}

footer a {
  color: #fff;            /* même couleur que ton footer (ici blanc) */
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;  /* optionnel : souligne au survol */
}

.viandes {
  position: relative;
  background: url('/assets/viandes1.jpeg') center top 51% / cover no-repeat;
  padding: 100px 10px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Overlay sombre */
/* VIANDES */
.viandes {
  position: relative;
  background: url('/assets/viandes1.jpeg') center top 51% / cover no-repeat;
  padding: 100px 10px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.viandes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* ajuste l’opacité */
  z-index: 0;
}
.viandes .hero__content {
  position: relative;
  z-index: 1;
}
.page-title {
  color: #fff;
}

/* VOLAILLES */
.volailles {
  position: relative;
  background: url('/assets/volailles1.png') center top 51% / cover no-repeat;
  padding: 100px 10px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.volailles::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.volailles .hero__content {
  position: relative;
  z-index: 1;
}

/* FROMAGES */
.fromages {
  position: relative;
  background: url('/assets/hero.jpg') center top 51% / cover no-repeat;
  padding: 100px 10px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.fromages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.fromages .hero__content {
  position: relative;
  z-index: 1;
}

/* TRAITEUR */
.traiteur {
  position: relative;
  background: url('/assets/hero.jpg') center top 51% / cover no-repeat;
  padding: 100px 10px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.traiteur::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.traiteur .hero__content {
  position: relative;
  z-index: 1;
}

/*charcuterie*/
.charcuterie {
  position: relative;
  background: url('/assets/charcuterie.webp') center top 51% / cover no-repeat;
  padding: 100px 10px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.charcuterie::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.charcuterie .hero__content {
  position: relative;
  z-index: 1;
}


/* Overlay visible / caché */
.news-overlay[aria-hidden="true"]{display:none}
.news-overlay[aria-hidden="false"]{display:block}
.modal-open{overflow:hidden}

/* Fond sombre */
.news-overlay{
  position:fixed; inset:0; z-index:999;
}
.news-overlay__backdrop{
  position:absolute; inset:0;
  background:rgba(20,20,20,.92);
}

/* Carte au centre (look promo) */
.news-overlay__card{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(92vw, 380px);
  background:#fff; border-radius:16px; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.news-overlay__close{
  position:absolute; top:8px; right:10px;
  border:0; background:transparent; font-size:22px; line-height:1;
  cursor:pointer; color:#666;
}

/* Image en haut, arrondie par le conteneur */
.news-overlay__img{
  display:block; width:100%; height:210px; object-fit:cover;
}

/* Texte */
.news-overlay__body{ padding:14px 16px 18px; }
.news-overlay__title{ margin:0 0 6px; font-weight:700; font-size:1.05rem; line-height:1.25; color:#111; }
.news-overlay__desc{ color:#222; line-height:1.55; }

/* (facultatif) petite anim d'apparition */
@media (prefers-reduced-motion:no-preference){
  .news-overlay__backdrop{ animation:fadeIn .18s ease }
  .news-overlay__card{ animation:popIn .18s ease }
  @keyframes fadeIn{from{opacity:0}to{opacity:1}}
  @keyframes popIn{from{transform:translate(-50%,-52%) scale(.98)} to{transform:translate(-50%,-50%) scale(1)}}
}

/* forcer l'affichage/masquage */
#cookie-banner.is-hidden { display: none !important; }
#cookie-banner:not(.is-hidden) { display: flex; }

/* style minimal, adapte si tu veux */
.cookie-banner{
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: #fff; color:#111; padding: 12px 14px; gap: 12px;
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15);
  align-items: center; z-index: 9999;
}
.cookie-actions{ margin-left:auto; display:flex; gap:8px; }
.cookie-actions button{ border:0; border-radius:8px; padding:8px 12px; cursor:pointer; }

/* === Hero "NOS VIANDES" === */
.hero--viandes{ position:relative; }
.hero--viandes .hero__image{
  position:relative; height:clamp(220px, 35vw, 320px); overflow:hidden;
}
.hero--viandes .hero__image img{
  width:100%; height:100%; object-fit:cover; display:block;
}
/* voile sombre pour bien lire le titre */
.hero--viandes .hero__image::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35));
}
.hero--viandes .hero__content{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
.hero--viandes .page-title{
  margin:0; color:#fff; text-align:center; text-transform:uppercase;
  letter-spacing:.05em; text-shadow:0 2px 10px rgba(0,0,0,.35);
  font-size:clamp(32px, 6vw, 64px);
}



.viandes-bloc{ 
  text-align:center; 
  max-width:900px; 
  margin:2.5rem auto; 
} 

.viandes-bloc h2{ 
  margin:0 0 .75rem; 
  font-size:clamp(20px, 3.2vw, 28px); 
} 

.viandes-bloc p{ 
  margin:0 auto; 
  color:#444; 
  line-height:1.6; 
}

/* Galerie */
.viandes-galerie {
  margin: 2rem auto 3rem;
  max-width: 900px;
}

.viandes-galerie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
}


/* Figure */
.viandes-galerie figure {
  margin: 0;
}

/* Image */
.viandes-galerie img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Cas 2 : format portrait */
.viandes-galerie img.portrait {
  width: auto;
  max-height: 400px;
  object-fit: contain;
  margin-inline: auto;
}

/* Mobile */
@media (max-width: 768px) {
  .viandes-galerie__grid {
    grid-template-columns: 1fr; /* une seule colonne sur mobile */
  }
}

/* === Admin News Edit Form === */
.admin-news-edit {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.admin-news-edit h2 {
  margin-bottom: 20px;
  color: #8b0000;
  text-align: center;
}

.form-news-edit {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-news-edit input[type="text"],
.form-news-edit textarea,
.form-news-edit input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.form-news-edit input[type="file"] {
  background: #f9f9f9;
  cursor: pointer;
}

.form-news-edit textarea {
  resize: vertical;
}

.current-image {
  margin-bottom: 10px;
  text-align: center;
}

.current-image img {
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #444;
}

.form-news-edit button {
  background-color: #8b0000;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-news-edit button:hover {
  background-color: #a30000;
}


/* Bouton PDF dans l'overlay */
.news-overlay__pdf {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #f4f4f4;
  color: #8b0000;
  border: 2px solid #8b0000;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-overlay__pdf:hover {
  background-color: #8b0000;
  color: #fff;
}


.liste-fromages {
  list-style-type: disc;
  list-style-position: inside; /* rapproche les puces du texte */
  text-align: left;
  margin: auto;
  display: inline-block; /* garde la liste centrée dans le bloc */
  padding-left: 0;
}

.liste-fromages li {
  margin: 5px 0;
}

.charcuterie-bloc {
  text-align: center;
  max-width: 800px;
  margin: auto;
  font-family: Arial, sans-serif;
}

.charcuterie-bloc h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.charcuterie-bloc p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.charcuterie-bloc h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #b22222;
}

.liste-charcuterie {
  list-style-type: disc;
  list-style-position: inside; /* puce collée au texte */
  text-align: left;
  margin: 0 auto 15px auto;
  padding-left: 0;
  display: inline-block; /* garde la liste centrée */
}

.liste-charcuterie li {
  margin: 6px 0;
}


.ul-agneau {
  list-style: none;      /* ✅ enlève les puces */
  padding: 0;            /* supprime l’espace gauche */
  margin: 1rem 0;        /* espace vertical propre */
}

.location{
  text-decoration: none;
}