/* ==========================================================
   TUNISIA BOAT MARKET — feuille de style globale
   ========================================================== */

:root {
  --ink:      #0A1824;   /* navy Méditerranée */
  --ink-90:   #101e2c;
  --ivory:    #F3EEE3;   /* ivoire */
  --ivory-2:  #EAE3D3;
  --gold:     #B88A3F;   /* laiton */
  --gold-2:   #d8b879;
  --red:      #B8232E;   /* rouge Tunisie — usage strictement ponctuel */
  --red-2:    #9B1C2C;
  --line:     rgba(10,24,36,0.12);
  --line-l:   rgba(243,238,227,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .4s ease;
  background: rgba(10,24,36,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-l);
}
.nav.home-top {
  background: transparent;
  border-bottom-color: transparent;
  padding: 28px 40px;
}
.nav, .nav a { color: var(--ivory); }

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 8px;
  position: relative;
}
.brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
  font-size: 21px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.brand::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 2px;
  align-self: center;
  margin-bottom: 2px;
}

.menu { display: flex; gap: 36px; align-items: center; }
.menu a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  transition: color .3s ease;
}
.menu a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-2);
  transition: width .4s ease;
}
.menu a:hover { color: var(--gold-2); }
.menu a:hover::after { width: 100%; }
.menu a.active { color: var(--gold-2); }
.menu a.active::after { width: 100%; background: var(--red); }
.menu .soon { opacity: 0.5; cursor: default; position: relative; }
.menu .soon::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  top: 50%; right: -10px;
  transform: translateY(-50%);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--ivory);
  transition: all .4s ease;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.burger { display: none; }
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 200;
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 30px;
  padding: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--ivory);
}
.mobile-menu .close {
  position: absolute; top: 30px; right: 30px;
  color: var(--ivory); font-size: 32px;
}

/* ============ HERO (accueil) ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--ivory);
  background: var(--ink);
}
.hero-media {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1540946485063-a40da27545f8?auto=format&fit=crop&w=2000&q=85');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) saturate(0.95);
  animation: kenBurns 22s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,24,36,0.75) 0%, rgba(10,24,36,0.3) 60%, rgba(10,24,36,0.1) 100%),
              linear-gradient(to bottom, rgba(10,24,36,0) 40%, rgba(10,24,36,0.7) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 40px 80px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px;
  opacity: 0; animation: fadeUp .9s ease .2s forwards;
}
.hero-tag::before { content: ''; width: 48px; height: 1px; background: var(--gold-2); }
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 48px;
  opacity: 0; animation: fadeUp .9s ease .35s forwards;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
}
.hero-actions {
  display: flex; gap: 20px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s ease .55s forwards;
}
.btn-primary {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 19px 38px;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  transition: all .35s ease;
  display: inline-flex; align-items: center; gap: 14px;
}
.btn-primary:hover { background: transparent; color: var(--gold-2); border-color: var(--gold-2); }
.btn-primary .arr { transition: transform .35s ease; }
.btn-primary:hover .arr { transform: translateX(6px); }

.btn-ghost {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 19px 32px;
  border: 1px solid rgba(243,238,227,0.4);
  color: var(--ivory);
  transition: all .35s ease;
}
.btn-ghost:hover { border-color: var(--ivory); background: rgba(243,238,227,0.06); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ HERO (pages intérieures) ============ */
.page-hero {
  background: var(--ink);
  color: var(--ivory);
  padding: 180px 0 90px;
  border-bottom: 1px solid var(--line-l);
}
.page-hero .tag {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.page-hero .tag::before { content: ''; width: 36px; height: 1px; background: var(--red); }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 900px;
  margin-bottom: 28px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 300; }
.page-hero p {
  font-size: 16px;
  max-width: 560px;
  color: rgba(243,238,227,0.72);
  line-height: 1.65;
}

/* ============ SECTIONS GÉNÉRIQUES ============ */
section { padding: 120px 0; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--red); }
.eyebrow.center { justify-content: center; }
h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}

/* ============ SÉLECTION (homepage) ============ */
.selection { padding: 120px 0 100px; }
.selection-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 60px; gap: 40px; flex-wrap: wrap;
}
.selection-head h2 { max-width: 600px; }
.view-all {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: all .35s;
  display: inline-flex; align-items: center; gap: 10px;
}
.view-all:hover { color: var(--red); border-bottom-color: var(--red); }

/* ============ GRILLE DE LISTINGS ============ */
.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.listings.two { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  background: transparent;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.card:hover { transform: translateY(-6px); }
.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--ink-90);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--red);
  padding: 6px 12px;
  z-index: 2;
}
.card-badge.gold { background: var(--gold); color: var(--ink); }
.card-body {
  padding: 22px 4px 0;
  position: relative;
}
.card-body .meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.card-body h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--ink);
}
.card-specs {
  display: flex; gap: 18px;
  font-size: 12px;
  color: rgba(10,24,36,0.6);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.03em;
}
.card-specs span::before { content: '· '; margin-right: 4px; color: var(--gold); }
.card-specs span:first-child::before { content: ''; margin: 0; }
.price {
  position: absolute;
  top: 22px; right: 4px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--red);
}

/* ============ SERVICES ============ */
.services { background: var(--ivory-2); }
.services-head { margin-bottom: 60px; max-width: 700px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  background: var(--ivory-2);
  padding: 44px 32px 48px;
  transition: background .4s ease;
}
.service:hover { background: var(--ivory); }
.service-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--red);
  margin-bottom: 32px;
}
.service h3 { margin-bottom: 14px; font-size: 20px; }
.service p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(10,24,36,0.65);
}

/* ============ SIGNATURE ============ */
.signature { background: var(--ink); color: var(--ivory); }
.signature .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.signature .eyebrow { color: var(--red); }
.signature .eyebrow::before { background: var(--red); }
.signature h2 { color: var(--ivory); }
.signature h2 em { color: var(--gold-2); }
.signature p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(243,238,227,0.78);
  margin-bottom: 16px;
}
.credentials {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--line-l);
}
.credentials .k {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: 8px;
}
.credentials .v {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243,238,227,0.6);
  line-height: 1.5;
}
.signature-visual {
  aspect-ratio: 4/5;
  background-image: url('https://images.unsplash.com/photo-1569263979104-865ab7cd8d13?auto=format&fit=crop&w=1200&q=85');
  background-size: cover;
  background-position: center;
  position: relative;
}
.signature-visual::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 100%; height: 100%;
  border: 1px solid var(--red);
  z-index: 1;
  pointer-events: none;
}
.signature-cta { margin-top: 36px; }

/* ============ CONTACT BAND (homepage) ============ */
.contact-band {
  background: var(--ivory);
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-band h2 { margin-bottom: 20px; }
.contact-band p { color: rgba(10,24,36,0.65); margin-bottom: 40px; font-size: 16px; }
.contact-band .btn-primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.contact-band .btn-primary:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ============ CONTACT PAGE ============ */
.contact-section { background: var(--ivory); padding: 80px 0 120px; }
.contact-section .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info { display: grid; gap: 0; }
.contact-info .row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 30px;
}
.contact-info .row:first-child { border-top: 1px solid var(--line); }
.contact-info .row .lab {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}
.contact-info .row .val {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
}
.contact-info .row .val a { transition: color .3s; }
.contact-info .row .val a:hover { color: var(--red); }

form { display: grid; gap: 22px; }
.field { position: relative; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 15px;
  outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.submit {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 19px 38px;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all .35s ease;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 14px;
}
.submit:hover { background: var(--red); border-color: var(--red); }

/* ============ LOCATION PAGE ============ */
.coming-soon {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  text-align: center;
  padding: 140px 40px 80px;
}
.coming-soon-inner { max-width: 640px; }
.coming-soon h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 24px 0;
}
.coming-soon h1 em { font-style: italic; color: var(--gold); }
.coming-soon p { font-size: 16px; color: rgba(10,24,36,0.65); margin-bottom: 36px; line-height: 1.7; }
.coming-soon .badge {
  display: inline-flex;
  align-items: center; gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  padding: 13px 28px;
  border: 1px solid var(--red);
  margin-bottom: 40px;
}
.coming-soon .badge .dot {
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

/* ============ À PROPOS PAGE ============ */
.about-story { padding: 100px 0; background: var(--ivory); }
.about-story .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-story .photo {
  aspect-ratio: 4/5;
  background-image: url('https://images.unsplash.com/photo-1569263979104-865ab7cd8d13?auto=format&fit=crop&w=1200&q=85');
  background-size: cover;
  background-position: center;
  position: relative;
}
.about-story .photo::before {
  content: '';
  position: absolute;
  top: -24px; left: -24px;
  width: 100%; height: 100%;
  border: 1px solid var(--red);
  z-index: -1;
}
.about-story p {
  font-size: 16px; line-height: 1.75;
  color: rgba(10,24,36,0.75);
  margin-bottom: 18px;
}
.about-story p:first-of-type {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 32px;
}
.about-story p:first-of-type em { font-style: italic; color: var(--gold); }

.about-values { background: var(--ink); color: var(--ivory); padding: 120px 0; }
.about-values h2 { color: var(--ivory); text-align: center; max-width: 800px; margin: 0 auto 60px; }
.about-values h2 em { color: var(--gold-2); }
.about-values .eyebrow { color: var(--red); justify-content: center; }
.about-values .eyebrow::before { background: var(--red); }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-l);
  border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l);
}
.value {
  background: var(--ink);
  padding: 44px 32px;
}
.value .n {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--red);
  font-size: 15px;
  margin-bottom: 30px;
}
.value h3 { color: var(--ivory); margin-bottom: 14px; font-size: 20px; }
.value p {
  color: rgba(243,238,227,0.7);
  font-size: 14px;
  line-height: 1.65;
}

/* ============ FILTRES PAGE BATEAUX ============ */
.filters {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.filters .wrap {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.filter {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all .3s;
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.filter-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-right: 10px;
}

.listings-section { padding: 80px 0 140px; background: var(--ivory); }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: rgba(243,238,227,0.55);
  border-top: 1px solid var(--line-l);
  padding: 70px 40px 36px;
  font-size: 12px;
}
footer .wrap-f {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
footer .brand-col .brand { margin-bottom: 18px; }
footer p { line-height: 1.7; max-width: 340px; font-size: 13px; }
footer h4 {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 20px;
  font-weight: 400;
}
footer ul { list-style: none; display: grid; gap: 12px; }
footer ul a, footer ul li { transition: color .3s; font-size: 13px; }
footer ul a:hover { color: var(--red); }
.foot-bottom {
  max-width: 1360px; margin: 0 auto;
  padding-top: 36px; margin-top: 50px;
  border-top: 1px solid var(--line-l);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .wrap, .nav, .hero-inner, footer { padding-left: 24px; padding-right: 24px; }
  .menu { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; }
  .burger span { width: 24px; height: 1px; background: var(--ivory); display: block; }
  section { padding: 90px 0; }
  .selection-head { flex-direction: column; align-items: flex-start; }
  .signature .wrap, .about-story .wrap, .contact-section .wrap {
    grid-template-columns: 1fr; gap: 50px;
  }
  .listings { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .services-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .credentials { grid-template-columns: 1fr; gap: 20px; }
  footer .wrap-f { grid-template-columns: 1fr; gap: 40px; }
  .foot-bottom { flex-direction: column; gap: 18px; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .contact-info .row { grid-template-columns: 1fr; gap: 6px; }
  .hero { min-height: 75vh; }
  .page-hero { padding: 140px 0 70px; }
}
@media (max-width: 600px) {
  .listings { grid-template-columns: 1fr; }
  .services-grid, .values-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { justify-content: center; width: 100%; }
}
