/* ==================================================================
   Dossiers Marine 5 : habillage graphique
   Dominante : vert anglais (bouteille) · accents bordeaux & laiton
   Titres DM Serif Display · texte DM Sans
   ================================================================== */

:root {
  /* --- Palette --- */
  --c-ink:        #102a1f;   /* vert bouteille très sombre, presque noir */
  --c-forest:     #1c4a37;   /* vert anglais (structurel) */
  --c-moss:       #2f6f52;   /* vert moyen (liens, traits) */
  --c-sage:       #6f8f7f;   /* vert grisé doux */
  --c-brass:      #a9823a;   /* laiton */
  --c-brass-lite: #c79f57;   /* laiton clair */
  --c-wine:       #7a2533;   /* bordeaux */
  --c-wine-deep:  #5c1a26;   /* bordeaux profond */
  --c-parchment:  #f6f3ea;   /* fond chaud (parchemin) */
  --c-cream:      #fffdf8;   /* blanc cassé */
  --c-mist:       #e8efe7;   /* vert pâle (cartouches) */
  --c-line:       #d9e0d3;   /* filets / bordures */
  --c-text:       #1e2a23;   /* texte fort */
  --c-text-soft:  #5c6b61;   /* texte secondaire */

  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-s: 0 14px 38px -22px rgba(16, 42, 31, .45);
  --shadow-m: 0 22px 60px -30px rgba(16, 42, 31, .55);

  /* Surcharges Bootstrap */
  --bs-body-font-family: var(--f-body);
  --bs-body-color: var(--c-text);
  --bs-body-bg: var(--c-cream);
  --bs-border-radius: .25rem;
  --bs-link-color: var(--c-moss);
  --bs-link-hover-color: var(--c-wine);
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-cream);
  line-height: 1.75;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--c-forest);
  line-height: 1.16;
  letter-spacing: .003em;
}

p { color: var(--c-text); }
a  { color: var(--c-moss); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-wine); }

img { max-width: 100%; height: auto; }

::selection { background: var(--c-brass-lite); color: var(--c-ink); }

/* Surtitre / eyebrow */
.dm-eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--c-wine);
}

/* ------------------------------------------------------------------
   Navigation
------------------------------------------------------------------ */
.dm-nav {
  background: rgba(255, 253, 248, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  padding: .75rem 0;
}
.dm-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dm-nav__brand { display: inline-flex; align-items: center; gap: .6rem; }
.dm-logo { height: 50px; width: auto; display: block; }
.dm-brandtype {
  font-family: var(--f-display);
  font-size: 1.18rem;
  color: var(--c-forest);
  line-height: 1.05;
}
.dm-nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.dm-nav__link {
  font-weight: 500;
  font-size: .98rem;
  color: var(--c-forest);
  position: relative;
  padding: .2rem 0;
}
.dm-nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--c-brass);
  transition: width .25s ease;
}
.dm-nav__link:hover { color: var(--c-wine); }
.dm-nav__link:hover::after { width: 100%; }

/* ------------------------------------------------------------------
   Bandeau d'accueil
------------------------------------------------------------------ */
.dm-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(169,130,58,.30), transparent 60%),
    linear-gradient(155deg, var(--c-ink) 0%, var(--c-forest) 58%, #20543e 100%);
  padding: 6.5rem 0 7rem;
  overflow: hidden;
}
.dm-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .6;
  mix-blend-mode: overlay;
}
.dm-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-brass), var(--c-wine), var(--c-brass));
}
.dm-hero > .container { position: relative; z-index: 2; }
.dm-hero .dm-eyebrow { color: var(--c-brass-lite); }
.dm-hero__title {
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 4.7rem);
  margin: .6rem 0 0;
}
.dm-hero__title em { font-style: italic; color: var(--c-brass-lite); }
.dm-hero__lead {
  margin-top: 1.4rem;
  max-width: 660px;
  font-size: 1.18rem;
  color: rgba(255,255,255,.9);
}

/* En-tête des pages intérieures */
.dm-phead {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(122,37,51,.4), transparent 60%),
    linear-gradient(150deg, var(--c-forest), var(--c-ink));
  padding: 4.5rem 0;
  overflow: hidden;
}
.dm-phead::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-brass), var(--c-wine), var(--c-brass));
}
.dm-phead .dm-eyebrow { color: var(--c-brass-lite); }
.dm-phead h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: .5rem; }
.dm-phead__lead { color: rgba(255,255,255,.9); max-width: 640px; margin-top: .8rem; font-size: 1.1rem; }

/* ------------------------------------------------------------------
   Sections génériques
------------------------------------------------------------------ */
.dm-section { padding: 4.5rem 0; }
.dm-band-soft { background: var(--c-parchment); }

/* Chapô d'introduction */
.dm-chapo {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--c-forest);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* Corps d'article */
.dm-prose { max-width: 840px; margin: 0 auto; }
.dm-prose p { margin-bottom: 1.35rem; color: #283b30; }

/* ------------------------------------------------------------------
   Sommaire de la flotte (cartes-ancres)
------------------------------------------------------------------ */
.dm-fleet__item {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  height: 100%;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-brass);
  padding: 1rem 1.2rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dm-fleet__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-s);
  border-left-color: var(--c-wine);
  color: inherit;
}
.dm-fleet__num {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-brass);
  line-height: 1;
}
.dm-fleet__name { font-family: var(--f-display); font-size: 1.2rem; color: var(--c-forest); }
.dm-fleet__meta { display: block; font-size: .82rem; color: var(--c-text-soft); margin-top: .15rem; }

/* ------------------------------------------------------------------
   Fiche d'un voilier
------------------------------------------------------------------ */
.dm-ship { scroll-margin-top: 90px; }
.dm-ship + .dm-ship { margin-top: 3.5rem; padding-top: 3.5rem; }

.dm-ship__title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: baseline;
  gap: .7rem;
}
.dm-ship__title .dm-ship__index {
  font-size: .55em;
  color: #fff;
  background: linear-gradient(150deg, var(--c-moss), var(--c-forest));
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: .02em;
  padding: .12em .55em;
  line-height: 1;
}
.dm-ship__title em { font-style: italic; color: var(--c-wine); }

/* Carte « carte d'identité » du navire */
.dm-spec {
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-forest);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-s);
}
.dm-spec__title {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--c-wine);
  margin: 0 0 .9rem;
}
.dm-spec dl { margin: 0; }
.dm-spec dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-brass);
  font-weight: 700;
  margin-top: .7rem;
}
.dm-spec dt:first-child { margin-top: 0; }
.dm-spec dd {
  margin: .1rem 0 0;
  color: var(--c-text);
  font-weight: 500;
  font-size: .98rem;
}

/* ------------------------------------------------------------------
   Visuel
------------------------------------------------------------------ */
.dm-figure { margin: 2.4rem 0; }
.dm-figure img {
  width: 100%;
  display: block;
  box-shadow: var(--shadow-m);
  border: 6px solid #fff;
  outline: 1px solid var(--c-line);
}
.dm-figure figcaption {
  margin-top: .7rem;
  font-size: .9rem;
  color: var(--c-text-soft);
  font-style: italic;
  text-align: center;
}

/* ------------------------------------------------------------------
   Cartouche mis en avant / encart
------------------------------------------------------------------ */
.dm-note {
  background: var(--c-parchment);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-brass);
  padding: 1.6rem 1.9rem;
  margin: 2.4rem 0;
}
.dm-note__label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--c-wine);
  margin-bottom: .4rem;
}
.dm-note p:last-child { margin-bottom: 0; }

/* Liste à fanions */
.dm-list { list-style: none; padding-left: 0; margin: 0; }
.dm-list li {
  position: relative;
  padding: .8rem 0 .8rem 2.2rem;
  border-bottom: 1px dashed var(--c-line);
  color: #283b30;
}
.dm-list li:last-child { border-bottom: 0; }
.dm-list li::before {
  content: "›";
  position: absolute; left: .35rem; top: .7rem;
  color: var(--c-brass);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

/* ------------------------------------------------------------------
   Panneau (contact) & adresse e-mail
------------------------------------------------------------------ */
.dm-panel {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-m);
  padding: 2.4rem;
}
.dm-panel--center { text-align: center; }

.dm-mail {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--c-forest);
  background: var(--c-mist);
  border: 1px dashed var(--c-brass);
  padding: .85rem 1.3rem;
  display: inline-block;
  user-select: all;
}
.dm-mail span { color: var(--c-wine); }

/* ------------------------------------------------------------------
   Boutons
------------------------------------------------------------------ */
.dm-btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 600;
  padding: .75rem 1.7rem;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.dm-btn:hover { transform: translateY(-2px); }
.dm-btn--solid { background: var(--c-forest); color: #fff; box-shadow: var(--shadow-s); }
.dm-btn--solid:hover { background: var(--c-ink); color: #fff; }
.dm-btn--light { background: var(--c-brass); color: var(--c-ink); }
.dm-btn--light:hover { background: var(--c-brass-lite); color: var(--c-ink); }
.dm-btn--ghost { background: transparent; color: var(--c-forest); border-color: var(--c-forest); }
.dm-btn--ghost:hover { background: var(--c-forest); color: #fff; }

/* ------------------------------------------------------------------
   Mentions légales
------------------------------------------------------------------ */
.dm-legal h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 .7rem;
  color: var(--c-forest);
}
.dm-legal h2:first-of-type { margin-top: .5rem; }
.dm-legal p, .dm-legal li { color: #2c3a31; }
.dm-legal ul { padding-left: 1.2rem; }

/* ------------------------------------------------------------------
   Pied de page
------------------------------------------------------------------ */
.dm-foot {
  background: var(--c-ink);
  color: rgba(255,255,255,.78);
  padding: 3.5rem 0 1.4rem;
}
.dm-foot__brand {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: .8rem;
}
.dm-foot a { color: var(--c-brass-lite); }
.dm-foot a:hover { color: #fff; }
.dm-foot__nav a { display: block; padding: .25rem 0; font-weight: 500; }
.dm-foot__bar {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ------------------------------------------------------------------
   Apparitions
------------------------------------------------------------------ */
@keyframes dm-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dm-rise { opacity: 0; animation: dm-rise .75s cubic-bezier(.2,.7,.2,1) forwards; }
.dm-d1 { animation-delay: .05s; }
.dm-d2 { animation-delay: .18s; }
.dm-d3 { animation-delay: .32s; }
.dm-d4 { animation-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
  .dm-rise { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 768px) {
  .dm-hero { padding: 4.5rem 0 5rem; }
  .dm-section { padding: 3rem 0; }
  .dm-nav__menu { gap: 1rem; }
  .dm-brandtype { display: none; }
}
