/* ----------------------------- */
/* PALETTE & FONTS               */
/* ----------------------------- */
:root {
  --peche: #fbe9dd;
  --abricot: #f7b77c;
  --beige: #fff9f5;
  --brun: #7a4e2d;
  --brun-clair: #a3734c;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--beige);
  color: var(--brun);
}

/* ----------------------------- */
/* HEADER & NAVIGATION           */
/* ----------------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--peche);
  padding: 14px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo {
  width: 25%;
  max-width: 300px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--brun);
  font-weight: 600;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--abricot);
}

/* ----------------------------- */
/* PANIER ICON                   */
/* ----------------------------- */
.cart-icon {
  cursor: pointer;
  font-weight: bold;
  position: relative;
  background: var(--abricot);
  color: white;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

.cart-icon:hover {
  background: #f5a35c;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  color: var(--abricot);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
}

/* ----------------------------- */
/* PANIER POPUP                  */
/* ----------------------------- */
.cart {
  position: fixed;
  right: 30px;
  top: 90px;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

.cart h2 {
  margin-top: 0;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
  font-size: 1.2rem;
}

.cart ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.cart ul li {
  margin: 6px 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.cart ul li:hover {
  text-decoration: line-through;
  color: var(--brun-clair);
}

.cart p {
  font-weight: 600;
}

.cart button {
  background: var(--abricot);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.cart button:hover {
  background: #f5a35c;
}

.hidden { display: none; }

/* ----------------------------- */
/* HERO (Accueil)                */
/* ----------------------------- */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(180deg, var(--peche), var(--beige));
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  color: var(--brun-clair);
}

.btn {
  display: inline-block;
  background: var(--abricot);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #f5a35c;
}

/* ----------------------------- */
/* PRODUITS                      */
/* ----------------------------- */
.products h1 {
  text-align: center;
  margin: 40px 0 20px;
}

.products .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 18px;
  text-align: center;
  transition: transform 0.2s ease;
}

.product:hover {
  transform: translateY(-4px);
}

.product img {
  display: block;
  width: 80%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #fff9f5;
  transition: transform 0.25s ease;
}

.product img:hover {
  transform: scale(1.03);
}

.price {
  display: block;
  margin: 8px 0;
  font-weight: bold;
  color: var(--abricot);
  font-size: 1.1rem;
}

.product button {
  background: var(--abricot);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product button:hover {
  background: #f5a35c;
}

/* ----------------------------- */
/* CONTACT                       */
/* ----------------------------- */
.contact {
  padding: 80px 20px;
  text-align: center;
}

.contact ul {
  list-style: none;
  padding: 0;
}

.contact a {
  color: var(--brun);
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  color: var(--abricot);
}

/* ----------------------------- */
/* FOOTER                        */
/* ----------------------------- */
footer {
  text-align: center;
  padding: 24px;
  background: var(--peche);
  font-size: 0.9em;
  color: var(--brun);
}

/* ----------------------------- */
/* RESPONSIVE                    */
/* ----------------------------- */
@media (max-width: 700px) {
  nav a { font-size: 1rem; }
  .cart { right: 10px; width: 90%; }
  .products .grid { padding: 0 20px 40px; gap: 20px; }
  .hero { padding: 80px 15px; }
}


/* ===== Grille produits fiable (3 / 2 / 1 colonnes) ===== */
.products > .grid {
  display: grid !important;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* Desktop ≥1024px : 3 colonnes */
@media (min-width: 1024px) {
  .products > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Tablette 600–1023px : 2 colonnes */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .products > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 24px 48px;
    gap: 24px;
  }
}

/* Mobile <600px : 1 colonne */
@media (max-width: 599.98px) {
  .products > .grid {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
    gap: 16px;
  }
}
/* === MISE EN PAGE DES PRODUITS : plus d'air et alignement soigné === */
.products .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colonnes sur desktop */
  gap: 36px;              /* espace ENTRE les cartes */
  padding: 0 32px 60px;   /* espace AUTOUR de la grille */
  max-width: 1200px;
  margin: 0 auto;         /* centre la grille */
}

.product {
  background: #fff;
  border: 1px solid #f1e6db;  /* léger contour beige */
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding: 22px;
  overflow: hidden;           /* évite que l’image dépasse sur les bords arrondis */
}

/* Responsive : plus d'air aussi sur tablette et mobile */
@media (max-width: 900px) {
  .products .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 0 20px 48px;
  }
}
@media (max-width: 600px) {
  .products .grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 36px;
  }
}

/* Empêcher le scroll de fond quand le panier est ouvert */
body.no-scroll { overflow: hidden; }

/* Overlay derrière le panier (fermeture au clic/tap) */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998; /* sous le panier, au-dessus du header/menu */
}

/* Assure que le panier est au-dessus du menu */
.cart { z-index: 9999; position: fixed; /* (si ce n’est pas déjà le cas) */ }

/* Croix de fermeture, grande zone tactile (44px mini) */
.cart {
  position: fixed; /* requis pour l’absolute interne */
}
.cart .cart-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.cart .cart-close:hover { color: #666; }
.cart .cart-close:active { transform: scale(0.98); }

/* Checkout – layout propre */
.checkout{
  display:grid;
  place-items:center;
  padding: clamp(20px, 5vw, 60px);
}
.card{
  width:min(960px, 92vw);
  background:#fff;
  border:1px solid #ecd8cf;
  border-radius:16px;
  padding:clamp(16px, 3vw, 32px);
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
}
.checkout h1{ margin:0 0 1rem; font-size:clamp(1.4rem, 2.8vw, 2rem); }

/* Formulaire vertical : 1 colonne */
.form.form-vertical{ display:flex; flex-direction:column; gap:16px; }
.field label{ display:block; font-weight:600; margin-bottom:6px; }
.field input, .field textarea{
  width:100%; font:inherit;
  padding:12px 14px; border:1px solid #ecd8cf; border-radius:10px; background:#fff;
}
.field input:focus, .field textarea:focus{
  outline:none; border-color:#ff7b00; box-shadow:0 0 0 3px #ff7b001a;
}

/* Récap */
.summary{ margin-top:8px; border-top:1px dashed #ecd8cf; padding-top:16px; }
.summary h2{ margin:0 0 10px; font-size:1.1rem; }
.summary-list ul{ list-style:none; padding:0; margin:0; }
.summary-list li{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0; border-bottom:1px solid #f3e6df;
}
.summary-list li:last-child{ border-bottom:0; }
.summary-total{ text-align:right; margin-top:10px; font-weight:700; }

.actions{ display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; }

.btn{ display:inline-flex; align-items:center; justify-content:center; height:44px; padding:0 16px;
  border-radius:10px; cursor:pointer; border:1px solid transparent; font-weight:600; text-dec
.sr-only{ position:absolute; left:-9999px; }

/* --- Témoignages en bulles --- */
.testimonials-bubbles {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.testimonials-bubbles h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #5a3b2e;
  margin-bottom: 2.5rem;
}

.bubbles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.bubble {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f2e2d9;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 40px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top-color: #ffffff;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.05));
}

.bubble p {
  font-style: italic;
  font-size: 1rem;
  color: #6b4a3b;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.bubble span {
  display: block;
  text-align: right;
  color: #b27663;
  font-weight: 500;
  font-size: 0.9rem;
}
@media (prefers-reduced-motion:no-preference){
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Images: fond propre + fade-in au chargement */
img {
  background: #fff;              /* évite l'effet hachuré pendant le chargement */
  display: block;                /* évite les petits espaces sous l'image */
  max-width: 100%;
  height: auto;
  image-rendering: auto;         /* s'il y avait pixelated/crisp-edges */
}

.img-fade { 
  opacity: 0;
  transition: opacity .35s ease;
}
.img-fade.is-loaded {
  opacity: 1;
}
/* === HEADER + LOGO : version mobile corrigée === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  position: relative;
  z-index: 10;
}

header .logo {
  height: 65px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  cursor: pointer;
  transition: transform .25s ease;
}

header .logo:hover {
  transform: scale(1.04);
}

/* === Checkout : optimisations mobile === */
@media (max-width: 600px){
  .checkout .card{
    width: 100%;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
  }

  /* Empilement + respirations */
  .form.form-vertical{ gap: 14px; }
  .field label{ font-size: .98rem; }

  /* Touch friendly + évite le zoom iOS (<16px) */
  .field input,
  .field textarea{
    font-size: 16px;         /* évite le zoom iOS */
    padding: 12px 14px;
    border-radius: 10px;
  }
  .field textarea{ min-height: 110px; }

  /* Récap compact mais lisible */
  .summary{ margin-top: 6px; padding-top: 12px; border-top: 1px dashed #ecd8cf; }
  .summary-list li{ padding: 8px 0; }

  /* Boutons faciles à toucher */
  .actions{
    gap: 10px;
    justify-content: stretch;
  }
  .actions .btn{
    height: 48px;
    width: 100%;
  }
  .actions .btn-ghost{ order: 1; }
  .actions .btn-primary{ order: 2; }

  /* Option "barre fixe" pour le bouton Envoyer (si tu veux) */
  .actions.sticky-actions{
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    box-shadow: 0 -8px 20px rgba(0,0,0,.06);
  }
}




