/* =========================================================
   PAPI TOURS — Design tokens
   Palette inspirée du Maroc : bleu Chefchaouen, argile brûlée,
   safran, encre nocturne, sable. Motif signature : l'arche
   marocaine (porte de riad) utilisée comme cadre récurrent.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap");

:root {
  --sand: #efe8d8;
  --sand-deep: #e3d8bf;
  --ink: #211a14;
  --indigo: #163445; /* bleu Chefchaouen profond */
  --indigo-deep: #0e2531;
  --clay: #a9531e; /* argile brûlée / rouille */
  --clay-bright: #c6672a;
  --saffron: #d9a441;
  --teal: #2e6f79;
  --cream: #fbf7ee;
  --line: rgba(33, 26, 20, 0.14);

  --display: "Cormorant Garamond", serif;
  --body: "Jost", sans-serif;

  --radius-arch: 50% 50% 0 0;
  --shadow-soft: 0 18px 45px -20px rgba(14, 37, 49, 0.35);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.2px;
}
p {
  margin: 0 0 1rem;
}
button {
  font-family: var(--body);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container-abt {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container-abt > div:nth-child(1) {
  margin-bottom: 15px !important;
}
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--clay);
  font-weight: 600;
}
.dest-info .eyebrow {
  background: black;
}
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section-abt {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}
.section-head p {
  color: rgba(33, 26, 20, 0.72);
  font-size: 1.05rem;
}
.section-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.section--dark {
  background: var(--indigo);
  color: var(--cream);
}
.section--dark .eyebrow {
  color: var(--saffron);
}
.section--dark .section-head p {
  color: rgba(251, 247, 238, 0.75);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Arch motif (signature element) ---------- */
.arch {
  position: relative;
  border-radius: 46% 46% 6px 6px / 30% 30% 6px 6px;
  overflow: hidden;
  isolation: isolate;
}
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 37, 49, 0) 45%,
    rgba(14, 37, 49, 0.55) 100%
  );
  pointer-events: none;
}
.arch img,
.arch video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zellige-rule {
  height: 14px;
  background-image:
    repeating-linear-gradient(135deg, var(--clay) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(45deg, var(--teal) 0 6px, transparent 6px 12px);
  background-size:
    24px 14px,
    24px 14px;
  background-position:
    0 0,
    12px 0;
  opacity: 0.55;
}

/* ---------- Header ---------- */
.agency-name {
  display: flex;
  flex-direction: column;
}
.agency-name > span:nth-child(2) {
  font-size: 0.8em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(239, 232, 216, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 82px;
}
.site-header .container-abt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--indigo);
}
.brand .mark {
  width: 62px;
  height: 62px;
  border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px;
  display: inline-block;
}
.brand .mark > img {
  border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav a {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding: 0.4rem 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}
.nav a.active {
  color: var(--clay);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(33, 26, 20, 0.55);
  cursor: pointer;
  font-weight: 600;
}
.lang-switch button.active {
  background: var(--indigo);
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.btn-primary {
  background: var(--clay);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--clay-bright);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--cream);
  background-color: var(--cream);
  color: #a9531e;
}
.btn-ghost:hover {
  border-color: #a9531e;
  background-color: #a9531e;
  color: var(--cream);
}
.btn-line {
  border-color: var(--indigo);
  color: var(--indigo);
}
.btn-line:hover {
  background: var(--indigo);
  color: var(--cream);
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 50px 0 50px;
  overflow: hidden;
  background: var(--indigo);
  color: var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  font-style: italic;
  font-weight: 500;
}
.hero p.lede {
  font-size: 1.12rem;
  color: rgba(251, 247, 238, 0.8);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.hero-media {
  aspect-ratio: 4/5;
}
.hero-badges {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.hero-badges div {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--saffron);
  font-style: italic;
}
.hero-badges span {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  color: rgba(251, 247, 238, 0.65);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-style: normal;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--cream);
  border-radius: 20px;
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.card h3 {
  font-size: 1.35rem;
  color: var(--indigo);
}
.card p {
  color: rgba(33, 26, 20, 0.72);
  font-size: 0.95rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.service-card .arch {
  aspect-ratio: 4/3;
  margin-bottom: 0.4rem;
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.4rem 0 0.6rem;
}
.service-card ul li {
  font-size: 0.87rem;
  color: rgba(33, 26, 20, 0.68);
  padding-left: 1.1rem;
  position: relative;
}
.service-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--clay);
}
.card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.dest-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.dest-card .arch {
  aspect-ratio: 3/4;
}
.dest-card .dest-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem;
  color: var(--cream);
}
.dest-card .dest-info h3 {
  color: var(--cream);
  background-color: #00000073;
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
  font-weight: bold;
}
.dest-card .dest-info p {
  font-size: 0.85rem;
  color: rgba(251, 247, 238, 0.85);
  margin: 0;
}

/* ---------- Tabs (Services) ---------- */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}
.tab-btn {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: rgba(33, 26, 20, 0.7);
}
.tab-btn.active {
  background: var(--indigo);
  color: var(--cream);
  border-color: var(--indigo);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadein 0.4s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.service-detail {
  align-items: center !important;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.service-detail .arch {
  aspect-ratio: 1/1;
}
.service-detail ul {
  columns: 2;
  gap: 1.6rem;
  margin: 1rem 0 1.4rem;
}
.service-detail ul li {
  break-inside: avoid;
  font-size: 0.92rem;
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}
.service-detail ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-size: 0.7rem;
  top: 0.5rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  background: var(--sand-deep);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: var(--indigo);
}

/* ---------- Why us / features ---------- */
.feature {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.feature .num {
  font-family: var(--display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--saffron);
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.feature p {
  font-size: 0.9rem;
  color: rgba(251, 247, 238, 0.72);
}

/* ---------- Itinerary (packages) ---------- */
.itinerary {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 1.4rem;
}
.itinerary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  background: var(--sand-deep);
}
.itinerary-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--indigo);
}
.itinerary-head .meta {
  font-size: 0.78rem;
  color: var(--clay);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.itinerary-head .chevron {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
  color: var(--clay);
}
.itinerary.open .chevron {
  transform: rotate(180deg);
}
.itinerary-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.itinerary.open .itinerary-body {
  max-height: 4000px;
}
.day {
  padding: 1.2rem 1.6rem;
  border-top: 1px dashed var(--line);
}
.day h4 {
  font-size: 1rem;
  color: var(--clay);
  margin-bottom: 0.3rem;
}
.day p {
  font-size: 0.9rem;
  color: rgba(33, 26, 20, 0.75);
  margin-bottom: 0.5rem;
}
.day .chip-row {
  margin-top: 0.3rem;
}
.itinerary-foot {
  padding: 1.2rem 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

/* ---------- Contact / forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(33, 26, 20, 0.6);
}
.field input,
.field select,
.field textarea {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-note {
  font-size: 0.8rem;
  color: rgba(33, 26, 20, 0.55);
}
.form-success {
  display: none;
  background: #e7f2ea;
  border: 1px solid #b6d9c3;
  color: #215233;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.form-success.show {
  display: block;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 37, 49, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--cream);
  border-radius: 22px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  position: relative;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.45);
}
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--sand-deep);
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--indigo);
}
.modal h2 {
  color: var(--indigo);
  font-size: 1.7rem;
}
.modal .eyebrow {
  margin-bottom: 0.4rem;
  display: block;
}

/* Floating quote button */
.float-quote {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  box-shadow: 0 14px 30px -12px rgba(169, 83, 30, 0.55);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(251, 247, 238, 0.75);
  padding: 3.5rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.4rem;
}
.footer-grid h4 {
  color: var(--cream);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--body);
  font-weight: 600;
}
.footer-grid ul li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}
.footer-grid a:hover {
  color: var(--saffron);
}
.footer-bottom {
  border-top: 1px solid rgba(251, 247, 238, 0.14);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.8rem;
}

/* ---------- Gallery strip (photos/videos showcase) ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.gallery-strip .arch {
  aspect-ratio: 1/1.1;
}

.container-contact {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem 40px);
}
/* ---------- Utility reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    aspect-ratio: 16/10;
  }
  .section-two {
    display: contents;
  }
  .agency-name > span:nth-child(1) {
    font-size: 0.8em;
  }
  .agency-name > span:nth-child(2) {
    font-size: 0.5em;
  }
  .btn-ghost {
    margin-bottom: 15px;
  }
  .site-footer {
    height: 1000px;
  }
  .container-abt {
    display: contents !important;
  }
  .section-abt {
    padding: clamp(2rem, 5vw, 4rem);
  }
  .modal{
    width: 49% !important;
    height: 49% !important;
    position: relative;
    left: -205px;
  }
  .modal-overlay.open{
    align-self: center;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand);
    flex-direction: column;
    height: 485%;
    padding: 2rem 1.5rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .section-two {
    display: contents;
  }
  .agency-name > span:nth-child(1) {
    font-size: 0.8em;
  }
  .agency-name > span:nth-child(2) {
    font-size: 0.5em;
  }
  .btn-ghost {
    margin-bottom: 15px;
  }
  .site-footer {
    height: 1000px;
  }
  .container-abt {
    display: contents !important;
  }
  .section-abt {
    padding: clamp(2rem, 5vw, 4rem);
  }
  .modal{
    width: 49% !important;
    height: 49% !important;
    position: relative;
    left: -205px;
  }
  .modal-overlay.open{
    align-self: center;
  }
  .nav.open {
    transform: none;
  }
  .nav-toggle {
    display: block;
  }
  .header-actions .btn-line {
    display: none;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    padding: 1.4rem;
  }
  .container-contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: normal !important;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  }
}
