/* ==========================================================================
   NEXIS — Location de yacht à moteur, Saint-Cyprien
   ========================================================================== */

:root {
  --bg: #0A1620;
  --bg-alt: #0E1F2B;
  --text: #F4F1EA;
  --text-soft: #C6D0D7;
  --text-mute: #A9B7C0;
  --text-mute-2: #7E8F9B;
  --text-mute-3: #63737F;
  --text-line: #D7DEE3;
  --text-line-2: #E4E9EC;
  --accent: #6FA3C4;
  --accent-light: #9CC4DC;

  --border-10: rgba(244, 241, 234, 0.10);
  --border-12: rgba(244, 241, 234, 0.12);
  --border-14: rgba(244, 241, 234, 0.14);
  --border-18: rgba(244, 241, 234, 0.18);
  --border-28: rgba(244, 241, 234, 0.28);
  --border-35: rgba(244, 241, 234, 0.35);

  --font-serif: 'Spectral', serif;
  --font-sans: 'Jost', sans-serif;

  --container: 1280px;
  --header-h: 76px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
::selection { background: var(--accent); color: var(--bg); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.section {
  padding: 110px 40px;
  scroll-margin-top: var(--header-h);
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-10);
}
.section-tight { padding: 0 40px 110px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-light); color: var(--bg); }
.btn-outline {
  border-color: var(--border-35);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  padding: 16px clamp(18px, 4vw, 40px);
  background: rgba(10, 22, 32, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-10);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.34em;
  line-height: 1;
}
.brand-tag {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute-2);
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links a { color: var(--text-line); }
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute-2);
}
.lang-switch button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.lang-switch button.active { color: var(--text); }
.lang-switch span { opacity: 0.4; }
.call-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid rgba(111, 163, 196, 0.55);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.call-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-18);
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero-home {
  min-height: 92vh;
  padding: 150px 40px 56px;
}
.hero-page {
  min-height: 64vh;
  padding: 160px 40px 56px;
}
.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-home .hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero-lead {
  max-width: 660px;
}
.hero-kicker {
  margin: 0 0 22px;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.hero-page .hero-kicker { letter-spacing: 0.32em; margin-bottom: 20px; }
.hero-title {
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}
.hero-page .hero-title {
  max-width: 900px;
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: 1.05;
}
.hero-text {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  text-wrap: pretty;
}
.hero-page .hero-text { max-width: 600px; margin-top: 24px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-port {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 6px;
}
.hero-port-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute-2);
}
.hero-port-value {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
}
.hero-port-value span {
  font-size: 15px;
  color: var(--accent-light);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-tags span {
  padding: 10px 18px;
  border: 1px solid var(--border-28);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-line-2);
}

/* ---- Stats bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--border-10);
  border-bottom: 1px solid var(--border-10);
}
.stat {
  padding: 34px 30px;
  border-right: 1px solid var(--border-10);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute-2);
}

/* ---- Generic two-col section ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
  align-items: start;
}
.grid-2.align-center { align-items: center; }

.section-title {
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.12;
  text-wrap: balance;
}
.body-text {
  margin: 26px 0 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-soft);
  text-wrap: pretty;
}
.body-text + .body-text { margin-top: 18px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.tag-list span {
  padding: 9px 16px;
  border: 1px solid var(--border-18);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-line);
}
.callout {
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-mute);
  text-wrap: pretty;
}

.photo-stack { display: grid; gap: 18px; }
.photo-stack img { width: 100%; height: 340px; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photo-pair img { height: 210px; }
.photo-caption {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-mute-2);
}

/* ---- Spec table ---- */
.spec-table {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 24px;
  font-size: 15px;
}
.spec-table dt {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-10);
  color: var(--text-mute);
  font-weight: 300;
}
.spec-table dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-10);
  text-align: right;
  font-family: var(--font-serif);
  font-size: 17px;
}
.spec-table dt:last-of-type,
.spec-table dd:last-of-type { border-bottom: none; }

/* ---- Programme cards ---- */
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}
.section-head-row .section-title { margin: 0; }
.section-head-note {
  margin: 0;
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-mute);
  text-wrap: pretty;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.program-card {
  display: flex;
  flex-direction: column;
  color: var(--text);
  border: 1px solid var(--border-14);
  background: var(--bg);
  transition: border-color .15s ease;
}
.program-card:hover { border-color: var(--accent); }
.program-card img { width: 100%; height: 190px; object-fit: cover; }
.program-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 30px;
  flex: 1;
}
.program-kicker {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.program-card-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
  color: var(--text);
}
.program-card-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mute);
  flex: 1;
  text-wrap: pretty;
}
.program-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-12);
}
.program-card-price { font-size: 13px; color: var(--text-mute-2); }
.program-card-cta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Territoire grid ---- */
.territory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border-12);
  border: 1px solid var(--border-12);
}
.territory-cell {
  background: var(--bg);
  padding: 32px 28px;
}
.territory-cell h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 10px;
}
.territory-cell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-mute);
  text-wrap: pretty;
}

/* ---- Practical info lists ---- */
.info-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border-12);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ---- Contact ---- */
.contact-title { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.1; text-wrap: balance; }
.contact-text {
  margin: 24px 0 0;
  max-width: 460px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-soft);
  text-wrap: pretty;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 40px;
}
.contact-card-label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mute-2);
  margin-bottom: 12px;
}
.contact-phone {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--text);
  line-height: 1.3;
}
.contact-phone:hover { color: var(--accent-light); }
.contact-email { font-size: 17px; color: var(--accent-light); margin-top: 6px; }
.contact-port { margin-top: 18px; font-size: 15px; color: var(--text-mute); }
.contact-brochure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 1px solid var(--border-28);
  padding-bottom: 3px;
}
.contact-brochure:hover { color: var(--accent-light); border-color: var(--accent-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border: 1px solid var(--border-14);
  background: var(--bg-alt);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute-2);
}
.field input,
.field select,
.field textarea {
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--border-18);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237E8F9B'%3E%3Cpath d='M5 8l5 5 5-5' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { resize: vertical; font-family: var(--font-sans); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-submit {
  margin-top: 6px;
  padding: 16px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease;
}
.form-submit:hover { background: var(--accent-light); }
.form-note { margin: 0; font-size: 13px; color: var(--text-mute-2); }
.form-note.is-success { color: var(--accent-light); }
.form-note.is-error { color: #E19A9A; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border-10);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.34em;
}
.footer-brand-tag {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-mute-2);
}
.footer-disclaimer {
  margin: 0;
  max-width: 620px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-mute-3);
  text-wrap: pretty;
}

/* ---- Programme detail: timeline ---- */
.timeline { display: flex; flex-direction: column; }
.timeline-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--border-12);
}
.timeline:last-child .timeline-row:last-child,
.timeline-row.timeline-row-last { border-bottom: 1px solid var(--border-12); }
.timeline-time {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}
.timeline-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 27px;
  line-height: 1.2;
}
.timeline-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mute);
  max-width: 620px;
  text-wrap: pretty;
}

.feature-photo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
}
.feature-photo img { width: 100%; height: 400px; object-fit: cover; }
.feature-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
  text-wrap: pretty;
}
.feature-caption { margin: 20px 0 0; font-size: 13px; letter-spacing: 0.08em; color: var(--text-mute-2); }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border-12);
  border: 1px solid var(--border-12);
}
.fact-cell { background: var(--bg); padding: 30px 26px; font-size: 15.5px; color: var(--text-soft); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.cta-band .section-title { font-size: clamp(30px, 3.4vw, 46px); }
.cta-band p { margin: 18px 0 0; max-width: 520px; font-size: 16px; line-height: 1.7; color: var(--text-mute); text-wrap: pretty; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.other-programs a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--border-14);
  color: var(--text);
  transition: border-color .15s ease;
}
.other-programs a:hover { border-color: var(--accent); }
.other-programs .program-kicker { font-size: 10.5px; letter-spacing: 0.24em; }
.other-programs .program-name { font-family: var(--font-serif); font-size: 23px; line-height: 1.25; }
.other-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links, .header-tools { display: none; }
  .nav-toggle { display: flex; }

  .site-header.is-open {
    flex-wrap: wrap;
  }
  .site-header.is-open .nav-links,
  .site-header.is-open .header-tools {
    display: flex;
    width: 100%;
  }
  .site-header.is-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 24px;
    order: 3;
  }
  .site-header.is-open .header-tools {
    order: 4;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-10);
  }
}

@media (max-width: 720px) {
  .section { padding: 72px 20px; }
  .section-tight { padding: 0 20px 72px; }
  .section-alt { padding: 72px 20px; }
  .hero-home { padding: 130px 20px 44px; min-height: 86vh; }
  .hero-page { padding: 130px 20px 44px; min-height: 52vh; }
  .site-footer { padding: 40px 20px; }
  .grid-2, .feature-photo { gap: 40px; }
  .contact-form { padding: 26px; }
  .timeline-row { grid-template-columns: 1fr; gap: 10px; }
}
