:root {
  --primary: #1F4D2B;       /* vert foncé (demande client) */
  --primary-dark: #163A20;
  --accent: #D9A441;
  --brown: #6B4226;
  --cream: #FFF6E5;
  --cream-alt: #F6EAD2;
  --text: #2B2118;
  --white: #FFFFFF;
  --serif: "Georgia", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img, video, iframe, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 .75rem;
  overflow-wrap: anywhere;
}

a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { inset-inline-start: 0; }

/* Barre supérieure : téléphone + langues */
.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: .875rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .4rem;
  padding-bottom: .4rem;
}
.topbar-phone { margin: 0; }
.topbar-phone a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  unicode-bidi: isolate;
}
.topbar-phone a:hover { text-decoration: underline; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.lang-switch button {
  font: inherit;
  font-size: .8125rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: .2rem .7rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--primary);
  border-color: var(--cream);
  font-weight: 700;
}

/* En-tête et navigation */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .5rem;
  max-width: 100%;
}
.nav-list a {
  display: inline-block;
  padding: .35rem .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-list a:hover { background: var(--cream-alt); }

/* Sections */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-alt) 100%);
  text-align: center;
  padding: 3.5rem 0;
}
.hero h1 { font-size: clamp(1.75rem, 7vw, 2.75rem); }
.slogan {
  font-size: 1.15rem;
  color: var(--brown);
  margin: 0 0 1.5rem;
}

.section { padding: 3rem 0; }
.section-alt { background: var(--cream-alt); }
.section h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

.placeholder {
  font-style: italic;
  color: var(--brown);
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: .7rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
}
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); }
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  background: transparent;
  color: var(--primary);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0;
}

.contact-list { margin: 0; display: grid; gap: 1rem; }
.contact-list dt { font-weight: 700; color: var(--primary); }
.contact-list dd { margin: 0; }
.break { overflow-wrap: anywhere; word-break: break-all; }

/* Pied de page discret */
.site-footer {
  text-align: center;
  font-size: .8rem;
  padding: 1.25rem 1rem;
  color: #5A4A3A;
  background: var(--cream);
}
.site-footer a { color: var(--primary); }

/* RTL */
[dir="rtl"] body, html[dir="rtl"] { font-family: var(--sans); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] .brand { font-family: var(--sans); }

@media (min-width: 720px) {
  .header-inner { flex-direction: row; justify-content: space-between; }
  .nav-list a { font-size: 1rem; }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
