/* =========================================================================
   Synagogue Sidi Fredj Halimi - feuille de style
   Palette chaleureuse : creme, bois, or, bordeaux.
   ========================================================================= */

:root {
  --papier: #fdfaf4;
  --sable: #f5ecdd;
  --sable-fonce: #ebdfc9;
  --encre: #241c14;
  --encre-douce: #6b5b47;
  --bordeaux: #7a2032;
  --bordeaux-clair: #93374a;
  --bordeaux-sombre: #58121f;
  --or: #b08328;
  --or-clair: #d9b45f;
  --or-pale: #f0e2c1;
  --trait: rgba(36, 28, 20, 0.14);
  --trait-fort: rgba(36, 28, 20, 0.26);
  --ombre: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 24px -12px rgba(60, 40, 20, 0.22);
  --ombre-forte: 0 2px 4px rgba(60, 40, 20, 0.08), 0 20px 48px -20px rgba(60, 40, 20, 0.35);

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --largeur: 1140px;
  --rayon: 14px;
  --rayon-s: 9px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

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

/* -------------------------------------------------------------------------
   Debordements de texte

   Deux causes classiques, tres visibles sur iPhone ou l'ecran est etroit :

   1. Un element de grille ou de flexbox refuse par defaut de devenir plus
      etroit que son contenu (`min-width: auto`). Un mot long, une adresse
      e-mail ou un lien fait alors deborder toute la carte.
   2. Sans `overflow-wrap`, un mot plus large que sa colonne sort du cadre
      au lieu d'aller a la ligne.
   ------------------------------------------------------------------------- */

.grille > *, .acces > *, .galerie > *, .dons-grille > *, .rangee > *,
.chabbat-grille > *, .numero > *, .detail-liste li, .contact-lignes li,
.pied-grille > *, .fiche-actions > *, .hero-actions > * { min-width: 0; }

body { overflow-wrap: break-word; }

p, li, address, dd, dt, summary, .texte, .fiche-note, .actu-texte, .carte p {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Les mots composes et les titres ne sont jamais coupes : on les laisse
   simplement passer a la ligne. */
h1, h2, h3, h4, .valeur, .bouton, .surtitre, .etiquette, .pastille {
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: break-word;
}

/* Adresses e-mail, liens colles et references longues : coupure autorisee
   n'importe ou, sinon rien ne peut les contenir sur un ecran etroit. */
a[href^='mailto:'], a[href^='http'], .actu-texte a, code { overflow-wrap: anywhere; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bordeaux); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bordeaux-clair); }

:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 3px; }

.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--bordeaux); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 var(--rayon-s) 0;
}
.saut-contenu:focus { left: 0; color: #fff; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.conteneur-etroit { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sable { background: var(--sable); border-block: 1px solid var(--trait); }

.entete-section { margin-bottom: 2.5rem; max-width: 62ch; }
.entete-section p { color: var(--encre-douce); font-size: 1.05rem; margin: 0; }
.surtitre {
  display: block; font-family: var(--sans); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--or);
  margin-bottom: 0.6rem;
}

/* ------------------------------- en-tete -------------------------------- */

.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete-interieur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.marque { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; padding: 0.4rem 0; min-width: 0; }
.marque-texte { min-width: 0; }
.marque-sceau {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: linear-gradient(150deg, var(--bordeaux), var(--bordeaux-sombre));
  display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--or-clair);
}
.marque-sceau svg { width: 22px; height: 22px; fill: var(--or-clair); }
.marque-texte strong { display: block; font-family: var(--serif); font-size: 1.06rem; line-height: 1.2; }
.marque-texte span { display: block; font-size: 0.76rem; color: var(--encre-douce); letter-spacing: 0.02em; }

.nav-bouton {
  display: none; background: none; border: 1px solid var(--trait-fort); border-radius: var(--rayon-s);
  padding: 0.55rem 0.7rem; cursor: pointer; color: var(--encre);
}
.nav-bouton svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.5rem 0.7rem; border-radius: var(--rayon-s); text-decoration: none;
  color: var(--encre); font-size: 0.94rem; font-weight: 500; white-space: nowrap;
}
.nav a:hover { background: var(--sable-fonce); }
.nav a[aria-current='page'] { color: var(--bordeaux); box-shadow: inset 0 -2px 0 var(--or); border-radius: 0; }
.nav .bouton-don { margin-left: 0.5rem; }

@media (max-width: 940px) {
  .nav-bouton { display: block; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--papier); border-bottom: 1px solid var(--trait);
    padding: 0.7rem 1.25rem 1.1rem; box-shadow: var(--ombre);
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 0.75rem 0.6rem; font-size: 1rem; }
  .nav .bouton-don { margin: 0.4rem 0 0; justify-content: center; }
}

/* -------------------------------- boutons ------------------------------- */

.bouton {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.97rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton svg { width: 18px; height: 18px; flex: none; }

.bouton-don, .bouton-primaire {
  background: var(--bordeaux); color: #fff; box-shadow: var(--ombre);
}
.bouton-don:hover, .bouton-primaire:hover { background: var(--bordeaux-clair); color: #fff; box-shadow: var(--ombre-forte); }

.bouton-secondaire { background: transparent; color: var(--encre); border-color: var(--trait-fort); }
.bouton-secondaire:hover { background: var(--sable-fonce); color: var(--encre); }

.bouton-clair { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); }
.bouton-clair:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

.bouton-petit { padding: 0.45rem 0.9rem; font-size: 0.87rem; }

/* --------------------------------- hero --------------------------------- */

.hero { position: relative; color: #fff; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -2; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30, 16, 10, 0.72) 0%, rgba(45, 22, 14, 0.6) 45%, rgba(88, 18, 31, 0.82) 100%);
}
.hero-interieur { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 40rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); margin-bottom: 0.35em; }
.hero .surtitre { color: var(--or-clair); }
.hero-accroche { font-size: clamp(1.05rem, 2vw, 1.22rem); color: rgba(255, 255, 255, 0.92); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ----------------------------- carte Chabbat ---------------------------- */

.bandeau-chabbat { background: var(--bordeaux-sombre); color: #fff; padding: 0; }
.chabbat-grille {
  display: grid; grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr)); align-items: center;
  gap: 1px; background: rgba(255, 255, 255, 0.16);
}
.chabbat-case { background: var(--bordeaux-sombre); padding: 1.5rem 1.6rem; }
.chabbat-case .etiquette {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--or-clair); font-weight: 700; margin-bottom: 0.35rem;
}
.chabbat-case .valeur { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.15; }
.chabbat-case .precision { font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); margin-top: 0.25rem; }
.chabbat-note { text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); padding: 0 1.6rem 1.1rem; }
@media (max-width: 780px) {
  .chabbat-grille { grid-template-columns: 1fr 1fr; }
  .chabbat-case:first-child { grid-column: 1 / -1; }
}

/* ------------------------------ actualites ------------------------------ */

.actu-liste { display: grid; gap: 1rem; }
.actu {
  background: #fff; border: 1px solid var(--trait); border-left: 4px solid var(--or);
  border-radius: var(--rayon); padding: 1.4rem 1.6rem; box-shadow: var(--ombre);
}
.actu.epinglee { border-left-color: var(--bordeaux); background: linear-gradient(180deg, #fff, var(--papier)); }
.actu-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; color: var(--encre-douce); margin-bottom: 0.45rem;
}
.pastille {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--bordeaux); color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pastille-or { background: var(--or-pale); color: #6d4f10; }
.actu h3 { margin-bottom: 0.3rem; font-size: 1.22rem; }
.actu-texte { color: var(--encre-douce); }
.actu-texte p { margin-bottom: 0.6rem; }

.vide {
  border: 1px dashed var(--trait-fort); border-radius: var(--rayon);
  padding: 2.2rem 1.5rem; text-align: center; color: var(--encre-douce); background: var(--papier);
}

/* -------------------------------- cartes -------------------------------- */

.grille { display: grid; gap: 1.5rem; }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }

.carte {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.6rem; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 0.55rem;
}
.carte h3 { margin: 0; }
.carte p { color: var(--encre-douce); font-size: 0.97rem; }
.carte-icone {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--or-pale); color: var(--bordeaux); margin-bottom: 0.3rem;
}
.carte-icone svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.carte-lien { margin-top: auto; padding-top: 0.6rem; font-weight: 600; font-size: 0.93rem; }

.detail-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.detail-liste li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--trait); font-size: 0.97rem; }
.detail-liste li:last-child { border-bottom: 0; }
.detail-liste .horaire { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--bordeaux); white-space: nowrap; }

/* --------------------------- adresse et acces --------------------------- */

.acces { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .acces { grid-template-columns: 1fr; } }
.carte-plan { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--trait); box-shadow: var(--ombre); background: var(--sable-fonce); }
.carte-plan iframe { display: block; width: 100%; height: 360px; border: 0; }
.adresse { font-style: normal; font-size: 1.12rem; line-height: 1.75; }
.adresse strong { font-family: var(--serif); font-size: 1.3rem; display: block; margin-bottom: 0.2rem; }
.contact-lignes { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.contact-lignes li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-lignes svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: var(--or); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------- galerie -------------------------------- */

.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.galerie figure { margin: 0; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--sable-fonce); }
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.galerie figure:hover img { transform: scale(1.04); }

/* --------------------------------- dons --------------------------------- */

.dons { background: linear-gradient(160deg, var(--bordeaux-sombre), var(--bordeaux)); color: #fff; }
.dons h2, .dons .surtitre { color: #fff; }
.dons .surtitre { color: var(--or-clair); }
.dons .entete-section p { color: rgba(255, 255, 255, 0.82); }
.dons-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; }
.don-carte {
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--rayon); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.don-carte h3 { color: #fff; margin: 0; }
.don-carte p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.don-carte .bouton { margin-top: auto; align-self: flex-start; }

/* ------------------------------ formulaire ------------------------------ */

.formulaire { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: 0.35rem; }
.champ label { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; }
.champ .aide { font-size: 0.8rem; color: var(--encre-douce); }
input, textarea, select {
  font: inherit; font-size: 1rem; color: var(--encre);
  padding: 0.72rem 0.9rem; border: 1px solid var(--trait-fort); border-radius: var(--rayon-s);
  background: #fff; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--or); outline: 2px solid var(--or-pale); outline-offset: 0; }
textarea { min-height: 150px; resize: vertical; }
.cache { position: absolute; left: -9999px; }
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .rangee { grid-template-columns: 1fr; } }

/* -------------------------------- listes -------------------------------- */

.fiche {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.4rem 1.5rem; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 0.4rem;
}
.fiche h3 { margin: 0; font-size: 1.15rem; }
.fiche .fiche-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or); }
.fiche address { font-style: normal; color: var(--encre-douce); font-size: 0.95rem; }
.fiche .fiche-note { font-size: 0.92rem; color: var(--encre-douce); }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }

.numero {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; align-items: center;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.2rem 1.4rem; box-shadow: var(--ombre);
}
.numero-vignette {
  aspect-ratio: 3 / 4; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--or-pale), var(--sable-fonce));
  color: var(--bordeaux); font-family: var(--serif); font-weight: 700; font-size: 0.8rem;
  text-align: center; padding: 0.4rem; border: 1px solid var(--trait);
}
.numero h3 { margin: 0 0 0.15rem; font-size: 1.12rem; }
.numero p { font-size: 0.93rem; color: var(--encre-douce); margin: 0; }
@media (max-width: 620px) {
  .numero { grid-template-columns: 60px 1fr; }
  .numero .bouton { grid-column: 1 / -1; justify-content: center; }
}

.faq details, .recette details {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre); overflow: hidden;
}
.faq summary, .recette summary {
  cursor: pointer; padding: 1.2rem 1.5rem; font-family: var(--serif); font-size: 1.15rem;
  font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker, .recette summary::-webkit-details-marker { display: none; }
.faq summary::after, .recette summary::after { content: '+'; color: var(--or); font-size: 1.6rem; line-height: 1; font-family: var(--sans); }
.recette details[open] summary::after { content: '\2212'; }
.recette-corps { padding: 0 1.5rem 1.5rem; display: grid; gap: 1.2rem; grid-template-columns: 1fr 1.6fr; }
@media (max-width: 700px) { .recette-corps { grid-template-columns: 1fr; } }
.recette-corps h4 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or); margin: 0 0 0.5rem; }
.recette-corps .texte { white-space: pre-wrap; color: var(--encre-douce); font-size: 0.97rem; }

/* --------------------------------- pied --------------------------------- */

.pied { background: #221a12; color: rgba(255, 255, 255, 0.72); padding: 3.5rem 0 2rem; font-size: 0.94rem; }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 780px) { .pied-grille { grid-template-columns: 1fr; gap: 1.8rem; } }
.pied h4 { color: #fff; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.9rem; }
.pied a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.pied a:hover { color: var(--or-clair); text-decoration: underline; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pied-verset {
  margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem;
}
.pied-verset .hebreu { font-size: 1.15rem; color: var(--or-clair); direction: rtl; margin-bottom: 0.4rem; font-family: var(--serif); }

/* ------------------------------ chargement ------------------------------ */

.chargement { color: var(--encre-douce); font-size: 0.93rem; display: flex; align-items: center; gap: 0.6rem; }
.chargement::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--trait-fort); border-top-color: var(--bordeaux);
  animation: tourne 0.8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   Ancres
   L'en-tete est collant : sans cette marge, cliquer sur « Faire un don »
   amenait le titre de la section juste dessous, donc invisible.
   ========================================================================= */

:target, section[id], div[id] { scroll-margin-top: 6rem; }

/* =========================================================================
   Telephones
   Les petits libellés en capitales et les cibles tactiles sont agrandis :
   lisibles à bout de bras, et confortables au pouce.
   ========================================================================= */

@media (max-width: 700px) {
  body { font-size: 16.5px; }

  .conteneur, .conteneur-etroit { width: min(100% - 2rem, var(--largeur)); }
  section { padding: 3.25rem 0; }
  .entete-section { margin-bottom: 1.75rem; }

  /* En-tete plus compact : 20 % de hauteur d'ecran en moins a la lecture */
  .entete-interieur { min-height: 60px; }
  .marque-sceau { width: 36px; height: 36px; }
  .marque-sceau svg { width: 19px; height: 19px; }
  .marque-texte strong { font-size: 1rem; }
  .marque-texte span { font-size: 0.72rem; }
  :target, section[id], div[id] { scroll-margin-top: 4.75rem; }

  /* Libelles : plus grands, moins etires */
  .surtitre { font-size: 0.82rem; letter-spacing: 0.12em; }
  .chabbat-case .etiquette { font-size: 0.8rem; letter-spacing: 0.1em; }
  .chabbat-note { font-size: 0.88rem; }
  .pastille { font-size: 0.75rem; letter-spacing: 0.06em; padding: 0.2rem 0.7rem; }
  .actu-meta { font-size: 0.86rem; }
  .fiche .fiche-cat, .recette-corps h4 { font-size: 0.82rem; letter-spacing: 0.08em; }
  .pied { font-size: 1rem; }
  .pied h4 { font-size: 0.86rem; letter-spacing: 0.1em; }
  .pied-verset { font-size: 0.9rem; }
  .carte p, .fiche .fiche-note, .numero p { font-size: 1rem; }

  /* Cibles tactiles : les liens en ligne sont trop fins pour un pouce.
     On leur donne de la hauteur sans changer l'apparence du texte. */
  .bouton { padding: 0.85rem 1.4rem; }
  .bouton-petit { padding: 0.65rem 1.1rem; font-size: 0.92rem; }
  .pied ul { gap: 0.6rem; }
  .pied ul a, .pied p a { display: inline-block; padding: 0.35rem 0; }
  .contact-lignes { gap: 0.9rem; }
  .contact-lignes a { display: inline-block; padding: 0.25rem 0; }
  .carte-lien { display: inline-block; padding: 0.45rem 0; }

  /* Les deux boutons de l'accueil prennent toute la largeur plutot que
     de se couper en deux lignes inegales */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .bouton { justify-content: center; }
  .hero-interieur { padding-block: 3.5rem 3rem; }
  .hero-image img { object-position: center 38%; }

  .detail-liste li { flex-wrap: wrap; gap: 0.2rem 1rem; }
  .detail-liste .horaire { white-space: normal; }

  .faq summary, .recette summary { padding: 1rem 1.15rem; font-size: 1.02rem; }
  .faq-corps, .recette-corps { padding: 0 1.15rem 1.25rem; }
  .carte, .fiche, .actu { padding: 1.2rem 1.25rem; }
  .actu h3 { font-size: 1.12rem; }

  .carte-plan iframe { height: 300px; }
}

/* Le bandeau de Chabbat passe en pleine largeur : les noms de parachah
   longs ne sont plus coupes en trois lignes. */
@media (max-width: 520px) {
  .chabbat-grille { grid-template-columns: 1fr; }
  .chabbat-case { padding: 1.1rem 1.25rem; }
  .chabbat-case .valeur { font-size: 1.6rem; }
  .chabbat-note { padding: 0 1.25rem 1rem; }
}

@media print {
  .entete, .pied, .hero-actions, .bouton { display: none !important; }
  body { background: #fff; }
}
