/* ===== Fonts ===== */
@font-face {
  font-family: "Futura";
  src: url("../fonts/Futura-Light.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: url("../fonts/Futura-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: url("../fonts/Futura-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== Variables ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-text: #2b2f36;
  --color-text-muted: #5b6270;
  --color-accent: #1c3a5e;
  --color-accent-dark: #12283f;
  --color-border: #e2e4e8;
  --font-main: Futura, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

/* ===== Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

section {
  padding: 64px 0;
}

section.alt {
  background-color: var(--color-bg-alt);
}

h1, h2, h3 {
  color: var(--color-accent-dark);
  line-height: 1.25;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  border: 2px solid var(--color-accent);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
}

/* ===== Header ===== */
header.site-header {
  background-color: #040e26;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-borders {
  height: 12px;
}

.header-borders .border-white {
  height: 6px;
  background-color: #ffffff;
}

.header-borders .border-red {
  height: 6px;
  background-color: #e81822;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 24px 0;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.logo-mark {
  grid-column: 1;
  justify-self: start;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.logo-mark img {
  height: 80px;
  width: auto;
}

.logo {
  grid-column: 2;
  justify-self: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.logo:hover {
  text-decoration: none;
  color: #ffffff;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
}

.btn-inquire {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-inquire:hover {
  background-color: #ffffff;
  color: var(--color-accent-dark);
  text-decoration: none;
}

nav.main-nav {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 4px;
  padding-bottom: 18px;
}

nav.main-nav ul {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  color: #ffffff;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 1px;
  background-color: #b6301f;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

nav.main-nav a.active,
nav.main-nav a:hover {
  color: #cfd6e0;
  text-decoration: none;
}

nav.main-nav a.active::after,
nav.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  top: 18px;
  left: 24px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Footer ===== */
footer.site-footer {
  background-color: var(--color-accent-dark);
  color: #dfe4ea;
  padding: 40px 0 24px;
  margin-top: 64px;
}

footer.site-footer a {
  color: #dfe4ea;
}

footer.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

footer.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 12px;
}

footer.site-footer p,
footer.site-footer li {
  color: #b6bfca;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  font-size: 0.85rem;
  color: #8b95a3;
  text-align: center;
}

/* ===== Hero ===== */
.hero {
  background-color: var(--color-bg-alt);
  padding: 96px 0;
  text-align: center;
}

.hero h1 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Grids ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ===== Cards ===== */
.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(28, 58, 94, 0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--color-bg-alt);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-body p {
  flex: 1;
}

/* ===== Why-us block ===== */
.why-item {
  text-align: center;
}

/* ===== Filter bar (catalogue) ===== */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-bar input[type="text"],
.filter-bar select {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 200px;
}

.no-results {
  color: var(--color-text-muted);
  padding: 32px 0;
  text-align: center;
}

/* ===== Fiche bateau ===== */
.boat-gallery img.main-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  background-color: var(--color-bg-alt);
}

.thumb-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumb-row img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.thumb-row img:hover {
  opacity: 1;
}

.thumb-row img.active {
  border-color: var(--color-accent);
  opacity: 1;
}

.boat-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}

.specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.specs-table td:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 45%;
}

/* ===== Formulaire contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 20px;
  background-color: var(--color-bg);
}

form.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-infos h3 {
  margin-top: 24px;
}

.contact-infos h3:first-child {
  margin-top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80%;
    background-color: #040e26;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 200;
    display: block;
    overflow-y: auto;
  }

  nav.main-nav.open {
    transform: translateX(0);
  }

  nav.main-nav ul {
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions {
    display: none;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
  }

  .logo-mark {
    position: static;
    transform: none;
    order: 1;
  }

  .logo {
    order: 2;
    margin-top: 8px;
    margin-bottom: 16px;
    letter-spacing: 3px;
    font-size: 1.3rem;
  }

  .logo-mark img {
    height: 40px;
  }

  .nav-toggle {
    position: absolute;
    top: 18px;
    left: 24px;
    z-index: 1;
  }

  .boat-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0;
  }

  h1 {
    font-size: 1.9rem;
  }
}
