/* Identité : vert feuille #4C8C4A, orange chaud #F29F3D, crème #FFF6E5 */
:root {
  --green: #4C8C4A;
  --green-dark: #2F5E2E;   /* variante foncée pour texte et boutons (contraste AA) */
  --orange: #F29F3D;
  --cream: #FFF6E5;
  --cream-alt: #FCEBCB;
  --ink: #2A2A22;
  --muted: #5A5548;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 16px rgba(47, 94, 46, 0.10);
  --font: "Nunito", "Varela Round", "Quicksand", "Segoe UI", "Tahoma", "Noto Sans Arabic", "Noto Sans", "Geeza Pro", system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.75rem; color: var(--green-dark); }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.75rem; }

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

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

.skip-link {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: -3rem;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow);
  max-width: 100%;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 800;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--green);
}
.brand-name { font-size: 1rem; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 100%;
}
.lang-btn {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  cursor: pointer;
  min-height: 2.25rem;
}
.lang-btn[aria-pressed="true"] {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

/* Navigation : retour à la ligne, aucun défilement horizontal */
.main-nav {
  background: var(--green-dark);
  max-width: 100%;
}
.nav-list {
  list-style: none;
  margin: 0 auto;
  padding-block: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}
.nav-list li { max-width: 100%; }
.nav-list a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  text-align: center;
  white-space: normal;
}
.nav-list a:hover, .nav-list a:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

/* Accueil */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-alt) 100%);
  padding-block: 3rem 3.5rem;
  text-align: center;
}
.hero-inner { position: relative; z-index: 1; }
.slogan {
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero-deco {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  font-size: 1.75rem;
  opacity: 0.85;
}

/* Boutons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: #244A23; }
.btn-ghost { background: var(--orange); color: var(--ink); }
.btn-ghost:hover { background: #E68D24; }
.btn[disabled] {
  background: #E4E0D6;
  color: #55524A;
  border-color: #CFC9BB;
  cursor: not-allowed;
}

/* Sections */
.section { padding-block: 2.5rem; }
.section-alt { background: var(--cream-alt); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-top: 4px solid var(--green);
  max-width: 100%;
}
.empty-state { text-align: center; }
.soon { font-weight: 700; color: var(--green-dark); }
.muted { color: var(--muted); font-size: 0.95rem; }
.feature-slot { margin-top: 1rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hours { margin: 0; }
.hours-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.5rem;
  border-bottom: 1px dashed #DCD3BF;
}
.hours-row:last-child { border-bottom: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

/* Pied de page discret */
.site-footer {
  background: var(--white);
  border-top: 1px solid #EDE3CF;
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-inner p { margin: 0; }
.powered a { color: var(--green-dark); font-weight: 700; }

/* Arabe : pas d'espacement de lettres, interligne plus généreux */
[dir="rtl"] body, html[dir="rtl"] { letter-spacing: 0; }
html[dir="rtl"] body { line-height: 1.75; }

@media (min-width: 720px) {
  .brand-name { font-size: 1.15rem; }
  .nav-list a { font-size: 0.95rem; padding: 0.45rem 0.9rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 3.5rem; }
  .hero { padding-block: 4.5rem 5rem; }
  .card { padding: 1.75rem; }
}

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