/* ===== IZO FUN Marrakech ===== */
:root {
  --green: #1d4636;
  --green-dark: #143327;
  --orange: #ef7a12;
  --orange-dark: #d96a08;
  --cream: #faf6f0;
  --card: #f6efe5;
  --text: #1b1b1b;
  --muted: #555;
  --border: #e6ddd0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(30, 40, 30, .08);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* Image placeholders: real photo if present, warm gradient otherwise */
.ph { background-size: cover; background-position: center; background-color: #c9b89c; }

/* ===== Header ===== */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; flex-direction: column; line-height: 1; position: relative; }
.logo b { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--green); letter-spacing: -.5px; }
.logo b span { color: var(--orange); }
.logo small { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; color: var(--green); text-align: center; margin-top: 3px; }
.logo .rays { position: absolute; right: -16px; top: -10px; width: 22px; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--orange); border-color: var(--orange); }
.phone-btn { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid #333; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14px; transition: .2s; }
.phone-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 8px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { border-color: #222; background: #fff; }
.btn-outline:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== Hero ===== */
.hero { overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; min-height: 600px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(38px, 5vw, 58px); line-height: 1.05; color: var(--green); font-weight: 700; letter-spacing: -1px; margin-bottom: 20px; position: relative; }
.hero p.lead { color: #333; font-size: 17px; max-width: 470px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { background-position: center 72%; height: 600px; margin-right: -12vw; border-radius: 55% 0 0 45% / 50% 0 0 50%; position: relative;
  background-image: url("../images/hero.jpg"), linear-gradient(135deg, #8fb26b, #3f7a4a 60%, #24533b); }
.sun-rays { position: absolute; width: 60px; left: -70px; top: 40px; }
.features { display: flex; gap: 50px; margin-top: 50px; }
.feature { text-align: center; font-size: 13.5px; font-weight: 500; max-width: 130px; }
.feature svg { display: block; width: 30px; height: 30px; color: var(--green); margin: 0 auto 8px; }

/* ===== Section title ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 40px); color: var(--green); display: inline-flex; align-items: center; gap: 14px; }
.section-title p { color: var(--muted); max-width: 520px; margin: 10px auto 0; }

/* ===== Atelier tiles (home) ===== */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 28px 14px; text-align: center; transition: .25s; border: 1px solid transparent; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border); background: #fff; }
.tile svg { width: 48px; height: 48px; color: var(--orange); margin: 0 auto 12px; }
.tile h3 { font-family: var(--font-head); font-size: 17px; color: var(--green); line-height: 1.2; }



/* ===== Page banner (sorties) ===== */
.page-banner { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.page-banner .container { min-height: 280px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.page-banner h1 { font-family: var(--font-head); font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.page-banner p { max-width: 460px; opacity: .92; }
.page-banner .banner-img { position: absolute; right: 0; top: 0; bottom: 0; width: 55%;
  background-image: url("../images/sorties-banner.jpg"), linear-gradient(120deg, #2d5c45, #7ea65a);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.wave { display: block; width: 100%; height: 40px; margin-top: -39px; position: relative; z-index: 3; }

/* ===== Atelier cards (sorties) ===== */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { color: inherit; display: grid; grid-template-columns: 42% 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: .25s; min-height: 170px; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card.wide { grid-column: 1 / -1; grid-template-columns: 30% 1fr; }
.card .ph { min-height: 170px; }
.card-body { padding: 22px 24px; position: relative; }
.card-body svg.icon { width: 34px; height: 34px; color: var(--orange); background: #fdf0e3; border-radius: 10px; padding: 6px; margin-bottom: 10px; }
.card-body h3 { font-family: var(--font-head); font-size: 18px; color: var(--green); margin-bottom: 6px; }
.card-body p { font-size: 14px; color: var(--muted); }
.card-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--green); }
.card-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #333; display: grid; place-items: center; transition: .2s; }
.card:hover .card-arrow { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ===== Reservation ===== */
.resa { position: relative; color: #fff; padding: 70px 0;
  background-image: linear-gradient(90deg, rgba(20,51,39,.96) 30%, rgba(20,51,39,.75)), url("../images/reservation-bg.jpg");
  background-color: var(--green-dark); background-size: cover; background-position: center; }
.resa .container { display: grid; grid-template-columns: .8fr 1.4fr; gap: 50px; align-items: center; }
.resa-intro svg.cal { width: 44px; height: 44px; color: var(--orange); margin-bottom: 18px; }
.resa-intro h1 { font-family: var(--font-head); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 18px; }
.resa-intro p { opacity: .9; margin-bottom: 26px; }
.checks { list-style: none; display: grid; gap: 14px; font-weight: 500; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.form-card { background: #fff; color: var(--text); border-radius: 22px; padding: 34px; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.form-card h2 { font-family: var(--font-head); color: var(--green); font-size: 26px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 13px; font-weight: 700; }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea { font: inherit; font-size: 14px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; outline: none; transition: .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,122,18,.15); }
.field textarea { min-height: 90px; resize: vertical; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 22px; }
.form-msg { margin-top: 12px; font-size: 14px; text-align: center; color: var(--green); font-weight: 600; }

/* ===== Footer ===== */
.footer { background: var(--green-dark); color: #d8e3dc; padding: 40px 0; font-size: 14px; }
.footer .logo { align-items: flex-start; width: fit-content; margin-bottom: 12px; }
.footer .logo b, .footer .logo small { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-tag { max-width: 340px; }
.footer h3 { font-family: var(--font-head); font-size: 15px; color: #fff; margin-bottom: 10px; }
.footer-grid nav a, .footer-grid div > a { display: block; padding: 5px 0; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-end { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container, .resa .container { grid-template-columns: 1fr; }
  .hero .container { padding-top: 40px; }
  .hero-img { height: 380px; margin-right: -4vw; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .page-banner .banner-img { width: 100%; opacity: .35; }
}
@media (max-width: 760px) {
  .nav { position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 0; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border: 0; }
  .burger { display: block; }
  .phone-btn span { display: none; }
  .features { gap: 20px; justify-content: space-between; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* Booking calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: center; }
.bkcal { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; }
.cal-side { display: grid; gap: 10px; }
.cal-note { font-size: 13px; color: #6b6b6b; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--green); }
.cal-head b { font-size: 15px; }
.bkcal .nav-m { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.bkcal .nav-m:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.bkcal .wd { font-size: 11px; font-weight: 700; color: #8a8a8a; padding: 4px 0; }
.bkcal .day { aspect-ratio: 1; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; background: #fff; cursor: pointer; }
.bkcal .day.free { background: #eef6ee; color: var(--green); }
.bkcal .day.free:hover { background: #d9ecd9; }
.bkcal .day.on { background: var(--orange); color: #fff; }
.bkcal .day.off { color: #c4c4c4; cursor: default; font-weight: 500; }
.bkcal .day.full { background: #fbe9e7; color: #c0392b; text-decoration: line-through; cursor: not-allowed; }
.cal-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: 12px; color: #6b6b6b; align-items: center; }
.cal-key i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: -6px; }
.cal-key i.free { background: #d9ecd9; } .cal-key i.full { background: #f5c6c0; } .cal-key i.off { background: #e6e6e6; }
.cal-pick { font-size: 14px; color: #6b6b6b; }
.cal-pick.ok { color: var(--green); font-weight: 700; font-size: 16px; }
.sent { text-align: center; padding: 10px 0; }
.sent .ref { font-family: var(--font-head); font-size: 32px; letter-spacing: 2px; color: var(--orange); margin: 10px 0 14px; }
.sent p { margin-bottom: 10px; }

/* Atelier details window */
.atelier-dlg { width: min(860px, 94vw); max-height: 92vh; margin: auto; border: 0; border-radius: 22px; padding: 0; overflow: auto; color: var(--text); box-shadow: 0 25px 60px rgba(0,0,0,.35); }
.atelier-dlg[open] { display: grid; grid-template-columns: 42% 1fr; }
.atelier-dlg::backdrop { background: rgba(20,51,39,.7); }
.dlg-img { min-height: 320px; background-position: center 30%; }
.dlg-body { padding: 30px; }
.dlg-body h2 { font-family: var(--font-head); color: var(--green); font-size: 26px; line-height: 1.15; margin: 0 28px 10px 0; }
.dlg-body > p { color: var(--muted); margin-bottom: 18px; }
.dlg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.dlg-cols h3, .dlg-cols h4 { font-family: var(--font-head); font-size: 15px; color: var(--green); margin-bottom: 8px; }
.dlg-cols ul, .meal ul { list-style: none; display: grid; gap: 7px; font-size: 14px; }
.dlg-cols li, .meal li { padding-left: 16px; position: relative; }
.dlg-cols li::before, .meal li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }

/* Meals */
.meals { padding-top: 20px; }
.meal-diner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.meal-diner img { width: 100%; border-radius: 12px; }
.meal-diner-text h3, .meal h3 { font-family: var(--font-head); font-size: 22px; color: var(--green); margin-bottom: 14px; }
.meal-diner-text .dlg-cols { margin-bottom: 0; }
.meal { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.meal-breakfast { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 34px; align-items: center; }
.meal-breakfast img { width: 100%; border-radius: 12px; }
.meal > p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.meal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--orange); white-space: nowrap; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.meal .meal-free { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #eef6ee; color: var(--green); font-weight: 700; }
.meals-cta { text-align: center; margin-top: 30px; }
@media (max-width: 760px) {
  .atelier-dlg[open] { grid-template-columns: 1fr; }
  .dlg-img { min-height: 220px; }
  .dlg-body { padding: 22px; }
  .dlg-cols, .meal-diner, .meal-breakfast { grid-template-columns: 1fr; }
}

/* WhatsApp button */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* Error page */
.nf { min-height: 60vh; display: grid; place-content: center; justify-items: start; gap: 16px; padding: 60px 0; }
.nf h1 { font-family: var(--font-head); font-size: clamp(32px, 4vw, 48px); color: var(--green); }

@media (max-width: 760px) {
  .cal-wrap { grid-template-columns: 1fr; }
  body:has(#resa-form) .wa { position: static; margin: 20px auto; }
}

/* Sorties page: quick links + section spacing */
.subnav { background: #fff; border-bottom: 1px solid var(--border); }
.subnav .container { display: flex; gap: 8px 26px; flex-wrap: wrap; padding: 14px 0; }
.subnav a { font-weight: 600; font-size: 15px; color: var(--green); padding: 6px 0; }
.subnav a:hover { color: var(--orange); }
.ateliers-sec { padding-top: 56px; }

/* Home: steps */
.steps-sec { background: #fff; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.steps h3 { font-family: var(--font-head); font-size: 20px; color: var(--green); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Home: what is included */
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.incl-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.incl-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.incl-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.incl-card > div { padding: 22px 24px; }
.incl-card h3 { font-family: var(--font-head); font-size: 22px; color: var(--green); margin-bottom: 6px; }
.incl-card p { color: var(--muted); margin-bottom: 12px; }
.more { font-weight: 700; color: var(--orange); }

/* Home: closing band */
.cta-band { color: #fff; text-align: center; padding: 110px 0 90px; clip-path: ellipse(95% 100% at 50% 100%);
  background-image: linear-gradient(rgba(20,51,39,.62), rgba(20,51,39,.72)), url("../images/park.jpg"); }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.cta-band p { margin-bottom: 24px; font-size: 17px; }

@media (max-width: 760px) {
  .steps, .incl, .footer-grid { grid-template-columns: 1fr; }
  .steps { gap: 24px; }
  .cta-band { padding: 80px 0 60px; }
}
