/* =========================================================
   Terre Méditerranée — feuille de style
   Palette : bleu Méditerranée & blanc
   ========================================================= */

:root {
  --bleu-profond: #06324f;
  --bleu-marine: #0a4d7c;
  --bleu: #1572b8;
  --bleu-azur: #2f95d6;
  --bleu-clair: #d9ecf8;
  --bleu-brume: #eef7fc;
  --sable: #f3e9d8;
  --blanc: #ffffff;
  --encre: #11283a;
  --gris: #5a7080;

  --font-titre: "Fraunces", Georgia, "Times New Roman", serif;
  --font-corps: "Mulish", -apple-system, BlinkMacSystemFont, sans-serif;

  --ombre-douce: 0 18px 50px -25px rgba(6, 50, 79, 0.45);
  --ombre-carte: 0 22px 60px -30px rgba(6, 50, 79, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.75;
  font-size: 1.05rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-titre {
  font-family: var(--font-titre);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bleu-profond);
  line-height: 1.12;
}

a { color: var(--bleu); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bleu-marine); }

.surtitre {
  font-family: var(--font-corps);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--bleu-azur);
  display: inline-block;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bleu-clair);
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.navbar-brand {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--bleu-profond) !important;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.navbar-brand .logo-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--bleu-azur), var(--bleu-marine));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 14px -6px var(--bleu);
}

.navbar .nav-link {
  font-weight: 700;
  color: var(--encre) !important;
  margin: 0 .35rem;
  position: relative;
  font-size: .98rem;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--bleu-azur);
  transition: width .25s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 100%; }
.navbar .nav-link.active { color: var(--bleu-marine) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(6,50,79,.78) 0%, rgba(10,77,124,.72) 50%, rgba(21,114,184,.55) 100%),
    url("../marseille-port.jpg") center 35% / cover no-repeat;
  color: #fff;
  padding: 7rem 0 9rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  mix-blend-mode: overlay;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--bleu-clair);
}
.hero .lead {
  color: rgba(255,255,255,.9);
  font-size: 1.2rem;
  max-width: 640px;
}
.hero .surtitre { color: var(--bleu-clair); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* vague décorative bas du hero */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Boutons ---------- */
.btn-mer {
  background: #fff;
  color: var(--bleu-marine);
  font-weight: 800;
  border-radius: 100px;
  padding: .75rem 1.7rem;
  border: none;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-mer:hover { transform: translateY(-2px); color: var(--bleu-profond); box-shadow: 0 18px 36px -14px rgba(0,0,0,.55); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  font-weight: 700;
  border-radius: 100px;
  padding: .75rem 1.7rem;
  transition: all .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

.btn-bleu {
  background: linear-gradient(135deg, var(--bleu-azur), var(--bleu-marine));
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 100px;
  padding: .8rem 2rem;
  box-shadow: var(--ombre-douce);
  transition: transform .2s ease;
}
.btn-bleu:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Article / contenu ---------- */
.section { padding: 4.5rem 0; }

.contenu { max-width: 820px; margin: 0 auto; }
.contenu p { margin-bottom: 1.35rem; color: #28404f; }

.contenu h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 3.2rem 0 1.2rem;
  position: relative;
  padding-left: 1.1rem;
}
.contenu h2::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 5px; height: .9em;
  border-radius: 4px;
  background: linear-gradient(var(--bleu-azur), var(--bleu-marine));
}

.intro-lead {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--bleu-marine);
  font-weight: 500;
  border-left: 4px solid var(--bleu-clair);
  padding-left: 1.4rem;
  margin-bottom: 2.5rem;
}

/* figures / images */
.figure-mer {
  margin: 2.8rem 0;
}
.figure-mer img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--ombre-carte);
  display: block;
}
.figure-mer figcaption {
  margin-top: .7rem;
  font-size: .9rem;
  color: var(--gris);
  font-style: italic;
  text-align: center;
}
img { max-width: 100%; height: auto; }

/* liste astuces */
.liste-mer { list-style: none; padding-left: 0; }
.liste-mer li {
  position: relative;
  padding: .9rem 0 .9rem 2.4rem;
  border-bottom: 1px dashed var(--bleu-clair);
  color: #28404f;
}
.liste-mer li::before {
  content: "›";
  position: absolute;
  left: .4rem; top: .75rem;
  color: var(--bleu-azur);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

/* encadré citation */
.encadre {
  background: var(--bleu-brume);
  border: 1px solid var(--bleu-clair);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--ombre-douce);
}
.encadre .surtitre { margin-bottom: .4rem; }

/* puces d'ancre / sommaire */
.sommaire {
  background: var(--bleu-brume);
  border: 1px solid var(--bleu-clair);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
}
.sommaire h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.sommaire a {
  display: block;
  padding: .35rem 0;
  font-weight: 600;
  color: var(--bleu-marine);
  border-bottom: 1px solid rgba(21,114,184,.12);
}
.sommaire a:hover { color: var(--bleu-azur); padding-left: .3rem; }

/* ---------- Page contact / légales ---------- */
.page-entete {
  background: linear-gradient(160deg, var(--bleu-marine), var(--bleu));
  color: #fff;
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-entete h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-entete .surtitre { color: var(--bleu-clair); }
.page-entete .hero-wave svg { height: 70px; }

.carte {
  background: #fff;
  border: 1px solid var(--bleu-clair);
  border-radius: 20px;
  padding: 2.4rem;
  box-shadow: var(--ombre-carte);
}

.mail-box {
  font-family: var(--font-titre);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--bleu-marine);
  background: var(--bleu-brume);
  border: 1px dashed var(--bleu-azur);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  display: inline-block;
  user-select: all;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 .8rem;
  color: var(--bleu-marine);
}
.legal p, .legal li { color: #33485a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bleu-profond);
  color: rgba(255,255,255,.78);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h5 {
  color: #fff;
  font-family: var(--font-titre);
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--bleu-clair); }
.site-footer a:hover { color: #fff; }
.site-footer .nav-foot a { display: block; padding: .25rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.partenaire-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--bleu-azur), var(--bleu));
  padding: .5rem 1.1rem;
  border-radius: 100px;
}
.partenaire-link:hover { transform: translateY(-1px); }

/* ---------- Animations ---------- */
@keyframes monteFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: monteFade .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .32s; }
.d4 { animation-delay: .46s; }

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

@media (max-width: 768px) {
  .hero { padding: 5rem 0 7rem; }
  .section { padding: 3rem 0; }
}
