/* PARABINA
   IDEE     le rayonnage de la boutique : tout est posé sur une étagère
   IMAGE    une longue étagère de produits autour du mortier du logo
   COULEUR  vert du logo #88ba32, vert bouteille #12341f, blanc, mandarine #ff7d3b
   TYPE     Rubik (angles arrondis, proche des lettres du logo), hébergée sur place */

@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-arabe.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  color-scheme: light;
  --vert: #88ba32;
  --vert-pale: #e9f4d3;
  --bouteille: #12341f;
  --feuille: #3f7d2c;
  --texte: #24402d;
  --mandarine: #ff7d3b;
  --soleil: #ffd04a;
  --ciel: #a9dcea;
  --blanc: #fff;
  --cote: max(5vw, 16px);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font: 400 17px/1.55 "Rubik", system-ui, sans-serif;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--bouteille); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.5vw, 64px); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(29px, 3.4vw, 44px); font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.2; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mandarine); outline-offset: 3px; border-radius: 6px; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.evite { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--bouteille); color: var(--blanc); }
.evite:focus { top: 12px; }
.bande { padding: clamp(52px, 6.5vw, 96px) var(--cote); }
.large { max-width: 1240px; margin-inline: auto; }

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid var(--bouteille);
  border-radius: 14px;
  color: var(--bouteille);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.bouton:hover { background: var(--bouteille); color: var(--blanc); }
.plein { background: var(--bouteille); color: var(--blanc); }
.plein:hover { background: #24573a; }
.clair { border-color: var(--blanc); background: var(--blanc); }
.clair:hover { background: var(--vert-pale); color: var(--bouteille); }
.contour { border-color: var(--blanc); color: var(--blanc); }
.contour:hover { background: var(--blanc); color: var(--bouteille); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px var(--cote);
  background: var(--blanc);
}
.logo { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.logo .icone { width: auto; height: 54px; }
.logo .nom { width: 148px; height: auto; }
.entete nav { display: flex; gap: 26px; }
.entete nav a { padding-block: 10px; color: var(--bouteille); font-weight: 500; text-decoration: none; }
.entete nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-color: var(--vert); }
.entete .bouton { min-height: 46px; padding: 8px 18px; }
.langue { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; color: var(--feuille); font-weight: 600; text-underline-offset: 6px; }

/* Arabe */
[lang="ar"] { letter-spacing: 0; }
[lang="ar"] h1 { line-height: 1.3; }
[lang="ar"] h2 { line-height: 1.35; }
[lang="ar"] h3 { line-height: 1.4; }
html[lang="ar"] body { line-height: 1.75; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Accueil */
.accueil {
  display: flex;
  flex-direction: column;
  min-height: min(calc(100svh - 74px), 840px);
  background: var(--vert);
}
.accueil-texte {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 56px;
  width: 100%;
  padding: clamp(32px, 4.4vw, 60px) var(--cote) 28px;
}
.accueil-texte > * { width: 100%; }
.accueil-texte p { max-width: 46ch; margin-bottom: 20px; color: var(--bouteille); font-size: 19px; }
.etagere { flex: 1; min-height: 340px; width: 100%; }

/* Rayons */
.tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 56px; margin-bottom: 40px; }
.tete p { max-width: 56ch; }
.rayons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 44px; }
.rayons .niche {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 216px;
  border-bottom: 14px solid var(--bouteille);
  background: var(--vert-pale);
}
.rayons svg { width: 148px; height: 185px; }
.rayons h3 { margin-block: 18px 6px; padding-inline-end: 20px; }
.rayons p { padding-inline-end: 20px; font-size: 16px; }
.note { margin-top: 32px; font-size: 15px; }

/* Avant de passer */
.conseil { background: var(--bouteille); color: #dcebd8; }
.conseil h2 { color: var(--blanc); margin-bottom: 16px; }
.conseil .large { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px 72px; }
.conseil p { max-width: 48ch; margin-bottom: 26px; }
.liste { padding: 12px 30px; border-radius: 6px; background: var(--blanc); color: var(--texte); }
.liste li { padding-block: 18px; border-bottom: 1px solid #cfe0b4; }
.liste li:last-child { border: 0; }
.liste strong { display: block; color: var(--bouteille); font-size: 19px; font-weight: 600; }

/* Marques */
.marques-liste > div {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 32px;
  padding-block: 20px;
  border-top: 2px solid var(--vert);
}
.marques-liste dt { font-weight: 600; color: var(--feuille); }
.marques-liste ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.marques-liste li { color: var(--bouteille); font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; line-height: 1.35; }

/* Nous trouver */
.trouver { background: var(--vert-pale); }
.trouver .large { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 64px; }
.trouver h2 { margin-bottom: 26px; }
.coord dt { font-size: 15px; font-weight: 500; color: var(--feuille); }
.coord dd { margin-bottom: 20px; color: var(--bouteille); font-size: 21px; font-weight: 500; line-height: 1.35; }
.coord dd a { display: inline-block; padding-block: 4px; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--vert); }
.coord .repere { font-size: 17px; font-weight: 400; color: var(--texte); }
.plan { display: flex; flex-direction: column; margin: 0; }
.plan svg { width: 100%; height: auto; border-radius: 14px; background: #f8fbf1; }
.plan figcaption { margin-top: 10px; font-size: 15px; }
.plan .rue { fill: none; stroke: #d3dec0; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.plan .boulevard { stroke: #c2d1a9; stroke-width: 20; }
.plan .dakhla { stroke: var(--vert); stroke-width: 20; }
.plan text { fill: var(--bouteille); font: 500 14px "Rubik", sans-serif; text-anchor: middle; dominant-baseline: middle; }
.plan .ici { font-size: 18px; font-weight: 700; fill: var(--blanc); }

/* Pied de page */
.pied { padding: 44px var(--cote); background: var(--bouteille); color: #dcebd8; }
.pied .large { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.pied .logo { margin: 0; }
.pied .logo img { filter: brightness(0) invert(1); }
.pied address { font-style: normal; }
.pied a { display: inline-block; padding-block: 3px; text-underline-offset: 4px; }
.barre { display: none; }

@media (max-width: 1000px) {
  .rayons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entete { gap: 20px; }
  .entete nav { gap: 18px; }
  .logo .nom { display: none; }
  .pied .logo .nom { display: block; }
  .accueil { min-height: 0; }
  .accueil-texte { grid-template-columns: minmax(0, 1fr); }
  .etagere { flex: none; min-height: 0; height: 46vw; }
  .trouver .large { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .entete nav, .entete .bouton { display: none; }
  .entete .logo .nom { display: block; }
  .logo .icone { height: 46px; }
  .accueil-texte { gap: 14px; padding-block: 26px 12px; }
  .accueil-texte p { margin: 0; font-size: 17px; }
  .accueil .boutons { display: none; }
  .etagere { height: 77vw; }
  .mortier { transform: translate(160px, 80px) scale(.8); }
  .gauche { transform: translateX(45px); }
  .droite { transform: translateX(-45px); }
  .tete, .conseil .large { grid-template-columns: minmax(0, 1fr); }
  .tete { margin-bottom: 28px; }
  .rayons { row-gap: 32px; }
  .rayons .niche { height: 168px; border-bottom-width: 11px; }
  .rayons svg { width: 114px; height: 143px; }
  .rayons h3 { margin-block: 14px 4px; padding-inline-end: 12px; font-size: 18px; }
  .rayons p { padding-inline-end: 12px; font-size: 15px; }
  .liste { padding: 6px 20px; }
  .marques-liste > div { grid-template-columns: minmax(0, 1fr); }
  .plan text { font-size: 21px; }
  .plan .ici { font-size: 25px; }
  .plan .detail { display: none; }
  .barre {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #cfe0b4;
    background: var(--blanc);
  }
  .barre .bouton { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
