/* Dima Maghrib — vitrine
   Look : boutique beige et noir, touches d'or discrètes. Un seul thème clair, assumé. */
:root {
  --creme: #F4EEE3;
  --blanc: #FAF7F1;
  --noir: #1D1A16;
  --texte-doux: #5C5245;
  --ligne: #DCCFB8;
  --or: #8C6A28;
  --or-clair: #C8B48A;
  --grise: #ECE4D6;
  --display: 'Italiana', Georgia, 'Times New Roman', serif;
  --titre: 'Marcellus', Georgia, 'Times New Roman', serif;
  --corps: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--noir);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--or); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }

/* Bandeau et en-tête */
.topbar {
  background: var(--noir); color: #E6D9BE;
  font-size: 13px; letter-spacing: .05em; text-align: center;
  padding: 9px 16px;
}
.topbar strong { font-weight: 600; letter-spacing: .1em; }

.header { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.header .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 20px 0; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo b { font-family: var(--titre); font-weight: 400; font-size: clamp(24px, 6vw, 32px); letter-spacing: .16em; white-space: nowrap; }
.logo-ligne { display: flex; align-items: center; gap: 12px; }
.logo-etoile { width: clamp(22px, 5vw, 28px); height: auto; fill: none; stroke: var(--or); stroke-width: 2.2; stroke-linejoin: round; flex: none; }
.ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin: 0 .15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topbar .ico { color: var(--or-clair); }
@media (max-width: 600px) { .topbar { font-size: 12px; } .topbar-plus { display: block; font-size: 11px; margin-top: 2px; } .topbar-plus .sep { display: none; } }
.logo small { font-size: 11px; letter-spacing: .34em; color: var(--or); margin-top: 7px; }
.nav {
  width: 100%; display: flex; gap: 26px; justify-content: center;
  overflow-x: auto; scrollbar-width: none;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 0 14px;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: #B39B6B; }
@media (max-width: 760px) { .nav { justify-content: flex-start; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--noir); color: var(--creme);
  font: inherit; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--noir); cursor: pointer;
}
.btn:hover { color: var(--creme); background: #000; }
.btn--clair { background: var(--creme); color: var(--noir); border-color: var(--creme); }
.btn--clair:hover { background: #fff; color: var(--noir); }
.btn--ligne { background: transparent; color: var(--noir); }
.btn--ligne:hover { background: var(--noir); color: var(--creme); }
.btn[disabled], .btn[aria-disabled="true"] { background: #CFC4B2; border-color: #CFC4B2; color: var(--texte-doux); cursor: not-allowed; }
.btn--plein { width: 100%; }
.wa-ico { width: 20px; height: 20px; flex: none; }

/* Typo de section */
.eyebrow { font-size: 12px; letter-spacing: .3em; color: var(--or); text-transform: uppercase; }
.section { padding-block: 72px 0; }
.section-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-titre h2 { font-family: var(--display); font-size: clamp(32px, 5vw, 42px); }
.lien-souligne { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid #B39B6B; }
.doux { color: var(--texte-doux); }

/* Accueil */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 36px 0; }
.hero-texte { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-family: var(--display); font-size: clamp(44px, 8vw, 66px); line-height: 1.04; }
.hero p { margin: 0; max-width: 440px; font-size: 17px; color: var(--texte-doux); }
.hero-visuels { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-visuels a { position: relative; overflow: hidden; }
.hero-visuels a:nth-child(2) { margin-top: 40px; }
.hero-visuels img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; transition: transform .7s ease; }
.hero-visuels a:hover img { transform: scale(1.03); }
.etiquette { position: absolute; left: 0; bottom: 0; background: var(--blanc); padding: 9px 14px; font-size: 12px; letter-spacing: .16em; color: var(--noir); }
.livraison-ligne { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3A342C; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.etapes li { background: var(--blanc); border: 1px solid var(--ligne); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.etapes .num { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--or); }
.etapes b { font-family: var(--titre); font-weight: 400; font-size: 20px; }

/* Cartes produits */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.carte { display: flex; flex-direction: column; gap: 10px; }
.carte-img { position: relative; overflow: hidden; background: #fff; }
.carte-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s ease; }
.carte:hover .carte-img img { transform: scale(1.03); }
.badge { position: absolute; left: 10px; top: 10px; background: var(--noir); color: #E6D9BE; font-size: 11px; letter-spacing: .14em; padding: 5px 9px; text-transform: uppercase; }
.carte h3 { font-family: var(--titre); font-size: 18px; line-height: 1.3; }
.prix { font-weight: 500; }
.prix small { font-weight: 400; color: var(--texte-doux); font-size: 13px; }

/* Bloc sombre */
.sombre { background: var(--noir); color: var(--creme); margin-top: 72px; padding-block: 72px; }
.sombre .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sombre video { flex: 1 1 380px; min-width: 0; width: 100%; aspect-ratio: 3 / 4; max-height: 600px; object-fit: cover; background: var(--noir); }
.sombre-texte { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sombre .eyebrow { color: var(--or-clair); }
.sombre h2 { font-family: var(--display); font-size: clamp(36px, 6vw, 52px); line-height: 1.06; }
.inclus { display: flex; flex-direction: column; border-top: 1px solid #3A342C; }
.inclus div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #3A342C; }
.inclus span:last-child { color: var(--or-clair); }
.gros-prix { font-family: var(--display); font-size: 52px; line-height: 1; }
.match { font-size: 14px; color: var(--or-clair); }

/* Clients */
.photos-clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.photos-clients figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.photos-clients img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photos-clients figcaption { font-size: 13px; color: var(--texte-doux); }

/* Infos */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; border-top: 1px solid var(--ligne); padding-top: 40px; }
.infos div { display: flex; flex-direction: column; gap: 6px; }
.infos b { font-family: var(--titre); font-weight: 400; font-size: 21px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles span { border: 1px solid #B39B6B; padding: 3px 12px; font-size: 13px; }

/* Pages produits */
.fil { font-size: 13px; color: var(--texte-doux); padding-top: 24px; }
.fiche { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 20px 0; }
.fiche-galerie { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fiche-galerie > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.vignettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vignettes button { padding: 0; border: 1px solid var(--ligne); background: none; cursor: pointer; opacity: .7; }
.vignettes button[aria-pressed="true"] { border-color: var(--noir); opacity: 1; }
.vignettes img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fiche-infos { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.fiche-infos h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 50px); line-height: 1.06; }
.prix-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.prix-ligne .gros { font-family: var(--display); font-size: 40px; line-height: 1; }
.tag-match { font-size: 13px; background: var(--noir); color: #E6D9BE; padding: 4px 10px; }
.choix { display: flex; flex-direction: column; gap: 10px; }
.choix-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; letter-spacing: .14em; font-weight: 500; text-transform: uppercase; }
.choix-titre span:last-child { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--texte-doux); }
.puce--cm { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; min-height: 52px; }
.puce-cm { font-size: 10px; color: inherit; opacity: .7; text-decoration: none; }
.conseil { margin: 0; padding: 10px 14px; background: var(--grise); border-left: 2px solid var(--or); font-size: 14px; }
.puces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.puce {
  font: inherit; font-size: 14px; min-height: 46px; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--blanc); color: var(--noir);
}
.puce[aria-pressed="true"] { background: var(--noir); color: var(--creme); border-color: var(--noir); }
.puce:disabled { background: var(--grise); color: #8F8576; text-decoration: line-through; cursor: not-allowed; }
.modeles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modele {
  font: inherit; font-size: 14px; line-height: 1.3; text-align: left; color: var(--noir);
  display: flex; align-items: center; gap: 12px; padding: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--ligne);
}
.modele[aria-pressed="true"] { border-color: var(--noir); background: var(--blanc); }
.modele img { width: 56px; height: 56px; object-fit: cover; flex: none; background: #fff; }
@media (max-width: 420px) { .modeles { grid-template-columns: minmax(0, 1fr); } }

.commande { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ligne); padding-top: 20px; }
.resume { font-size: 14px; color: var(--texte-doux); margin: 0; }
.relais { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--texte-doux); }
.relais a { text-decoration: underline; }
.liste-infos { display: flex; flex-direction: column; border-top: 1px solid var(--ligne); }
.liste-infos div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; }
.liste-infos span:last-child { color: var(--texte-doux); text-align: right; }

/* Maillots : cartes avec choix de taille */
.maillot { background: var(--blanc); border: 1px solid var(--ligne); display: flex; flex-direction: column; }
.maillot > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #fff; }
.maillot-corps { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.maillot h3 { font-family: var(--titre); font-size: 19px; line-height: 1.3; }
.maillot .puces { gap: 6px; }
.maillot .puce { min-height: 40px; font-size: 13px; }
.maillot .commande { margin-top: auto; padding-top: 14px; }

/* Bannière de page */
.banniere .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 20px 0; }
.banniere-texte { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.banniere h1 { font-family: var(--display); font-size: clamp(40px, 7vw, 60px); line-height: 1.05; }
.banniere img { flex: 1 1 520px; min-width: 0; width: 100%; aspect-ratio: 1312 / 1199; object-fit: cover; }

/* Encart pack */
.encart { background: var(--noir); color: var(--creme); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px; margin-top: 48px; }
.encart h2 { font-family: var(--display); font-size: clamp(28px, 4.5vw, 38px); }
.encart p { margin: 6px 0 0; color: #CFC4B2; max-width: 520px; }
.encart .gros-prix { font-size: 44px; }

/* Texte long */
.texte { max-width: 720px; padding-block: 24px 0; }
.texte h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 50px); margin-bottom: 18px; }
.texte h2 { font-family: var(--titre); font-size: 24px; margin: 36px 0 10px; }
.texte p, .texte li { color: #3A342C; }
.texte details { border-bottom: 1px solid var(--ligne); padding: 14px 0; }
.texte summary { cursor: pointer; font-weight: 500; }
.texte details p { margin: 10px 0 0; }
.a-completer { background: #F3E3C3; padding: 0 4px; }

/* Pied de page */
.pied { background: var(--noir); color: #EFE8DA; margin-top: 88px; padding-block: 56px 32px; }
.pied a { color: #EFE8DA; }
.pied a:hover { color: var(--or-clair); }
.pied-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.pied-grille > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pied .eyebrow { color: var(--or-clair); font-size: 11px; }
.pied-marque { font-family: var(--titre); font-size: 24px; letter-spacing: .14em; }
.reseau { border: 1px solid #5A5144; padding: 10px 14px; }
.pied-bas { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: #B8AD98; border-top: 1px solid #3A342C; margin-top: 36px; padding-top: 20px; }
.pied-bas a { color: #B8AD98; }

/* Fiche client */
.fiche-client { position: fixed; inset: 0; z-index: 20; background: rgba(29,26,22,.55); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.fiche-client[hidden] { display: none; }
.fc-boite { background: var(--creme); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .fiche-client { align-items: center; padding: 20px; } }
.fc-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fc-tete h2 { font-family: var(--titre); font-size: 22px; }
.fc-fermer { font: inherit; font-size: 28px; line-height: 1; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; margin: -10px -10px 0 0; color: var(--noir); }
.fc-intro, .fc-note { margin: 0; font-size: 13px; }
.fc-boite label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--texte-doux); }
.fc-boite input:not([type="radio"]), .fc-boite select { font: inherit; font-size: 16px; color: var(--noir); height: 46px; padding: 0 12px; border: 1px solid #CFC4B2; background: #fff; width: 100%; }
.fc-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fc-ligne--cp { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.fc-paiement { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fc-paiement legend { font-size: 13px; color: var(--texte-doux); margin-bottom: 6px; padding: 0; }
.fc-paiement label { flex-direction: row; align-items: center; gap: 6px; font-size: 15px; color: var(--noir); min-height: 32px; }
.fc-erreur { margin: 0; font-size: 14px; color: #8A2A1E; }

/* Message copié */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--noir); color: var(--creme); padding: 12px 18px; font-size: 14px; z-index: 10;
  max-width: calc(100% - 32px);
}

@media (max-width: 600px) {
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .carte h3, .maillot h3 { font-size: 15px; }
  .maillot-corps { padding: 12px; }
  .maillot .puces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maillot .relais { display: none; }
  .section { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
