/* myresto.co.il — mobile d'abord, propriétés logiques pour l'hébreu et l'arabe (RTL). */
:root {
  --vert: #1d9e75;
  --vert-fonce: #137a5a;
  --menthe: #e6f4ee;
  --menthe-2: #cdeadc;
  --encre: #13201b;
  --doux: #55635d;
  --fond: #fbfaf7;
  --sable: #f3f0e8;
  --blanc: #ffffff;
  --ligne: #e3dfd5;
  --sombre: #111816;
  --sombre-2: #1b2522;
  --rayon: 18px;
  --ombre: 0 18px 40px -18px rgba(19, 32, 27, .35);
  --police: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
html:lang(ar) { --police: "IBM Plex Sans Arabic", "Rubik", system-ui, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.6 var(--police); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-fonce); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.4rem); font-weight: 700; margin-block-end: 1.4rem; }
h3 { font-size: 1.08rem; font-weight: 500; }
p { margin: 0; }
figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--doux); margin-block-start: .7rem; text-align: center; }
svg { width: 1.2em; height: 1.2em; flex: none; }

.largeur { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.etroit { max-width: 760px; }
.centre { text-align: center; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .8em 1.4em; border-radius: 999px; background: var(--vert); color: #fff; font-weight: 500; text-decoration: none; border: 2px solid var(--vert); transition: background .15s, transform .15s; }
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.bouton:active { transform: scale(.98); }
.bouton-clair { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-clair:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
.bouton-blanc { background: #fff; color: var(--vert-fonce); border-color: #fff; }
.bouton-blanc:hover { background: var(--menthe); border-color: var(--menthe); }
.bouton-petit { min-height: 40px; padding: .45em 1em; font-size: .92rem; }
.bouton-large { width: 100%; }
.boutons { display: flex; flex-direction: column; gap: 12px; margin-block-start: 1.6rem; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid var(--ligne); }
.entete-in { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.logo img { width: 78px; height: auto; }
.nav { display: none; gap: 26px; margin-inline-start: 24px; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--vert-fonce); }
.langues { position: relative; margin-inline-start: auto; }
.langues summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; border-radius: 10px; font-size: .92rem; color: var(--doux); }
.langues summary::-webkit-details-marker { display: none; }
.langues summary span { display: none; }
.langues[open] summary { background: var(--sable); }
.langues-liste { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre); padding: 6px; min-width: 160px; display: grid; }
.langues-liste a { padding: 10px 12px; border-radius: 9px; color: var(--encre); text-decoration: none; }
.langues-liste a:hover { background: var(--menthe); }
.langues-liste a[aria-current] { font-weight: 700; color: var(--vert-fonce); }

/* Accroche */
.hero { background: radial-gradient(120% 80% at 85% 0%, var(--menthe-2) 0%, var(--menthe) 38%, var(--fond) 78%); padding-block: 36px 56px; overflow: hidden; }
.hero-in { display: grid; gap: 40px; }
.badge { display: inline-block; background: var(--encre); color: #fff; font-size: .82rem; font-weight: 500; padding: .45em .95em; border-radius: 999px; margin-block-end: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--vert-fonce); }
.hero-sous { font-size: 1.1rem; color: var(--doux); margin-block-start: 1.1rem; }
.hero-offre { margin-block-start: 1.1rem; padding: .9em 1.1em; background: #fff; border-radius: 14px; border-inline-start: 4px solid var(--vert); font-weight: 500; }
.hero-visuel { position: relative; }
.duo { position: relative; height: 470px; max-width: 420px; margin-inline: auto; }
.duo .telephone { position: absolute; width: 58%; }
.duo .arriere { inset-inline-start: 0; top: 0; transform: rotate(-4deg); }
.duo .avant { inset-inline-end: 0; top: 46px; transform: rotate(3deg); }
html[dir="rtl"] .duo .arriere { transform: rotate(4deg); }
html[dir="rtl"] .duo .avant { transform: rotate(-3deg); }

/* Téléphones et tablette */
.telephone { background: var(--sombre); border: 7px solid var(--sombre); border-radius: 30px; overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 390 / 770; }
.telephone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.telephone.court { aspect-ratio: 390 / 590; }
.telephone.tres-court { aspect-ratio: 390 / 420; }
.tablette { background: #000; border: 12px solid #000; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }

/* Étapes */
.etapes { padding-block: 56px; }
.etapes-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.etapes-liste li { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.numero { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--vert); color: #fff; font-weight: 700; margin-block-end: 12px; }
.etapes-liste p, .points p, .cartes p { color: var(--doux); margin-block-start: .35rem; }

/* Blocs */
.bloc { padding-block: 60px; }
.bloc-sable { background: var(--sable); }
.bloc-menthe { background: var(--menthe); }
.bloc-sombre { background: var(--sombre); color: #f1f5f3; }
.bloc-sombre .points p { color: #a9b8b1; }
.bloc-sombre .surtitre { color: #5fd3a8; }
.bloc-sombre figcaption { color: #8fa199; }
.surtitre { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--vert-fonce); margin-block-end: .6rem; }
html:lang(he) .surtitre, html:lang(ar) .surtitre { letter-spacing: 0; }
.grand { font-size: 1.12rem; color: var(--doux); margin-block-end: 1.6rem; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.points li { padding-inline-start: 18px; border-inline-start: 3px solid var(--vert); }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }

/* Démo de traduction : un seul téléphone dont l'écran passe d'une langue à l'autre (4 × 3 s) */
.traduction { max-width: 290px; margin-inline: auto; width: 100%; }
.fondu { position: relative; }
.fondu img { position: absolute; inset: 0; opacity: 0; animation: fondu 12s infinite; animation-delay: calc(var(--i) * 3s); }
.fondu img:first-child { position: relative; }
@keyframes fondu { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }
.pastilles { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pastilles li { padding: .35em .85em; border-radius: 999px; font-size: .88rem; border: 1px solid var(--ligne); background: #fff; color: var(--doux); animation: pastille 12s infinite; animation-delay: calc(var(--i) * 3s); }
@keyframes pastille { 0%, 27% { background: var(--vert); border-color: var(--vert); color: #fff; } 29%, 100% { background: #fff; border-color: var(--ligne); color: var(--doux); } }
.duo-plat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.telephone.petit { border-width: 6px; border-radius: 24px; }

/* Paiements */
.cartes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cartes li { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.cartes h3 { font-size: 1.2rem; }

/* Cuisine */
.tablette-fig { margin-block: 8px 40px; max-width: 920px; margin-inline: auto; }
.bloc-sombre .points li { border-color: #5fd3a8; }

/* Ticket de cuisine : papier thermique avec bord dentelé */
.ticket { max-width: 280px; margin-inline: auto; width: 100%; }
.ticket img { background: #fff; padding: 14px 10px 6px; box-shadow: var(--ombre); transform: rotate(-2deg); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }

/* Imprimés */
.imprimes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-block-start: 36px; }
.carte-papier img { max-width: min(420px, 100%); margin-inline: auto; border-radius: 6px; box-shadow: var(--ombre); }

/* Scan */
.scan figure { max-width: 300px; margin-inline: auto; width: 100%; }

/* Tarif */
.tarif { max-width: 460px; margin-inline: auto; background: #fff; border: 2px solid var(--vert); border-radius: 26px; padding: 30px 22px; text-align: center; box-shadow: var(--ombre); }
.tarif .badge { background: var(--vert); }
.prix { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.prix span { font-size: 1.05rem; font-weight: 400; color: var(--doux); }
.offert { font-weight: 500; color: var(--vert-fonce); margin-block: .8rem 1.3rem; }
.coches { list-style: none; padding: 0; margin: 0 0 1.6rem; text-align: start; display: grid; gap: 10px; }
.coches li { display: flex; gap: 10px; align-items: flex-start; }
.coches svg { color: var(--vert); margin-block-start: .2em; }
.note { font-size: .86rem; color: var(--doux); margin-block-start: 1rem; }

/* Questions */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--ligne); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--vert); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--doux); }

/* Contact */
.contact { background: var(--vert); color: #fff; padding-block: 64px; }
.contact-in { max-width: 640px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.contact h2 { margin: 0; }
.contact p { color: #e3f6ee; }
.numero-wa { font-size: 1.1rem; font-weight: 500; }

/* Pied */
.pied { background: var(--sombre); color: #b9c6c0; padding-block: 44px 96px; font-size: .92rem; }
.pied-in { display: grid; gap: 14px; }
.pied img { width: 88px; filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.pied a { color: #e6efeb; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied-petit { font-size: .82rem; color: #8b9a94; }

/* WhatsApp flottant */
.wa-flottant { position: fixed; z-index: 30; inset-block-end: 16px; inset-inline-end: 16px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .4); }
.wa-flottant svg { width: 32px; height: 32px; }

/* Pages légales */
.legal { padding-block: 40px 72px; }
.legal h1 { margin-block: 1rem 1.6rem; font-size: clamp(1.8rem, 6vw, 2.6rem); }
.legal h2 { font-size: 1.2rem; margin-block: 1.8rem .5rem; }
.legal p { color: var(--doux); margin-block-end: .6rem; }

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

@media (min-width: 560px) {
  .boutons { flex-direction: row; flex-wrap: wrap; }
  .langues summary span { display: inline; }
  .etapes-liste, .cartes { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .nav { display: flex; }
  .hero { padding-block: 64px 88px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .duo { height: 560px; }
  .etapes-liste { grid-template-columns: repeat(3, 1fr); }
  .bloc { padding-block: 88px; }
  .points-2 { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .deux-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .cartes { grid-template-columns: repeat(4, 1fr); }
  .imprimes { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; }
  .wa-flottant { inset-block-end: 24px; inset-inline-end: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fondu img, .pastilles li { animation: none; }
  .fondu img:first-child { opacity: 1; }
  * { transition: none !important; }
}
