/* Dar Tbsil — identité « maison » : crème, terracotta, vert profond, arches et zellige */
:root {
  --creme: #f6efe3;
  --sable: #ecdfc8;
  --terre: #b4472b;
  --terre-f: #8f3520;
  --vert: #1f4d3a;
  --safran: #e0a526;
  --encre: #2d2219;
  --doux: #6e5d4c;
  --titre: "El Messiri", "Times New Roman", serif;
  --corps: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e0a526' stroke-width='1.4' opacity='.55'%3E%3Cpath d='M28 4 34 22 52 28 34 34 28 52 22 34 4 28 22 22Z'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0 8 8M56 0 48 8M0 56 8 48M56 56 48 48'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 17px/1.6 var(--corps); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* En-tête */
.entete { display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: 1100px; margin: 0 auto; }
.marque { white-space: nowrap; display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 24px var(--titre); color: var(--terre); }
.marque svg { width: 36px; height: 36px; }
.entete nav { display: none; gap: 20px; margin-inline-start: auto; font-weight: 500; white-space: nowrap; }
.lang { margin-inline-start: auto; }
.entete nav a { text-decoration: none; }
.entete nav a:hover { color: var(--terre); }
.lang { border: 1.5px solid var(--terre); background: transparent; color: var(--terre); border-radius: 99px; padding: 6px 14px; font: 500 15px var(--corps); cursor: pointer; min-height: 40px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 28px; border-radius: 99px; background: var(--terre); color: #fff; border: 0; text-decoration: none; font: 700 17px var(--corps); cursor: pointer; }
.btn:hover { background: var(--terre-f); }
.btn svg { width: 22px; height: 22px; }
.btn--wa { background: var(--vert); width: 100%; }
.btn--wa:hover { background: #143728; }

/* Hero */
.hero { position: relative; max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 28px; text-align: center; }
.hero__motif { position: absolute; inset: 0 16px; background: var(--zellige); border-radius: 220px 220px 0 0; opacity: .5; z-index: -1; }
.sur { color: var(--terre); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
[dir="rtl"] .sur { letter-spacing: 0; font-size: 15px; }
.hero h1 { font-size: clamp(34px, 8.5vw, 58px); color: var(--vert); }
.hero p { color: var(--doux); font-size: 18px; max-width: 32em; margin-inline: auto; }
.hero__img { width: min(78vw, 360px); margin: 0 auto; border-radius: 180px 180px 18px 18px; background: var(--vert); padding: 18px; box-shadow: 0 18px 40px rgba(45, 34, 25, .2); }

/* Titres de section */
.titre { font-size: clamp(32px, 7vw, 46px); color: var(--terre); text-align: center; position: relative; }
.titre::after { content: ""; display: block; width: 70px; height: 10px; margin: 10px auto 0; background: radial-gradient(circle, var(--safran) 3px, transparent 4px) 0 0/14px 10px repeat-x; }
.note { text-align: center; color: var(--doux); }

/* Menu */
.menu { background: #fffaf1; padding: 56px 16px; border-block: 10px solid transparent; border-image: repeating-linear-gradient(90deg, var(--terre) 0 14px, var(--safran) 14px 28px, var(--vert) 28px 42px) 10; }
.carte-menu { max-width: 1000px; margin: 28px auto 0; display: grid; gap: 36px; }
.cat h3 { font-size: 26px; color: var(--vert); border-bottom: 1.5px solid var(--sable); padding-bottom: 6px; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; }
.plat { display: flex; flex-direction: column; }
.plat b { font-weight: 700; }
.plat small { color: var(--doux); font-size: 14.5px; }
.pts { flex: 1; border-bottom: 2px dotted #cdb999; transform: translateY(-5px); min-width: 20px; }
.px { font: 700 20px var(--titre); color: var(--terre); white-space: nowrap; }
.px::after { content: " MAD"; font: 500 12px var(--corps); color: var(--doux); }

/* Galerie */
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; max-width: 1100px; margin: 0 auto; }
.g { margin: 0; overflow: hidden; border-radius: 12px; aspect-ratio: 1; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g1 { border-radius: 120px 120px 12px 12px; }
.g4 { border-radius: 12px 12px 120px 120px; }

/* Réservation */
.reserver { padding: 56px 16px; max-width: 640px; margin: 0 auto; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; padding: 20px; border-radius: 20px; box-shadow: 0 12px 30px rgba(45, 34, 25, .1); border-top: 6px solid var(--safran); }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.form label:first-child, .form label:nth-child(4), .err, .form .btn { grid-column: 1 / -1; }
.form input, .form select { min-height: 50px; padding: 10px 12px; border: 1.5px solid #d9c9ae; border-radius: 12px; font: 400 16px var(--corps); background: var(--creme); color: var(--encre); width: 100%; }
.form input:focus, .form select:focus { outline: none; border-color: var(--vert); }
.err { color: #a12a14; font-weight: 700; margin: 0; }

/* Infos */
.infos { background: var(--vert); color: #f2ebdd; display: grid; }
.infos__bloc { padding: 48px 16px; }
.infos .titre { color: var(--safran); text-align: start; }
.infos .titre::after { margin-inline: 0; }
.infos b { color: var(--safran); font-weight: 700; }
.infos a { color: #fff; }
.reseaux { display: flex; gap: 12px; margin-top: 18px; }
.reseaux a { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; }
.reseaux a:hover { background: rgba(255,255,255,.1); }
.reseaux svg { width: 22px; height: 22px; }
.infos__carte { min-height: 320px; background: #163a2b; }
.infos__carte iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: sepia(.25); }

.pied { text-align: center; padding: 22px 16px 90px; color: var(--doux); font-size: 14px; }

.wa-flottant { position: fixed; bottom: 16px; inset-inline-end: 16px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 30; }
.wa-flottant svg { width: 30px; height: 30px; }

@media (min-width: 560px) {
  .entete nav { display: flex; }
  .lang { margin-inline-start: 0; }
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.2fr 1fr; text-align: start; align-items: center; padding-top: 48px; padding-bottom: 72px; }
  .hero p { margin-inline: 0; }
  .carte-menu { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .galerie { grid-template-columns: repeat(4, 1fr); padding: 16px; gap: 16px; }
  .infos { grid-template-columns: 1fr 1fr; }
  .infos__bloc { padding: 64px 48px; }
  .menu, .reserver { padding-block: 80px; }
  .pied { padding-bottom: 22px; }
}
