body { 
  margin:0; 
  font-family: 'Georgia', serif; 
  color:#333; 
  background:#fafafa; 
}

/* TEMPORAIRE IMAGE OPENING SOON*/ 
.opening_soon_image {
  display: block;              /* pour pouvoir la centrer avec margin auto */
  margin: 0 auto;              /* centre horizontalement */
  width: 100%;                 /* prend toute la largeur disponible */
  max-width: 400px;            /* ne dépasse pas 400px */
  height: auto;                /* garde les proportions */
}

/* --- LAYOUT / HEADER --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.8rem 1.5rem;
  font-family: "Georgia", serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.048);
}
.logo-block {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo {
  height: 80px;
  width: auto;
  margin-right: 1rem;
}
.header-content {
  display: flex;
  align-items: center;
}
.cart-link {
  font-weight: bold;
  color: #333;
  text-decoration: none;
  background: #113b0415;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
}
.cart-link:hover {
  background: #113b041e;
}
.cart-icon {
  font-size: 1rem;
}
.header-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  font-size: 1rem;
}
.header-contact p {
  margin: 0;
}

/* --- LAYOUT / HEADER / Admin --- */
nav.admin-nav {
  background: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
}
nav.admin-nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
}
nav.admin-nav a:hover {
  text-decoration: underline;
}
nav.admin-nav button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* --- LAYOUT / BODY --- */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content {
  flex: 1; 
}
a {
  text-decoration: none;
  color: inherit;
}
a:visited {
  color: inherit;
}

/* --- LAYOUT / FOOTER --- */
footer {
  background: #2c2c2c;
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
footer a {
  color: #cfcfcf;
  margin: 0 8px;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
footer a:visited {
  color: inherit;
}
.footer-links {
  margin-bottom: 0.5rem;
}
.footer-legal-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap; /* permet aux images de passer à la ligne sur petit écran */
}
.footer-legal-images img {
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .footer-legal-images img {
    max-height: 35px; /* plus petit sur mobile */
  }
}

/* --- HOME / about--- */

section { 
  padding:2rem 2rem; 
  max-width:1100px; 
  margin:auto; 
}
.about {
  text-align: center;
  padding: 1rem 1rem;
  background: #f7f7f7;
  border-bottom: 1px solid #113b04cf ;
}
.about .intro-text {
  max-width: 800px;
  margin: 0 auto;
  color: #2c2c2c;
  font-family: "Georgia", serif;
}
.about h2 {
  font-size: 2rem;
  line-height: 1.3;
  color: #3b2f2f;
  margin-bottom: 1rem;
  font-weight: 700;
}
.about h2 span {
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: #113b04cf;
}
.about .subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a4a4a;

}
.about .highlight {
  font-size: 1rem;
  color: #6b2f2f;
  background: #fdf4ee;
  display: inline-block;
  padding: 0.6rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #eed7c5;
  font-weight: 500;
}

/* --- HOME / wines--- */
.wines { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); 
  gap:1.5rem; 
}
.wine-card {
  background: #fafafa;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wine-card h3 {
  margin: 0;
  line-height: 1.2;
}
.wine-card img + h3 {
  margin-top: 1rem;
}
.wine-card h3 + h3 {
  margin-top: 0.1rem;
}
.wine-card p {
  margin: 0.3rem 0.5;
  line-height: 1.3;
}
.wine-card p:nth-of-type(2) { /* le 2e <p> = la description_fr */
  min-height: 5rem;        
  max-height: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;    
  -webkit-box-orient: vertical;
}
.wine-card p + h4 {
  margin-top: 1rem; 
}
.wine-card h4 {
  margin: 0.3rem 0;
}
.wine-card canvas {
  margin-top: 0.5rem;
}
.wine-card img { 
  width:100%; 
  border-radius:12px; 
}
.wine-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.add-to-cart-form {
  margin-top: 0.5rem;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.add-to-cart-form.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.add-to-cart-form.disabled .btn {
  cursor: not-allowed;
}
.btn[disabled] {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}
.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.3rem;
  margin: 0.5rem 0;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-selector input[type=number] {
  -moz-appearance: textfield; /* Firefox */
}
.qty-btn,
.qty-input {
  flex: 1;
  height: 1.5rem;
  font-size: 1rem;
  text-align: center;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  box-sizing: border-box;
  line-height: 1;
}
.qty-btn {
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: #eee;
}
.qty-input {
  width: 100%;
  text-align: center;
}
.quantity-selector .qty-btn:first-child {
  margin-right: 0.2rem;
}
.quantity-selector .qty-btn:last-child {
  margin-left: 0.2rem;
}
.status {
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-weight: bold;
  color: white;
}
.status.in-stock { background-color: #2e8b57; }
.status.out-stock { background-color: #b22222; }
.price {
  font-weight: bold;
  color: #2c2c2c;
  font-size: 1rem;
}


/* --- HOME /section contact --- */
.contact {
  background: #f7f7f7;
  padding: 1rem 1rem;
  position: relative; /* nécessaire pour positionner le pseudo-élément */
  font-family: "Georgia", serif;
  color: #2c2c2c;
}
.contact::before { /* Ligne fondue (effet dégradé horizontal) */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px; /* épaisseur du trait */
  background: linear-gradient(to right, transparent, #113b04cf, transparent);
}
.contact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-person {
  text-align: center;
}
.contact-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}
.contact-person .intro {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.contact-person .signature {
  font-weight: bold;
  font-size: 1rem;
}
.contact-info h2,
.contact-newsletter h2 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: #333;
}
.contact-info p {
  margin: 0.3rem 0;
  line-height: 1.5;
  font-size: 1rem;
}
.contact-info a {
  color: #113b04cf;
  text-decoration: none;
  font-weight: 500;
}
.contact-info a:hover {
  text-decoration: underline;
}
.contact-newsletter p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.newsletter-form button {
  width: auto;
  background: #113b04cf;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-form button:hover {
  background: #113b0462;
}


/* --- RESPONSIVE --- */
@media (max-width: 1180px) {
  .site-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;          /* pour éviter les débordements */
    gap: 0.8rem;
    text-align: left;
  }

  .header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;    /* aligne joliment à droite */
    gap: 0.2rem;
    font-size: 0.9rem;
  }

  .cart-link {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    background: #113b0415;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.2s;
  }
}


@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .header-contact {
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
  }

  .cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #113b0415;
    transition: background 0.2s;
    font-weight: bold;
    font-size: 1.2rem;
  }

  .cart-text {
    display: none; /* cache "Mon panier", ne garde que 🛒 + nombre */
  }

  .cart-count {
    font-weight: 700;
    color: #333;
    margin-left: 2px;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .site-header h1 {
    font-size: 1.6rem;
  }
}


/* --- RESPONSIVE CONTACT --- */
@media (max-width: 920px) {
  .contact-container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.1rem;
  }
  .contact-person,
  .contact-info,
  .contact-newsletter {
    width: 100%;
    max-width: 400px;
    padding: 0.1rem;
  }
  .contact-photo {
    margin-bottom: 0.8rem;
  }
  .contact-person .intro {
    margin-bottom: 0.5rem;
  }
  .contact {
    padding: 1rem 1rem;
  }
  .newsletter-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-items: stretch;
    gap: 0.5rem;
  }
  .newsletter-form input {
    flex: 1;
    min-width: 0;
  }
  .newsletter-form button {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
  }
}


/* --- CART --- */
/* --- SECTION PANIER --- */
.cart-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #f7f7f7;
  color: #2c2c2c;
  font-family: "Georgia", serif;
}

.cart-section h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

/* --- TABLE --- */
.cart-table-container {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cart-table th,
.cart-table td {
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e6ddd0;
}

.cart-table th {
  background: #faf1ea;
  color: #333;
  font-weight: bold;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

/* --- Boutons +/- --- */
.qty-btn {
  flex: 1;
  height: 1.5rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center; /* centrage parfait horizontal + vertical */
  font-size: 1rem;
  font-weight: bold;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.qty-btn:hover {
  background-color: #f2f2f2;
}

.qty-btn:active {
  background-color: #e6e6e6;
}


.qty-number {
  font-weight: bold;
  font-size: 1rem;
}

/* --- Résumé panier --- */
.cart-summary {
  margin-top: 2rem;
  text-align: center;
}

.cart-summary h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #3b2f2f;
}

.cart-summary span {
  color: #113b04cf;
  font-weight: bold;
}

.cart-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Boutons principaux --- */
.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-secondary {
  background: #113b0415;
  color: #333;
  border: 1px solid #113b0415;
}

.btn-secondary:hover {
  background: #113b041e;
}

/* --- Panier vide --- */
.cart-empty {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}
.cart-empty-btn {
  text-align: center;
}

.cart-empty-btn .btn-primary,
.cart-empty-btn .btn-secondary {
  display: inline-block;
  width: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cart-section {
    padding: 2rem 1rem;
  }

  .cart-summary h3 {
    font-size: 1.2rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr {
    display: block;
    background: transparent;
  }

  .cart-table thead {
    display: none; /* on masque les en-têtes */
  }

  .cart-table tr {
    background: #fffaf5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .cart-table td {
    border: none;
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 0.3rem 0;
    font-size: 0.95rem;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #333;
  }

  /* Boutons +/- centrés dans leur ligne */
  .actions {
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
}



.container-mentions-legales, .container-cgu, .container-cgv, .container-livraison {
  padding:2rem 2rem; 
  max-width:1100px; 
  margin:auto; 
}


