/* ===== SOLUTOU — design tokens ===== */
:root {
  --bg: #F4F1EA;
  --bg-card: #FFFFFF;
  --bg-soft: #EFEAE0;
  --blue: #1B3A5C;
  --blue-deep: #11283F;
  --orange: #C9622E;
  --orange-deep: #A84F23;
  --teal: #3C8C96;
  --gold: #D9A441;
  --line: #D8D2C4;
  --text: #2B2A26;
  --text-soft: #5A7184;
  --maxw: 1140px;
  --radius: 14px;
  --serif: "Zilla Slab", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--blue);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.lead { color: var(--text-soft); font-size: 1.08rem; max-width: 58ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(201,98,46,.28); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1DA851; }

/* ===== Header ===== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,234,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--blue); letter-spacing: .01em; }

.navlinks { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.navlinks a {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease;
}
.navlinks a:hover, .navlinks a.active { color: var(--orange-deep); border-color: var(--orange); }

.navright { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.lang-switch button {
  border: none; background: transparent; padding: 6px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--text-soft);
}
.lang-switch button.active { background: var(--blue); color: #fff; }

.navtoggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.navtoggle span { display: block; width: 22px; height: 2px; background: var(--blue); margin: 5px 0; }

@media (max-width: 860px) {
  .navlinks {
    position: fixed; inset: 64px 0 auto 0; background: var(--bg);
    flex-direction: column; padding: 18px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .25s ease;
  }
  .navlinks.open { transform: translateY(0); }
  .navtoggle { display: block; }
}

/* ===== Hero with canvas ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto;
  padding: 90px 24px;
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.hero-card {
  max-width: 620px; background: rgba(244,241,234,.86);
  border-radius: 20px; padding: 38px 40px;
}
.hero h1 { margin-bottom: 16px; }
.hero .lead { margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  padding: 64px 24px 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FBF8F2, var(--bg));
}
.page-hero .wrap { max-width: 760px; }

/* ===== Sections ===== */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Cards / grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--orange-deep); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.card p:last-child { margin-bottom: 0; color: var(--text-soft); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step .num {
  font-family: var(--serif); font-size: 2rem; color: var(--orange); font-weight: 700; display: block; margin-bottom: 6px;
}

/* ===== Band ===== */
.band {
  background: var(--blue); color: #fff; border-radius: 20px;
  padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { color: #C8D6E4; margin: 0; }

/* ===== Footer ===== */
footer.site { border-top: 1px solid var(--line); padding: 52px 0 26px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { color: var(--blue); font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { text-decoration: none; color: var(--text-soft); font-size: .95rem; }
.foot-grid a:hover { color: var(--orange-deep); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--text-soft); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font-family: var(--sans); font-size: .95rem; color: var(--text);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.contact-method { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; }
.contact-method .ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); flex-shrink: 0; font-size: 1.1rem; }
.contact-method .label { font-size: .8rem; color: var(--text-soft); }
.contact-method .val { font-weight: 700; color: var(--blue); }

/* ===== Réalisations ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }
.gallery .item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); }
.gallery .thumb {
  height: 160px; background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--serif); font-size: 1rem;
}
.gallery .body { padding: 20px; }
.gallery .tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-deep); margin-bottom: 8px; }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.center { text-align: center; }

[dir="rtl"] .nav { direction: rtl; }
[dir="rtl"] .lead, [dir="rtl"] .section-head { text-align: right; }
[dir="rtl"] .hero-card { margin-left: auto; }

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