/* Beth Habad Kiryat Hasharon — styles partagés, mobile en premier */

:root {
  /* Palette mesurée sur les vraies photos de la salle (mur travertin, Aron Kodech,
     chaises, lustres) : blanc cassé à sous-ton rosé, bleu marine, laiton doré.
     Le logo n'est utilisé que comme image (en-tête, favicon) — il n'est pas
     source de couleur. */
  --couleur-fond: #efe9e8;
  --couleur-surface: #fff;
  --couleur-texte: #241f1a;
  --couleur-texte-doux: #5b5147;
  --couleur-accent: #1b2440;
  --couleur-accent-clair: #e3ded4;
  --couleur-or: #c4903f;
  --couleur-bordure: #d3c1bd;
  --rayon: 10px;
  --ombre: 0 2px 10px rgba(30, 25, 20, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--couleur-fond);
  background-image:
    linear-gradient(rgba(239, 233, 232, 0.6), rgba(239, 233, 232, 0.6)),
    url("../images/fond-pierre.jpg");
  background-repeat: repeat;
  background-size: auto, 600px auto;
  color: var(--couleur-texte);
  line-height: 1.6;
}

[dir="rtl"] body { font-family: "Segoe UI", Arial, sans-serif; }

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

a { color: var(--couleur-accent); }

.conteneur {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */
header.entete {
  background: var(--couleur-surface);
  border-bottom: 2px solid var(--couleur-or);
  padding: 16px 0;
}

.entete-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.entete-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.entete-logo img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--couleur-or); }
.entete-logo span { font-weight: 700; font-size: 1.05rem; }

nav.entete-nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.95rem; }
nav.entete-nav a { text-decoration: none; color: var(--couleur-texte); font-weight: 600; transition: color 0.15s ease; }
nav.entete-nav a:hover { color: var(--couleur-or); }

.lang-switch { font-size: 0.85rem; }
.lang-switch a { text-decoration: none; padding: 4px 8px; border: 1px solid var(--couleur-bordure); border-radius: 8px; }

/* Section héro */
.hero { padding: 36px 0 24px; text-align: center; }
.hero h1 { font-size: 1.7rem; margin: 12px 0 4px; }
.hero p.accroche { color: var(--couleur-texte-doux); margin-top: 0; }

/* Petite image d'accent dans le héro — reste modeste, ne domine pas la page,
   et se fond dans le fond grâce à un dégradé (net en haut, transparent en bas). */
.hero-figure {
  max-width: 320px;
  margin: 22px auto 0;
}
.hero-figure img {
  width: 100%;
  display: block;
  border-radius: var(--rayon);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
}

/* Boutons */
.boutons { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
@media (min-width: 480px) { .boutons { flex-direction: row; justify-content: center; } }

.bouton {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--rayon);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30, 25, 20, 0.15); }
.bouton-principal { background: var(--couleur-accent); color: #fff; border: 1px solid var(--couleur-or); }
.bouton-secondaire { background: #fff; color: var(--couleur-texte); border: 1px solid var(--couleur-bordure); }

/* Cartes */
.carte {
  background: var(--couleur-surface);
  border: 1px solid var(--couleur-bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 18px;
  margin: 16px 0;
}

.carte h2, .carte h3 { margin-top: 0; }
.carte h2 { padding-bottom: 8px; border-bottom: 1px solid var(--couleur-or); }

/* Horaires */
.horaire-ligne { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--couleur-bordure); }
.horaire-ligne:last-child { border-bottom: none; }
.horaire-valeur { font-weight: 700; color: var(--couleur-accent); }
.note { font-size: 0.85rem; color: var(--couleur-texte-doux); }

/* Liste d'activités */
.activites-grille { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .activites-grille { grid-template-columns: 1fr 1fr; } }
.activite { background: var(--couleur-surface); border: 1px solid var(--couleur-bordure); border-radius: var(--rayon); padding: 12px 14px; font-size: 0.95rem; }

/* Formulaire de contact */
form.contact { display: flex; flex-direction: column; gap: 12px; }
form.contact label { font-weight: 600; font-size: 0.9rem; }
form.contact input, form.contact textarea {
  padding: 10px 12px;
  border: 1px solid var(--couleur-bordure);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
form.contact button {
  background: var(--couleur-accent);
  color: #fff;
  border: 1px solid var(--couleur-or);
  padding: 12px;
  border-radius: var(--rayon);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
form.contact button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30, 25, 20, 0.15); }

/* Placeholder "à venir" */
.a-venir {
  border: 1px dashed var(--couleur-or);
  background: #fbf5ea;
  border-radius: var(--rayon);
  padding: 16px;
  text-align: center;
  color: #6b5636;
}

/* Pied de page */
footer.pied {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--couleur-or);
  font-size: 0.9rem;
  color: var(--couleur-texte-doux);
  text-align: center;
}
footer.pied a { color: inherit; transition: color 0.15s ease; }
footer.pied a:hover { color: var(--couleur-or); }
.reseaux { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
