/* Motos & Quads Sol Tanger — identité ancrée dans leur logo (vert marocain +
   étoile rouge). Bricolage Grotesque (titres) + Mulish (texte). Un seul CSS,
   pas de dépendance. Couleurs échantillonnées/rétablies depuis la plaque-logo
   (photo client, plaque délavée au soleil : on rétablit le vert/rouge imprimés). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/mulish-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14160f;
  --green-900: #0a3221;
  --green-800: #0e4a2f;
  --green: #12613b;
  --green-600: #15774494;
  --green-solid: #157744;
  --green-500: #1f9455;
  --red: #c42a26;
  --red-600: #a8231f;
  --sand: #f4eddf;
  --sand-2: #ebdec9;
  --card: #fffdf8;
  --stone: #5f5c4e;
  --line: rgba(20, 22, 15, .13);
  --white: #fff;
  --disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Mulish', system-ui, sans-serif;
  --r: 14px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(20,22,15,.04), 0 12px 30px rgba(20,22,15,.08);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; line-height: 1.03; margin: 0; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.eyebrow {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .74rem; color: var(--green);
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 14px;
}
.eyebrow::before { content: "★"; color: var(--red); font-size: .95em; }
.section-title { font-size: clamp(2rem, 5.4vw, 3.2rem); max-width: 16ch; }
.lede { font-size: 1.12rem; color: var(--stone); max-width: 60ch; margin: 16px 0 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--disp); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  padding: 14px 24px; border-radius: 100px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  line-height: 1;
}
.btn-wa { background: var(--green-solid); color: #fff; box-shadow: 0 8px 20px rgba(21,119,68,.28); }
.btn-wa:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 6px; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,237,223,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-family: var(--disp); font-weight: 800; position: relative;
}
.brand-mark::after { content: "★"; position: absolute; top: -5px; right: -4px; color: var(--red); font-size: .8rem; }
.brand-name { font-family: var(--disp); font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; line-height: 1; }
.brand-sub { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--stone); }
.head-nav { display: flex; align-items: center; gap: 26px; }
.head-nav a.navlink { text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--ink); }
.head-nav a.navlink:hover { color: var(--green); }
.lang-btn {
  font-family: var(--disp); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  background: transparent; border: 1.5px solid var(--line); border-radius: 100px;
  padding: 7px 13px; cursor: pointer; color: var(--ink);
}
.lang-btn:hover { border-color: var(--green); }
@media (max-width: 720px) { .head-nav .navlink { display: none; } }

/* hero */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,50,33,.42) 0%, rgba(10,50,33,.28) 42%, rgba(10,40,27,.86) 100%);
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 128px 22px 66px; }
.hero h1 { font-size: clamp(2.6rem, 8.2vw, 5.3rem); font-weight: 800; max-width: 15ch; text-shadow: 0 2px 24px rgba(6,28,18,.4); }
.hero p.hero-sub { font-size: clamp(1.06rem, 2.5vw, 1.32rem); max-width: 46ch; margin: 20px 0 0; color: rgba(255,255,255,.94); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin: 32px 0 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px 30px; margin: 40px 0 0; align-items: center; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-family: var(--disp); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.hero-stat span { font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.82); margin-top: 4px; }
.stars { color: #ffd15c; letter-spacing: .06em; }

/* machines */
.bg-sand-2 { background: var(--sand-2); }
.grid { display: grid; gap: 22px; }
.machines-grid { grid-template-columns: repeat(2, 1fr); margin-top: 46px; }
.machine {
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.machine-img { aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.machine-img img { width: 100%; height: 100%; object-fit: cover; }
.machine-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.machine-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--green); font-weight: 700; }
.machine h3 { font-size: 1.32rem; }
.machine p { margin: 2px 0 0; color: var(--stone); font-size: .96rem; }
.machine .btn { margin-top: 16px; }
.machine.machine-moto { background: linear-gradient(150deg, var(--green) 0%, var(--green-900) 100%); color: #fff; justify-content: center; }
.machine.machine-moto .machine-kicker { color: #ffd15c; }
.machine.machine-moto p { color: rgba(255,255,255,.85); }
.machine.machine-moto .moto-glyph { font-size: 2.4rem; line-height: 1; margin-bottom: 6px; }
.machine.machine-moto .btn-wa { background: #fff; color: var(--green-900); box-shadow: none; }
.machine.machine-moto .btn-wa:hover { background: rgba(255,255,255,.88); }

/* expérience — grille robuste, ratio uniforme */
.exp-grid { grid-template-columns: repeat(2, 1fr); margin-top: 46px; }
.exp-item { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 3 / 2; margin: 0; }
.exp-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.exp-item:hover img { transform: scale(1.05); }
.exp-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 15px;
  color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(10,32,20,.85));
}

/* avis */
.avis-grid { grid-template-columns: repeat(3, 1fr); margin-top: 46px; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.quote .stars { font-size: 1.05rem; }
.quote blockquote { margin: 0; font-size: 1.16rem; line-height: 1.5; font-weight: 500; }
.quote .lang-note { font-size: .78rem; color: var(--stone); letter-spacing: .02em; }
.avis-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 9px; background: var(--green);
  color: #fff; border-radius: 100px; padding: 9px 18px; font-family: var(--disp);
  font-weight: 700; margin-top: 18px;
}
.rating-badge b { font-size: 1.2rem; }

/* réserver */
.reserve { background: linear-gradient(165deg, var(--green-900), #06251a); color: #fff; }
.reserve-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; }
.reserve .section-title { color: #fff; }
.reserve .lede { color: rgba(255,255,255,.82); }
.reserve-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.reserve-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: rgba(255,255,255,.92); }
.reserve-points svg { width: 22px; height: 22px; flex: 0 0 auto; color: #ffd15c; margin-top: 1px; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 700; font-size: .84rem; margin-bottom: 6px; letter-spacing: .01em; }
.field {
  width: 100%; font-family: var(--body); font-size: 1rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--sand); color: var(--ink);
}
.field:focus { outline: none; border-color: var(--green); background: #fff; }
textarea.field { resize: vertical; min-height: 82px; }
.form-note { font-size: .82rem; color: var(--stone); margin: 12px 0 0; }

/* infos */
.infos-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 15px; align-items: flex-start; }
.info-list .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sand-2); display: grid; place-items: center; flex: 0 0 auto; color: var(--green); }
.info-list .ico svg { width: 21px; height: 21px; }
.info-list dt { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; }
.info-list dd { margin: 2px 0 0; color: var(--stone); font-size: .96rem; }
.info-list a { color: var(--green); font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.info-media img { width: 100%; height: 100%; object-fit: cover; }

/* footer */
.site-foot { background: var(--ink); color: rgba(255,255,255,.72); padding: 52px 0 30px; font-size: .9rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-sub { color: rgba(255,255,255,.6); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-credit { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); line-height: 1.6; font-size: .82rem; color: rgba(255,255,255,.55); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 100px;
  font-weight: 600; font-size: .92rem; box-shadow: 0 14px 40px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* responsive */
@media (max-width: 900px) {
  .reserve-cols { grid-template-columns: 1fr; gap: 30px; }
  .infos-grid { grid-template-columns: 1fr; }
  .avis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero-inner { padding: 104px 22px 52px; }
  .machines-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px 24px; }
}
