/* ==========================================================
   SÉSAME – GLOBAL.CSS
   Reset, variables, layout, footer, hero, boutons, cards
========================================================== */



/*        ===Modal=================
           ==============*/
           .modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: 90%;
  max-width: 820px;
  height: 560px;
  animation: fadeIn 0.2s ease-in-out;

  background: #fff;
  border-radius: 12px;
  padding: 16px;

  overflow-y: auto;
  position: relative;
}

@keyframes fadeIn {
  from { transform: scale(0.98); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  padding: 3px;
  top: 10px;
  right: 10px;
  cursor: pointer;
    border: 2px solid var(--accent-bordeaux);
  color: var(--accent-bordeaux);
   border-radius: 999px;
  font-weight: 600;
}

.modal .images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.modal .images img {
   margin:4px;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}


 /* =========================
   IMAGES PRODUITS GLOBAL (fix Amazon-like)
========================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* image produit standard (cart + cards) */

.product-img,
.item-thumb img,
.produit-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

/* version mini (cart compact) */
.cart-mini-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
}

/* version très compacte type liste */
.cart-tiny-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

.modal-panel h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--accent-bordeaux);
}

.modal-panel p {
  text-align: center;
  margin: 8px 0;
  font-size: 1rem;
}
.modal-panel .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-bordeaux);
}

.modal-close:hover { 
  background: var(--accent-bordeaux); 
  color: #fff; }


  .modal-actions {
    margin-top: 15px;
}

.btn-cart {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #1E90FF;
    color: white;
}

.btn-cart:hover {
    opacity: 0.9;
}

/* ==========================
   Variables globales
========================== */
:root {
  --accent-bordeaux: #7F1734;
  --accent-brun: #64312A;
  --accent-bleu: #1E90FF;
  --accent-blanc: #f4f3f1;
  --accent-terre: #A65E2E;

  --overlay: rgba(0,0,0,0.35);

  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --max-width: 1200px;

  --bg-main: var(--accent-blanc);
  --bg-card: #fff;

  
}

/* ==========================
   Reset global
========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  color: #212121;
  line-height: 1.6;
  height: 100%;
  margin: 0;
  padding: 0;

  background: #fff; /* 🔥 supprime le fond gris */
  
  overscroll-behavior: none; /* 🔥 bloque le bounce */
    overflow-x: hidden;


}

/* ==========================
   Body / SPA Container
========================== */
body[class^="page-"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body[class^="page-"]::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
}

/* ==========================
   Main / Flex entre header et footer
========================== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  padding: 1rem;
}
.site-footer {
  
  background-color: var(--current-navbar-bg);
  color: var(--current-navbar-text);
  border-radius: 8px; /* coins arrondis */
  max-width: 100%; /* important */
  margin: 8px;
  padding: 0;
   
  font-size: 0.7rem;
  opacity: 0.9;
  text-align: center;
 
}

.footer-inner {
  margin: auto;
  padding: 0;
}

/* ==========================
   Hero
========================== */
.hero {
  min-height: 35vh;
  max-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem ;
}

.hero-inner {
  max-width: 800px;
  background: rgba(255,255,255,0.92);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--accent-bordeaux);
  margin-bottom: 0.5rem;
}

.hero p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   Boutons
========================== */
.btn-light {
  color: white;
  background: var(--accent-bordeaux);
  padding: .6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  transition: 0.25s ease;
}

.btn-light:hover { background: #981b1b; color: #fff; }

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #7a1f2b, #a12d3a);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #8f2635, #b83846);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #c2a6aa;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-secondary {
  border: 2px solid var(--accent-bordeaux);
  color: var(--accent-bordeaux);
  padding: .6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-secondary:hover { 
  background: var(--accent-bordeaux); 
  color: #fff; }



/* ==========================
   Cards
========================== */
.card, .service-card, .produit-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==========================
   Tables
========================== */
.table-wrap {
   overflow: auto; border: 1px solid #ddd; border-radius: 10px; 
   background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; border: 1px solid #ddd; text-align: left; }
thead th { background: #f5f5f5; position: sticky; top: 0; }

/* ==========================
   Services Grid Responsive
========================== */
.services-grid, .produit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 2rem auto;
}



@media(min-width: 768px) 
{ .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) 
{ .services-grid { grid-template-columns: repeat(4, 1fr); } }