/* ===== COULEURS : changez-les ici, tout le site suit ===== */
:root {
  --fond: #fbf7f4;
  --texte: #3a1f2b;
  --rose: #b76e79;
  --rose-clair: #f3dcd8;
  --prune: #4a2535;
  --doux: #8a6a73;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, .logo { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; line-height: 1.15; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

/* ----- En-tête ----- */
.entete {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 5vw;
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 247, 244, .92);
  backdrop-filter: blur(6px);
}
.logo { font-size: 1.7rem; text-decoration: none; font-style: italic; }
.entete nav a { margin-left: 2rem; text-decoration: none; font-size: .95rem; }
.entete nav a:hover { color: var(--rose); }

/* ----- Accueil ----- */
.accueil {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 4vw;
  align-items: center;
  padding: 4vw 5vw 6vw;
  max-width: 1300px; margin: 0 auto;
}
.accueil h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); color: var(--prune); margin-bottom: 1.4rem; }
.accueil p { max-width: 30rem; font-size: 1.1rem; margin-bottom: 2rem; color: var(--doux); }

.arche {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 1.5rem 1.5rem;   /* forme d'arche */
  overflow: hidden;
  background: linear-gradient(160deg, var(--rose-clair), var(--rose));
  max-width: 440px; width: 100%; justify-self: center;
}

.bouton {
  display: inline-block; padding: .95rem 2.2rem;
  background: var(--prune); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 400; letter-spacing: .02em;
  transition: background .25s;
}
.bouton:hover { background: var(--rose); }
.bouton.clair { background: #fff; color: var(--prune); }
.bouton.clair:hover { background: var(--rose-clair); }

/* ----- Bandeau ----- */
.bandeau {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: .6rem 3rem; padding: 1rem 5vw;
  background: var(--rose-clair); color: var(--prune); font-size: .95rem;
}

/* ----- Collection ----- */
.collection { padding: 6rem 5vw; max-width: 1300px; margin: 0 auto; text-align: center; }
.collection h2, .histoire h2, .contact h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); color: var(--prune); }
.sous-titre { color: var(--doux); margin-bottom: 3.5rem; }

.grille {
  display: grid; gap: 3rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.produit { text-align: left; }
.photo {
  aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 1.1rem;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, var(--rose-clair), #ecc9c6);
}
.photo img { transition: transform .5s; }
.produit:hover .photo img { transform: scale(1.05); }
.produit h3 { font-size: 1.5rem; color: var(--prune); }
.desc { font-size: .92rem; color: var(--doux); }
.prix { font-size: 1.15rem; font-weight: 500; margin: .4rem 0 .8rem; }
.achat {
  display: inline-block; padding: .5rem 1.4rem; font-size: .9rem;
  border: 1px solid var(--prune); border-radius: 999px; text-decoration: none;
  transition: background .25s, color .25s;
}
.achat:hover { background: var(--prune); color: #fff; }

/* ----- Histoire ----- */
.histoire {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
  padding: 5rem 5vw; max-width: 1300px; margin: 0 auto;
}
.histoire-photo {
  aspect-ratio: 4 / 3; border-radius: 1.5rem 1.5rem 1.5rem 8rem; overflow: hidden;
  background: linear-gradient(150deg, #ecc9c6, var(--rose-clair));
}
.histoire-texte h2 { margin-bottom: 1.2rem; }
.histoire-texte p { margin-bottom: 1rem; max-width: 34rem; color: var(--doux); }

/* ----- Contact ----- */
.contact {
  text-align: center; padding: 6rem 5vw;
  background: var(--prune); color: #fff;
}
.contact h2 { color: #fff; margin-bottom: 1rem; }
.contact p { max-width: 32rem; margin: 0 auto 2rem; color: #ecd6d6; }
.contact .reseaux { margin: 2rem 0 0; }
.contact .reseaux a:hover { color: var(--rose-clair); }

.pied { text-align: center; padding: 1.5rem; font-size: .85rem; color: var(--doux); }

/* ----- Téléphone ----- */
@media (max-width: 800px) {
  .accueil, .histoire { grid-template-columns: 1fr; }
  .accueil { padding-top: 1rem; }
  .arche { order: -1; max-width: 320px; }
  .entete nav a { margin-left: 1rem; }
  .logo { font-size: 1.35rem; }
}

/* ===== Filtres de la collection ===== */
.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 3rem; }
.filtre {
  font: inherit; font-size: .92rem; padding: .45rem 1.3rem; cursor: pointer;
  background: transparent; color: var(--prune);
  border: 1px solid var(--rose-clair); border-radius: 999px;
  transition: background .2s, border-color .2s;
}
.filtre:hover { border-color: var(--rose); }
.filtre.actif { background: var(--prune); color: #fff; border-color: var(--prune); }
.filtre:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* La carte entière est cliquable */
a.produit { display: block; text-decoration: none; color: inherit; }
.photo { position: relative; }
.badge {
  position: absolute; top: .8rem; left: .8rem; padding: .2rem .8rem;
  background: var(--fond); color: var(--prune); border-radius: 999px; font-size: .8rem;
}
.produit:hover .achat { background: var(--prune); color: #fff; }

/* ===== Page article ===== */
.fiche {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 5vw; align-items: start;
  max-width: 1200px; margin: 0 auto; padding: 3rem 5vw 6rem;
}
.principale, .vignettes button {
  background: linear-gradient(145deg, var(--rose-clair), #ecc9c6); overflow: hidden;
}
.principale { aspect-ratio: 1 / 1; border-radius: 1.5rem; }
.vignettes { display: flex; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }
.vignettes button {
  width: 80px; height: 80px; padding: 0; border: 2px solid transparent;
  border-radius: .8rem; cursor: pointer; opacity: .7; transition: opacity .2s;
}
.vignettes button:hover { opacity: 1; }
.vignettes button.actif { border-color: var(--prune); opacity: 1; }

.infos .categorie { color: var(--rose); font-size: .95rem; margin-bottom: .3rem; }
.infos h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); color: var(--prune); }
.prix.grand { font-size: 1.6rem; margin: .8rem 0 1.4rem; }
.infos .texte { color: var(--doux); max-width: 32rem; margin-bottom: 2rem; }

.caracs { margin-bottom: 2.2rem; border-top: 1px solid var(--rose-clair); }
.caracs div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--rose-clair); font-size: .95rem;
}
.caracs dt { color: var(--doux); }
.caracs dd { color: var(--texte); }

.bouton.large { display: block; text-align: center; padding: 1.05rem 2rem; }
.note { font-size: .85rem; color: var(--doux); margin: 1rem 0 2rem; }
.epuise { padding: 1rem; background: var(--rose-clair); border-radius: .8rem; margin-bottom: 2rem; }
.retour { text-decoration: none; color: var(--doux); font-size: .95rem; }
.retour:hover { color: var(--rose); }
.introuvable { grid-column: 1 / -1; text-align: center; padding: 4rem 0; font-size: 1.2rem; }

@media (max-width: 800px) {
  .fiche { grid-template-columns: 1fr; padding-top: 1rem; }
  .caracs div { grid-template-columns: 7rem 1fr; }
}

/* ===== Éléments masquables ===== */
[hidden] { display: none !important; }
.contact .reseaux a { margin: 0 .9rem; }
.accueil-texte p:empty { display: none; }

/* ===== Page commande ===== */
.commande { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5vw; align-items: start;
  max-width: 1100px; margin: 0 auto; padding: 3rem 5vw 6rem; }
.recap .photo { max-width: 320px; }
.recap h2 { font-size: 1.9rem; color: var(--prune); }
.recap .retour { display: inline-block; margin-top: 1rem; }
.formulaire h1, .connexion h1, .gestion-tete h1, .merci h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--prune); margin-bottom: 1.5rem; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-bottom: 1.2rem; }
.champ { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--doux); }
.champ.large { grid-column: 1 / -1; }
.champ input, .champ textarea {
  font: inherit; font-size: 1rem; color: var(--texte); padding: .7rem .9rem;
  background: #fff; border: 1px solid var(--rose-clair); border-radius: .7rem; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--rose); border-color: transparent; }
.total { justify-content: end; font-size: 1.05rem; color: var(--texte); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.accord { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--doux); margin-bottom: 1.4rem; }
.accord input { margin-top: .3rem; accent-color: var(--prune); }
button.bouton { border: 0; cursor: pointer; font: inherit; width: 100%; }
button.bouton:disabled { opacity: .6; cursor: wait; }
.erreur { color: #a3262f; font-size: .95rem; margin-top: 1rem; }
.erreur:empty { display: none; }
.merci { grid-column: 1 / -1; text-align: center; padding: 3rem 0; }
.merci p { margin-bottom: 1rem; }

/* ===== Page gestion des commandes ===== */
.gestion { max-width: 1000px; margin: 0 auto; padding: 3rem 5vw 6rem; }
.connexion { max-width: 380px; margin: 3rem auto; }
.gestion-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gestion h2 { font-size: 1.6rem; color: var(--prune); margin: 1.5rem 0 1rem; }
.cartes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.commande-carte { background: #fff; border: 1px solid var(--rose-clair); border-left: 6px solid var(--rose);
  border-radius: 1rem; padding: 1.1rem 1.2rem; font-size: .95rem; }
.commande-carte header { display: flex; flex-direction: column; margin-bottom: .5rem; }
.commande-carte .num { font-size: .8rem; color: var(--doux); }
.commande-carte p { margin-bottom: .5rem; }
.commande-carte .bijou { font-weight: 500; color: var(--prune); }
.commande-carte .mot { font-style: italic; color: var(--doux); }
.commande-carte.envoyee { background: #eef5ea; border-left-color: #8fb98b; color: #6b6b6b; }
.commande-carte button, .archives-bouton, #actualiser { cursor: pointer; font: inherit; font-size: .9rem; background: transparent; color: var(--texte); }
.archives-bouton { margin: 2rem 0 1rem; }
.vide, .chargement { color: var(--doux); }

@media (max-width: 800px) {
  .commande { grid-template-columns: 1fr; }
  .recap .photo { max-width: 200px; }
}

/* Sous-collections : deuxième niveau de filtres, dans les couleurs du site. */
.sous-filtres { margin: -1.75rem auto 3rem; }
.sous-filtres[hidden] { display: none; }
.sous-filtres-label { color: var(--doux); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .65rem; }
.sous-filtres-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.sous-filtres .filtre { font-size: .85rem; padding: .35rem 1rem; }
.sous-filtres .filtre.actif { color: var(--prune); background: var(--rose-clair); border-color: var(--rose); }
.collection-vide { grid-column: 1 / -1; color: var(--doux); }
