/* ==========================================================================
   Dar Sabon — feuille de style
   Palette inspirée des teintes du souk : plâtre, safran, terre cuite, cèdre
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --ink:        #241A14;
  --sand:       #EFE3CB;
  --sand-deep:  #E4D3AC;
  --saffron:    #C9861F;
  --saffron-dk: #A46A15;
  --terracotta: #A6402A;
  --cedar:      #47592F;
  --charcoal:   #2A2420;
  --cream:      #FBF6EA;

  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;

  --radius: 3px;
  --container: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p{ margin: 0; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover{ background: #8f3524; }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--sand); }

.btn-whatsapp{
  background: var(--cedar);
  color: var(--cream);
}
.btn-whatsapp:hover{ background: #384a24; }

/* ---------------------------------------------------------------------- */
/* Motif zellige — utilisé une seule fois, en bordure d'entête et de pied  */
/* ---------------------------------------------------------------------- */
.zellige-band{
  height: 22px;
  width: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><g fill='none' stroke='%23C9861F' stroke-width='1.1'><path d='M0 11 L11 0 L22 11 L11 22 Z'/><path d='M22 11 L33 0 L44 11 L33 22 Z'/><circle cx='11' cy='11' r='3.2'/><circle cx='33' cy='11' r='3.2'/></g></svg>");
  background-repeat: repeat-x;
  background-size: 44px 22px;
  background-color: var(--ink);
}

/* ---------------------------------------------------------------------- */
/* En-tête                                                                 */
/* ---------------------------------------------------------------------- */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid rgba(36,26,20,0.12);
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.brand span{ color: var(--terracotta); }

.nav-links{
  display: flex;
  gap: 34px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a{ position: relative; padding-bottom: 3px; }
.nav-links a:hover{ color: var(--terracotta); }

.nav-actions{ display: flex; align-items: center; gap: 14px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{ width: 24px; height: 2px; background: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23C9861F' stroke-width='1'><path d='M60 4 L92 30 L92 90 L60 116 L28 90 L28 30 Z'/><path d='M60 4 L60 116 M28 30 L92 90 M92 30 L28 90'/></g></svg>");
  background-size: 120px 120px;
}
.hero-inner{
  position: relative;
  padding: 96px 0 84px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow{
  font-size: 0.92rem;
  color: var(--saffron);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  color: var(--cream);
  max-width: 14ch;
}
.hero h1 em{
  font-style: normal;
  color: var(--saffron);
}
.hero p.lede{
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: #DCD2BE;
}
.hero-actions{
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats{
  margin-top: 52px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--cream);
}
.hero-stats div span{
  font-size: 0.85rem;
  color: #B9AC93;
}

/* Illustration savon empilé, dessinée en CSS/SVG pur */
.hero-art{
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 380px;
}
.soap-stack{ position: relative; width: 220px; }
.soap-bar{
  height: 46px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  position: relative;
}
.soap-bar::after{
  content: "";
  position: absolute;
  inset: 6px 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
}
.soap-bar.solide{ background: linear-gradient(135deg, #EFE3CB, #D8C79C); }
.soap-bar.noir{ background: linear-gradient(135deg, #3A322A, #1C1712); }
.soap-bar.argan{ background: linear-gradient(135deg, #C9861F, #8F5E13); }

/* ---------------------------------------------------------------------- */
/* Sections génériques                                                     */
/* ---------------------------------------------------------------------- */
section{ padding: 96px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head .kicker{
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.section-head h2{
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.section-head p{
  margin-top: 16px;
  color: #4A3E33;
  font-size: 1.05rem;
  max-width: 52ch;
}
.section-alt{ background: var(--sand-deep); }

/* ---------------------------------------------------------------------- */
/* Gammes de produits — trois traitements distincts, pas des cartes clonées */
/* ---------------------------------------------------------------------- */
.gammes{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(36,26,20,0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.gamme{
  padding: 42px 34px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.gamme + .gamme{ border-left: 1px solid rgba(36,26,20,0.14); }

.gamme .glyph{ width: 54px; height: 54px; margin-bottom: 26px; }

.gamme h3{ font-size: 1.4rem; margin-bottom: 10px; }
.gamme .format{
  font-size: 0.82rem;
  text-transform: none;
  color: inherit;
  opacity: 0.75;
  margin-bottom: 18px;
}
.gamme p.desc{
  font-size: 0.97rem;
  line-height: 1.65;
  opacity: 0.92;
}
.gamme .moq{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  border-color: rgba(255,255,255,0.18);
  font-size: 0.88rem;
  font-weight: 500;
}

.gamme.solide{ background: var(--sand-deep); color: var(--ink); }
.gamme.solide .moq{ border-color: rgba(36,26,20,0.2); }
.gamme.noir{ background: var(--charcoal); color: var(--cream); }
.gamme.argan{ background: linear-gradient(160deg, var(--saffron-dk), var(--terracotta)); color: var(--cream); }

/* ---------------------------------------------------------------------- */
/* Savoir-faire — véritable séquence, numérotée à bon escient              */
/* ---------------------------------------------------------------------- */
.process{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.step{
  padding-top: 22px;
  border-top: 2px solid var(--terracotta);
}
.step .num{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 14px;
}
.step h3{ font-size: 1.08rem; margin-bottom: 8px; }
.step p{ font-size: 0.92rem; color: #4A3E33; }

/* ---------------------------------------------------------------------- */
/* Pourquoi nous — bandeau confiance B2B                                  */
/* ---------------------------------------------------------------------- */
.trust{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.trust-item h3{
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.trust-item p{ font-size: 0.92rem; color: #4A3E33; }
.trust-item .mark{
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--cedar);
}

/* ---------------------------------------------------------------------- */
/* Contact / demande de devis                                             */
/* ---------------------------------------------------------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-info p{ margin-top: 16px; color: #DCD2BE; max-width: 42ch; }
.contact-info .whatsapp-block{
  margin-top: 34px;
  padding: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
}
.contact-info .whatsapp-block .label{
  font-size: 0.82rem;
  color: var(--saffron);
  margin-bottom: 6px;
}
.contact-info .whatsapp-block .num{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
}

.contact-form{
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input, .field select, .field textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(36,26,20,0.22);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.field textarea{ min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}
.form-note{
  font-size: 0.82rem;
  color: #6A5C4C;
  margin-top: 14px;
}
.form-success{
  background: #E9EFE0;
  border: 1px solid var(--cedar);
  color: #2E3B1F;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 0.92rem;
}
.form-error{
  background: #F3E1DC;
  border: 1px solid var(--terracotta);
  color: #6C2A1B;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 0.92rem;
}

section.contact{ background: var(--ink); color: var(--cream); }

/* ---------------------------------------------------------------------- */
/* Pied de page                                                           */
/* ---------------------------------------------------------------------- */
footer.site-footer{ background: var(--ink); color: #B9AC93; padding: 40px 0; }
.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}
.footer-row .brand{ color: var(--cream); font-size: 1.1rem; }

/* ---------------------------------------------------------------------- */
/* Bouton WhatsApp flottant                                                */
/* ---------------------------------------------------------------------- */
.wa-float{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cedar);
  color: var(--cream);
  padding: 13px 20px 13px 16px;
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform .15s ease;
}
.wa-float:hover{ transform: translateY(-2px); }
.wa-float svg{ width: 22px; height: 22px; flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 880px){
  .nav-links{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(36,26,20,0.14);
  }
  .nav-links.nav-open{ display: flex; }
  .nav-links a{ padding: 16px 28px; border-top: 1px solid rgba(36,26,20,0.08); }
  .nav-actions .btn-ghost{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-row{ position: relative; }
  .hero-inner{ grid-template-columns: 1fr; padding: 64px 0 56px; }
  .hero-art{ height: 260px; order: -1; }
  .gammes{ grid-template-columns: 1fr; }
  .gamme + .gamme{ border-left: none; border-top: 1px solid rgba(36,26,20,0.14); }
  .process{ grid-template-columns: 1fr 1fr; }
  .trust{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .form-row{ grid-template-columns: 1fr; }
  section{ padding: 64px 0; }
}
@media (max-width: 520px){
  .process{ grid-template-columns: 1fr; }
  .trust{ grid-template-columns: 1fr; }
  .hero-stats{ gap: 26px; }
  .wa-float span{ display: none; }
  .wa-float{ padding: 14px; border-radius: 50%; }
}

/* Respect des préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

/* Focus clavier visible partout */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}


/* ===== MOROCCANSOAPCO PRO UPGRADE ===== */
:root{
  --container:1180px;
  --radius:14px;
}
body{background:#f6f0e5; color:#211914;}
::selection{background:var(--saffron);color:#fff;}
.site-header{backdrop-filter:blur(14px);background:rgba(239,227,203,.92)!important;}
.brand{font-size:1.65rem;letter-spacing:-.5px;}
.nav-links a{transition:color .2s ease;}
.btn{border-radius:999px; padding:13px 22px; box-shadow:0 8px 20px rgba(36,26,20,.08);}
.btn-primary{box-shadow:0 10px 24px rgba(166,64,42,.22);}
.hero{min-height:720px;}
.hero-inner{padding:78px 0 72px;grid-template-columns:1fr 1fr;gap:65px;}
.hero h1{font-size:clamp(2.8rem,5vw,4.6rem);letter-spacing:-1.5px;}
.hero p.lede{font-size:1.12rem;line-height:1.75;color:#dcd2be;}
.hero-art{height:auto;min-height:500px;}
.hero-visual{position:relative;width:min(100%,560px);margin:auto;filter:drop-shadow(0 25px 35px rgba(0,0,0,.25));}
.hero-visual img{width:100%;border-radius:28px;}
.floating-badge{position:absolute;right:-12px;bottom:28px;background:var(--cream);color:var(--ink);padding:16px 20px;border-radius:16px;box-shadow:0 15px 35px rgba(0,0,0,.22);display:flex;flex-direction:column;}
.floating-badge strong{font-family:var(--font-display);font-size:1.45rem;}
.floating-badge span{font-size:.72rem;color:#6a5c4c;}
section{padding:105px 0;}
.section-head{margin-bottom:48px;}
.section-head h2{font-size:clamp(2rem,3.5vw,3rem);letter-spacing:-.7px;}
.gammes{gap:18px;border:0;overflow:visible;}
.gamme{min-height:570px;border:0!important;border-radius:20px!important;padding:18px 18px 28px;overflow:hidden;box-shadow:0 18px 45px rgba(36,26,20,.09);transition:transform .25s ease,box-shadow .25s ease;}
.gamme:hover{transform:translateY(-7px);box-shadow:0 25px 55px rgba(36,26,20,.15);}
.gamme .product-image{width:100%;height:250px;object-fit:cover;border-radius:14px;margin-bottom:26px;}
.gamme h3{font-size:1.55rem;padding:0 10px;}
.gamme .format,.gamme p.desc{margin-left:10px;margin-right:10px;}
.gamme .moq{margin-left:10px;margin-right:10px;}
.gamme.solide{background:#e9ddc4;}
.gamme.noir{background:#2a2420;}
.gamme.argan{background:linear-gradient(145deg,#b97819,#8d3726);}
.story{background:#fffaf1;}
.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center;}
.story-image img{width:100%;border-radius:28px;box-shadow:0 25px 55px rgba(36,26,20,.14);}
.story-copy .kicker{color:var(--terracotta);font-weight:600;margin-bottom:12px;}
.story-copy h2{font-size:clamp(2rem,3.4vw,3rem);margin-bottom:18px;}
.story-copy p{font-size:1.05rem;color:#5c5043;max-width:52ch;margin-bottom:25px;}
.story-points{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 30px;}
.story-points span{font-size:.9rem;font-weight:600;color:#47592f;}
.process{gap:18px;}
.step{padding:28px;border:1px solid rgba(36,26,20,.1);border-top:3px solid var(--terracotta);border-radius:14px;background:rgba(255,255,255,.38);}
.trust{gap:18px;}
.trust-item{padding:28px;border-radius:16px;background:#fffaf1;box-shadow:0 10px 30px rgba(36,26,20,.06);}
.trust-item .mark{width:40px;height:40px;display:grid;place-items:center;}
.contact-grid{gap:70px;}
.contact-form{border-radius:20px;box-shadow:0 20px 55px rgba(0,0,0,.18);}
.site-footer{background:#211914!important;color:#d8ccb8!important;}
.wa-float{border-radius:999px!important;box-shadow:0 12px 28px rgba(0,0,0,.25);}

@media (max-width: 900px){
  .hero-inner,.story-grid{grid-template-columns:1fr;}
  .hero-inner{padding-top:55px;}
  .hero-art{min-height:360px;}
  .hero-visual{max-width:560px;}
  .gammes{grid-template-columns:1fr;}
  .gamme{min-height:0;}
  .process{grid-template-columns:1fr 1fr;}
  .trust{grid-template-columns:1fr 1fr;}
  .story-grid{gap:35px;}
  .contact-grid{grid-template-columns:1fr;}
}
@media (max-width: 680px){
  .wrap{padding:0 18px;}
  .nav-row{padding:13px 0;}
  .nav-actions .btn{display:none;}
  .nav-toggle{display:flex;}
  .nav-links{position:absolute;left:12px;right:12px;top:68px;background:rgba(251,246,234,.98);backdrop-filter:blur(15px);padding:10px;border-radius:16px;box-shadow:0 18px 45px rgba(0,0,0,.15);display:none;flex-direction:column;gap:0;border:1px solid rgba(36,26,20,.08);}
  .nav-links.nav-open{display:flex;}
  .nav-links a{padding:13px 15px;border-radius:10px;}
  .nav-links a:hover{background:#efe3cb;}
  .hero{min-height:auto;}
  .hero-inner{padding:45px 0 55px;gap:25px;}
  .hero h1{font-size:clamp(2.45rem,12vw,3.5rem);}
  .hero p.lede{font-size:1rem;}
  .hero-stats{gap:20px;margin-top:35px;}
  .hero-stats div strong{font-size:1.45rem;}
  .hero-art{min-height:0;}
  .floating-badge{right:5px;bottom:12px;padding:11px 14px;}
  section{padding:72px 0;}
  .gamme .product-image{height:230px;}
  .process,.trust,.story-points,.form-row{grid-template-columns:1fr;}
  .story-image{order:2;}
  .story-copy{order:1;}
  .contact-grid{gap:35px;}
  .contact-form{padding:24px 18px;}
  .wa-float span{display:none;}
  .wa-float{width:54px;height:54px;padding:14px;justify-content:center;}
}
