/* ============================================================
   Hammamet Quad Tours — Stylesheet
   Thème fidèle au prototype fourni : teal foncé + orange/jaune,
   bordures déchirées (torn paper), badges ronds numérotés,
   cartes de prix à liste à puces, bandeau "Why Choose Us" pointillé.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
  /* Palette — identique au prototype */
  --teal: #0E3B3B;
  --teal-deep: #0A2C2C;
  --teal-light: #145454;
  --orange: #F5A623;
  --orange-deep: #E0921A;
  --yellow: #FBC02D;
  --green: #8BC34A;
  --green-deep: #6FA635;
  --cream: #FFF8EE;
  --white: #FFFFFF;
  --ink: #1F2A2A;
  --ash: #8A9595;
  --border-soft: #E7E2D8;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Caveat', cursive;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --section-pad: clamp(48px, 7vw, 100px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; position: relative; }

/* ============== Typography ============== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }

.script-accent { font-family: var(--font-script); color: var(--orange); font-weight: 700; }

.eyebrow { font-family: var(--font-script); font-size: 22px; color: var(--orange); margin-bottom: 4px; display: block; }

.section-subtitle { color: var(--ash); font-size: 16px; max-width: 560px; margin-top: 10px; }
.mono { font-family: var(--font-display); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(139,195,74,0.4); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,166,35,0.4); }
.btn-ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-block { width: 100%; }

/* ============== Nav ============== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; transition: background var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.nav.scrolled { background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: 1240px; margin: 0 auto; }
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.nav-logo span { color: var(--orange); }
.nav-logo svg, .footer-logo svg, .booking-widget-title svg, .final-cta-location h3 svg { vertical-align: -4px; }
.safety-icon svg, .price-icon svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--orange); transition: width var(--dur-fast) var(--ease-out); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 4px; font-size: 12px; font-weight: 600; }
.lang-switch button { background: none; border: 1px solid var(--ash); color: var(--ash); border-radius: 100px; padding: 4px 10px; cursor: pointer; transition: all var(--dur-fast); }
.lang-switch button.active, .lang-switch button:hover { border-color: var(--orange); color: var(--orange); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-mobile-toggle { display: block; } }

/* ============== Hero (diagonal teal/orange split, comme le prototype) ============== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 110px; overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 55%, var(--orange) 55%, var(--orange) 100%);
}
.hero-bg { position: absolute; top: 0; right: 0; width: 56%; height: 100%; object-fit: cover; opacity: 0.92; will-change: transform; }
.hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,59,59,0.92) 0%, rgba(14,59,59,0.55) 38%, transparent 56%); }
.hero-content { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero .script-accent { font-size: clamp(48px, 7vw, 72px); display: block; line-height: 1; }
.hero-subtitle { font-size: 17px; max-width: 420px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.hero-discount {
  position: absolute; top: 14%; right: 6%; background: var(--white); border-radius: 50%; width: 110px; height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,0.25); z-index: 3;
}
.hero-discount .pct { font-size: 26px; font-weight: 800; color: var(--orange); }
.hero-discount .label { font-size: 10px; color: var(--teal); font-weight: 600; text-align: center; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px; padding: 8px 16px; font-size: 13px; font-weight: 500; backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ============== Booking widget ============== */
.booking-widget { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,0.3); color: var(--ink); position: relative; }
.booking-widget-title { font-weight: 700; font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; color: var(--teal); }
.quad-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.quad-option { border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; text-align: left; background: var(--cream); transition: all var(--dur-fast) var(--ease-out); }
.quad-option:hover { border-color: var(--orange); }
.quad-option.selected { border-color: var(--green); background: rgba(139,195,74,0.08); }
.quad-option .price { font-family: var(--font-display); font-weight: 700; color: var(--orange); display: block; font-size: 18px; margin-top: 2px; }
.quad-option .label { font-weight: 600; font-size: 14px; }
.quad-option .sub { color: var(--ash); font-size: 12px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row input, .form-row select {
  width: 100%; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); padding: 11px 14px;
  font-family: var(--font-body); font-size: 14px; background: var(--cream); color: var(--ink); transition: border-color var(--dur-fast);
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--orange); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-summary { background: var(--teal); color: var(--cream); border-radius: var(--radius-sm); padding: 16px; margin: 18px 0; font-family: var(--font-display); font-size: 14px; }
.price-row { display: flex; justify-content: space-between; padding: 4px 0; }
.price-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid rgba(255,255,255,0.18); margin-top: 6px; padding-top: 10px; }
.price-row .val { transition: transform var(--dur-fast) var(--ease-out); }
.price-row .val.pulse { transform: scale(1.12); color: var(--orange); }
.price-row.pay-now .val { color: var(--yellow); }
.widget-disclaimer { font-size: 12px; color: var(--ash); margin-top: 12px; line-height: 1.5; }
.form-error { color: #C0392B; font-size: 13px; margin-top: 10px; display: none; }
.form-error.visible { display: block; }

/* ============== Séparateurs de section : vague, zigzag, papier déchiré ============== */
.divider { position: relative; height: 80px; width: 100%; overflow: hidden; margin-top: -1px; line-height: 0; }
.divider svg { width: 100%; height: 100%; display: block; }
.divider.flip { transform: scaleY(-1); }

/* La légère dérive horizontale des séparateurs est pilotée par le scroll (voir main.js),
   pas par une boucle CSS automatique, pour rester liée à la position réelle de lecture. */
.divider svg { transition: transform 0.1s linear; }

/* ============== Trust strip ============== */
.trust-strip { background: var(--teal); color: var(--cream); padding: 36px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 24px; }
.trust-number { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; color: var(--yellow); }
.trust-label { font-size: 13px; color: rgba(255,248,238,0.65); margin-top: 4px; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============== How it works — numbered round badges (comme le prototype) ============== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step-card { background: var(--white); border-radius: var(--radius-md); padding: 30px 24px; border: 1px solid var(--border-soft); text-align: center; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.step-number { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0 auto 16px; border: 3px solid var(--orange); }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--ash); font-size: 14px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

/* ============== Banner CTA bar ============== */
.banner-cta {
  background: linear-gradient(100deg, var(--orange) 0%, var(--yellow) 100%); border-radius: var(--radius-md); padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; color: var(--white);
}
.banner-cta .big-num { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; }
.banner-cta .big-num small { font-size: 16px; font-weight: 600; display: block; }
.banner-cta .text { font-size: 15px; font-weight: 600; max-width: 380px; }
@media (max-width: 720px) { .banner-cta { flex-direction: column; align-items: flex-start; } }

/* ============== The tour ============== */
.tour-section { background: var(--teal); color: var(--cream); }
.tour-section .eyebrow { color: var(--yellow); }
.tour-section h2 { color: var(--white); }
.tour-section p { color: rgba(255,248,238,0.75); }
.tour-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-top: 16px; }
.tour-numbers { display: flex; gap: 28px; margin-bottom: 24px; flex-wrap: wrap; }
.tour-number-item { display: flex; align-items: center; gap: 10px; }
.tour-number-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--white); }
.tour-gallery { position: relative; }
.tour-gallery img { border-radius: var(--radius-md); width: 100%; object-fit: cover; }
.tour-gallery .main-img { height: 420px; }
.tour-gallery .float-img { position: absolute; bottom: -28px; left: -28px; width: 160px; height: 120px; border: 5px solid var(--white); border-radius: var(--radius-sm); box-shadow: 0 16px 30px rgba(0,0,0,0.3); }
.tour-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.tour-thumbs img { height: 90px; flex: 1; object-fit: cover; border-radius: var(--radius-sm); filter: saturate(0.9); transition: filter var(--dur-med), transform var(--dur-med) var(--ease-out); }
.tour-thumbs img:hover { filter: saturate(1.15); transform: scale(1.04); }
@media (max-width: 860px) { .tour-grid { grid-template-columns: 1fr; } .tour-gallery .float-img { display: none; } }

/* ============== Pricing ============== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.price-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med), box-shadow var(--dur-med); }
.price-card:hover { transform: translateY(-8px); border-color: var(--orange); box-shadow: 0 24px 48px rgba(245,166,35,0.16); }
.price-card.featured { border-color: var(--green); }
.price-card-tag { display: inline-block; background: var(--green); color: var(--white); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 100px; margin-bottom: 16px; }
.price-card .price-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; }
.price-card h3 { margin-bottom: 4px; }
.price-card .desc { color: var(--ash); font-size: 13px; margin-bottom: 16px; }
.price-card .amount { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--orange); }
.price-card .amount .unit { font-size: 14px; font-weight: 500; color: var(--ash); }
.price-card .deposit-note { font-size: 13px; color: var(--green-deep); margin: 6px 0 22px; font-weight: 600; }
.price-features { list-style: none; margin-bottom: 26px; text-align: left; max-width: 260px; margin-left: auto; margin-right: auto; }
.price-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--border-soft); }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ============== Why Choose Us — bandeau teal pointillé ============== */
.why-choose {
  background: var(--teal); border-radius: var(--radius-lg); padding: 36px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-top: 56px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px); background-size: 16px 16px;
}
.why-choose-list { display: flex; gap: 28px; flex-wrap: wrap; }
.why-item { display: flex; align-items: center; gap: 10px; color: var(--cream); font-size: 14px; font-weight: 500; }
.why-item .why-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.why-call { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 14px 22px; }
.why-call .call-num { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--white); }
.why-call .call-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--white); font-size: 14px; }
.why-call .call-label { font-size: 11px; color: rgba(255,248,238,0.7); }

/* ============== Safety ============== */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.safety-card { display: flex; gap: 18px; padding: 8px 0; }
.safety-icon { width: 52px; height: 52px; flex-shrink: 0; background: var(--cream); border: 2px solid var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.safety-card h3 { margin-bottom: 6px; font-size: 16px; }
.safety-card p { color: var(--ash); font-size: 14px; }
@media (max-width: 760px) { .safety-grid { grid-template-columns: 1fr; } }

/* ============== Testimonials ============== */
.testimonial-section { background: var(--white); }
.testimonial-card { background: var(--cream); border-radius: var(--radius-lg); padding: 32px; display: flex; gap: 24px; align-items: flex-start; margin-top: 40px; }
.testimonial-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 10px 24px rgba(0,0,0,0.1); flex-shrink: 0; }
.testimonial-stars { color: var(--orange); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-quote { font-size: 16px; margin-bottom: 16px; color: var(--ink); }
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-origin { font-size: 13px; color: var(--ash); }
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testimonial-card-sm { background: var(--cream); border-radius: var(--radius-md); padding: 26px; }
.testimonial-card-sm .testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card-sm img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
@media (max-width: 860px) { .testimonial-track { grid-template-columns: 1fr; } .testimonial-card { flex-direction: column; } }

/* ============== FAQ ============== */
.faq-list { margin-top: 36px; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--ink); }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); font-size: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--teal); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); }
.faq-answer p { padding-bottom: 20px; color: var(--ash); font-size: 14px; max-width: 620px; }

/* ============== Final CTA + contact ============== */
.final-cta { background: var(--cream); }
.final-cta-grid { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: start; margin-top: 36px; }
.final-cta-location { margin-top: 28px; padding: 22px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
.final-cta-location h3 { font-size: 15px; margin-bottom: 6px; color: var(--teal); }
.final-cta-location p { color: var(--ash); font-size: 14px; }
@media (max-width: 960px) { .final-cta-grid { grid-template-columns: 1fr; } }

/* ============== Footer ============== */
.footer { background: var(--teal-deep); color: rgba(255,248,238,0.65); padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); color: var(--white); font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; margin-bottom: 8px; color: rgba(255,248,238,0.65); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,248,238,0.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============== Barre de progression de scroll ============== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  z-index: 200; transition: width 0.1s linear;
}

/* ============== Scroll reveal + parallax ============== */
.reveal { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-bottom { transform: translateY(32px); }
.reveal.visible { opacity: 1; transform: translate(0,0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity var(--dur-fast) ease; transform: none !important; }
  .hero-bg { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

@media (max-width: 720px) {
  h1 { font-size: 38px; }
  .hero { background: var(--teal); }
  .hero-bg { display: none; }
  .hero-bg-overlay { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .booking-widget { max-width: 100%; }
  .hero-discount { display: none; }
}
