/**
 * Template premium « Fiche marque » (single-marque.php).
 *
 * Palette navy / ivoire / or champagne, direction éditoriale validée.
 * TOUT est scopé sous « .mmm-brand » pour ne jamais entrer en conflit avec le
 * header/footer réels du site (Tailwind) ni la barre d'admin WordPress.
 * Header et footer NE sont PAS restylés ici : ils restent ceux du thème.
 */

.mmm-brand {
  --mmm-navy: #001B33;
  --mmm-navy-deep: #000E24;
  --mmm-ivory: #FAF7F0;
  --mmm-ivory-2: #F5EFE6;
  --mmm-sand: #E8DDD0;
  --mmm-gold: #C89B55;
  --mmm-gold-soft: #D9B879;
  --mmm-text: #162033;
  --mmm-muted: #5F6673;
  --mmm-border: #E4DED4;
  --mmm-white: #FFFFFF;
  --mmm-shadow: 0 24px 70px rgba(0, 14, 36, .12);
  --mmm-container: 1180px;
  --mmm-radius: 10px;

  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mmm-text);
  background: var(--mmm-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mmm-brand img { max-width: 100%; display: block; }
.mmm-brand a { color: inherit; text-decoration: none; }
.mmm-brand .mmm-container { width: min(var(--mmm-container), calc(100% - 48px)); margin: 0 auto; }
.mmm-brand .serif { font-family: "Cormorant Garamond", Georgia, serif; }

.mmm-brand .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mmm-gold);
}
.mmm-brand .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.mmm-brand .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border .2s ease, color .2s ease;
  cursor: pointer;
}
.mmm-brand .btn:hover { transform: translateY(-1px); }
.mmm-brand .btn-gold { background: var(--mmm-gold); color: #fff; border-color: var(--mmm-gold); }
.mmm-brand .btn-gold:hover { background: #b58945; border-color: #b58945; }
.mmm-brand .btn-outline-light { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(0,14,36,.2); }
.mmm-brand .btn-outline-light:hover { background: #fff; color: var(--mmm-navy); }
.mmm-brand .btn-navy { background: var(--mmm-navy); color: #fff; border-color: var(--mmm-navy); }
.mmm-brand .btn-navy:hover { background: #01294c; border-color: #01294c; }

/* Hero */
.mmm-brand .brand-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--mmm-navy-deep);
}
.mmm-brand .brand-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center right;
}
.mmm-brand .brand-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,14,36,.94) 0%, rgba(0,14,36,.62) 42%, rgba(0,14,36,.12) 72%),
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.08) 55%, rgba(0,14,36,.35) 100%);
}
.mmm-brand .hero-content { position: relative; z-index: 2; max-width: 650px; padding: 92px 0; }
.mmm-brand .brand-hero h1 {
  margin: 24px 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.015em;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 26px rgba(0, 18, 38, .32);
}
.mmm-brand .hero-content p {
  max-width: 460px;
  margin: 0 0 32px;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.65;
}
.mmm-brand .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Titres de section partagés */
.mmm-brand .section-title {
  margin: 12px 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--mmm-navy-deep);
  font-weight: 700;
}
.mmm-brand .section-center { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.mmm-brand .section-center p { color: var(--mmm-muted); line-height: 1.75; margin: 0; }

/* Intro éditoriale */
.mmm-brand .brand-intro { padding: 78px 0 72px; background: var(--mmm-ivory); }
.mmm-brand .intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}
.mmm-brand .intro-image img {
  width: 100%;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
  border-radius: var(--mmm-radius);
  box-shadow: var(--mmm-shadow);
}
.mmm-brand .intro-copy h2 {
  margin: 12px 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--mmm-navy-deep);
  font-weight: 700;
}
.mmm-brand .intro-copy p { margin: 0 0 18px; color: var(--mmm-text); font-size: 16px; line-height: 1.75; }
.mmm-brand .fact-card {
  margin-top: 32px;
  padding: 24px 26px;
  border: 1px solid var(--mmm-border);
  border-radius: var(--mmm-radius);
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 40px rgba(0,14,36,.06);
}
.mmm-brand .fact-card h3 {
  margin: 0 0 18px;
  color: var(--mmm-gold);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mmm-brand .fact-row {
  display: grid;
  grid-template-columns: 24px 155px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(228,222,212,.85);
}
.mmm-brand .fact-row:first-of-type { border-top: 0; }
.mmm-brand .fact-icon { color: var(--mmm-navy); font-size: 18px; line-height: 1.3; }
.mmm-brand .fact-label { font-size: 13px; font-weight: 800; color: var(--mmm-navy-deep); }
.mmm-brand .fact-value { font-size: 13px; line-height: 1.5; color: var(--mmm-muted); }
.mmm-brand .fact-value a { color: var(--mmm-navy); text-decoration: underline; text-underline-offset: 2px; }

/* Réassurance */
.mmm-brand .reassurance { background: var(--mmm-navy-deep); color: #fff; }
.mmm-brand .reassurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mmm-brand .reassurance-item { padding: 34px 28px; text-align: center; border-left: 1px solid rgba(255,255,255,.18); }
.mmm-brand .reassurance-item:first-child { border-left: 0; }
.mmm-brand .reassurance-icon { color: var(--mmm-gold); font-size: 32px; margin-bottom: 14px; line-height: 1; }
.mmm-brand .reassurance-item h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.mmm-brand .reassurance-item p { margin: 0 auto; max-width: 190px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.55; }

/* Comparaison SEO */
.mmm-brand .comparison { padding: 72px 0 56px; background: linear-gradient(180deg, var(--mmm-ivory) 0%, #fffaf3 100%); }
.mmm-brand .comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mmm-border);
  border-radius: var(--mmm-radius);
  background: #fff;
  box-shadow: 0 16px 44px rgba(0,14,36,.05);
}
.mmm-brand table { width: 100%; border-collapse: collapse; min-width: 820px; }
.mmm-brand thead th {
  background: var(--mmm-navy-deep);
  color: #fff;
  padding: 15px 18px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
}
.mmm-brand tbody td {
  padding: 16px 18px;
  border-top: 1px solid var(--mmm-border);
  color: var(--mmm-muted);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}
.mmm-brand tbody td:first-child { color: var(--mmm-navy-deep); font-weight: 800; }

/* Gammes représentatives */
.mmm-brand .ranges { padding: 40px 0 70px; background: var(--mmm-ivory); }
.mmm-brand .ranges-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mmm-brand .range-card {
  min-height: 118px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--mmm-border);
  border-radius: 8px;
}
.mmm-brand .range-wave { color: var(--mmm-gold); font-size: 26px; line-height: 1; }
.mmm-brand .range-card h3 { margin: 0; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--mmm-navy-deep); }
.mmm-brand .range-card p { margin: 0; font-size: 13px; color: var(--mmm-muted); line-height: 1.45; }

/* Bateaux disponibles */
.mmm-brand .available { padding: 66px 0; background: #fffaf3; }
.mmm-brand .available-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: stretch; }
.mmm-brand .available-copy h2 { margin-bottom: 14px; }
.mmm-brand .available-copy p { color: var(--mmm-muted); line-height: 1.75; margin: 0 0 24px; }
.mmm-brand .empty-state {
  min-height: 250px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--mmm-border);
  border-radius: var(--mmm-radius);
}
.mmm-brand .empty-state .anchor { color: var(--mmm-gold); font-size: 46px; margin-bottom: 14px; line-height: 1; }
.mmm-brand .empty-state h3 { margin: 0 0 8px; color: var(--mmm-navy-deep); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.mmm-brand .empty-state p { margin: 0 auto; max-width: 460px; color: var(--mmm-muted); font-size: 14px; line-height: 1.7; }

.mmm-brand .boat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mmm-brand .boat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mmm-border);
  border-radius: var(--mmm-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,14,36,.06);
}
.mmm-brand .boat-card .boat-thumb { width: 100%; aspect-ratio: 1.55/1; object-fit: cover; }
.mmm-brand .boat-card .boat-thumb--placeholder { background: linear-gradient(135deg, #dfe6ee, #c7d3df); }
.mmm-brand .boat-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.mmm-brand .boat-card h3 { margin: 0 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; color: var(--mmm-navy-deep); }
.mmm-brand .boat-meta { color: var(--mmm-muted); font-size: 13px; line-height: 1.7; }
.mmm-brand .boat-price { margin: 12px 0 14px; color: var(--mmm-gold); font-weight: 800; }
.mmm-brand .boat-card .btn { margin-top: auto; }

/* Pourquoi choisir */
.mmm-brand .benefits { padding: 64px 0 58px; background: var(--mmm-ivory); }
.mmm-brand .benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 30px; }
.mmm-brand .benefit-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.mmm-brand .benefit-icon { color: var(--mmm-gold); font-size: 36px; line-height: 1; }
.mmm-brand .benefit-item h3 { margin: 0 0 8px; font-size: 15px; color: var(--mmm-navy-deep); }
.mmm-brand .benefit-item p { margin: 0; font-size: 13px; color: var(--mmm-muted); line-height: 1.65; }

/* Formulaire */
.mmm-brand .lead-form-section { padding: 0 0 70px; background: var(--mmm-ivory); }
.mmm-brand .lead-box {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 42px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--mmm-border);
  border-radius: var(--mmm-radius);
  background: linear-gradient(120deg, var(--mmm-ivory-2) 0%, #fff 100%);
  box-shadow: var(--mmm-shadow);
}
.mmm-brand .lead-copy h2 { margin-bottom: 16px; }
.mmm-brand .lead-copy p { margin: 0; color: var(--mmm-muted); line-height: 1.75; }
.mmm-brand .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mmm-brand .form-grid .full { grid-column: 1 / -1; }
.mmm-brand input,
.mmm-brand select,
.mmm-brand textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--mmm-border);
  border-radius: 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,.9);
  color: var(--mmm-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.mmm-brand textarea { min-height: 96px; resize: vertical; }
.mmm-brand input:focus,
.mmm-brand select:focus,
.mmm-brand textarea:focus { border-color: var(--mmm-gold); box-shadow: 0 0 0 3px rgba(200,155,85,.16); }
.mmm-brand .form-actions { display: flex; align-items: center; gap: 18px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.mmm-brand .form-note { font-size: 12px; color: var(--mmm-muted); }
.mmm-brand .form-success {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(200,155,85,.12);
  border: 1px solid rgba(200,155,85,.4);
  color: #7a5a1f;
  font-size: 14px;
}

/* FAQ */
.mmm-brand .faq { padding: 64px 0 72px; background: #fffaf3; }
.mmm-brand .faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--mmm-border); }
.mmm-brand details { border-bottom: 1px solid var(--mmm-border); }
.mmm-brand summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  color: var(--mmm-navy-deep);
  font-weight: 800;
  font-size: 15px;
}
.mmm-brand summary::-webkit-details-marker { display: none; }
.mmm-brand summary::after { content: "+"; color: var(--mmm-navy); font-size: 24px; line-height: 1; }
.mmm-brand details[open] summary::after { content: "\2212"; }
.mmm-brand details p { margin: 0 0 20px; max-width: 760px; color: var(--mmm-muted); line-height: 1.75; }

/* CTA final */
.mmm-brand .final-cta { padding: 74px 0; background: var(--mmm-navy-deep); color: #fff; text-align: center; }
.mmm-brand .final-cta h2 { margin: 0 0 14px; color: #fff; }
.mmm-brand .final-cta p { margin: 0 auto 28px; max-width: 640px; color: rgba(255,255,255,.74); line-height: 1.7; }

@media (max-width: 1024px) {
  .mmm-brand .intro-grid,
  .mmm-brand .available-grid,
  .mmm-brand .lead-box { grid-template-columns: 1fr; }
  .mmm-brand .reassurance-grid,
  .mmm-brand .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .mmm-brand .ranges-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .mmm-brand .mmm-container { width: min(100% - 32px, var(--mmm-container)); }
  .mmm-brand .brand-hero { min-height: 520px; }
  .mmm-brand .brand-hero::after {
    background:
      linear-gradient(180deg, rgba(0,14,36,.72) 0%, rgba(0,14,36,.7) 45%, rgba(0,14,36,.92) 100%);
  }
  .mmm-brand .brand-hero-bg { background-position: center; }
  .mmm-brand .hero-content { padding: 68px 0; }
  .mmm-brand .brand-hero h1 { font-size: clamp(46px, 13vw, 66px); }
  .mmm-brand .hero-content p { font-size: 16px; }
  .mmm-brand .hero-actions,
  .mmm-brand .form-actions { flex-direction: column; align-items: stretch; }
  .mmm-brand .hero-actions .btn,
  .mmm-brand .form-actions .btn { width: 100%; }
  .mmm-brand .brand-intro,
  .mmm-brand .comparison,
  .mmm-brand .available,
  .mmm-brand .benefits,
  .mmm-brand .faq { padding: 52px 0; }
  .mmm-brand .fact-row { grid-template-columns: 24px 1fr; }
  .mmm-brand .fact-value { grid-column: 2; }
  .mmm-brand .reassurance-grid,
  .mmm-brand .benefit-grid,
  .mmm-brand .form-grid,
  .mmm-brand .boat-list { grid-template-columns: 1fr; }
  .mmm-brand .reassurance-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .mmm-brand .reassurance-item:first-child { border-top: 0; }
  .mmm-brand .ranges-grid { grid-template-columns: repeat(2, 1fr); }
  .mmm-brand .lead-box { padding: 26px; }
}
