/* ═══════════════════════════════════════════════════════════
   MARYLFAIR — style.css
   Palette : Bleu marine profond + Or
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@300;400;500;600&display=swap');

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --navy-deep:   #0f1a30;
  --navy:        #1a2744;
  --navy-mid:    #243358;
  --navy-light:  #2e4270;

  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-pale:   rgba(201,168,76,0.12);
  --gold-border: rgba(201,168,76,0.25);

  --white:       #ffffff;
  --off-white:   #f8f6f1;
  --text-muted:  #8a9bb5;
  --text-body:   rgba(255,255,255,0.80);
  --text-soft:   rgba(255,255,255,0.55);

  /* Compatibilité ancienne palette */
  --blue-deep:   var(--navy);
  --blue-light:  rgba(26,39,68,0.4);
  --blue-mid:    var(--navy-mid);
  --green:       var(--gold);
  --green-light: rgba(201,168,76,0.1);
  --gray-light:  rgba(255,255,255,0.05);
  --gray-border: var(--gold-border);
  --gray-mid:    var(--text-muted);
  --gray-dark:   var(--text-body);

  /* Typographie */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-body:   'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  /* Espacements & rayons */
  --radius:      4px;
  --radius-lg:   8px;
  --container:   1200px;
  --container-narrow: 800px;

  /* Ombres */
  --shadow-sm:   0 4px 16px rgba(0,0,0,0.25);
  --shadow-md:   0 12px 36px rgba(0,0,0,0.35);
  --shadow-lg:   0 24px 60px rgba(0,0,0,0.45);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-deep);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

h1 em, h2 em { color: var(--gold-light); font-style: italic; }

p { color: var(--text-body); line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

section { padding-block: clamp(3rem, 6vw, 5rem); }

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(15, 26, 48, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  transition: background 0.3s;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav__logo span { color: var(--gold); }

.nav__logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-border);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold-light);
}

.nav__cta {
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--gold-border);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .nav__links.open a {
    font-size: 0.95rem;
  }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn--green {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  font-weight: 600;
}
.btn--green:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,168,76,0.07) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* Dot pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 4rem 2rem;
}

.hero__logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  border: 2px solid var(--gold-border);
  box-shadow: 0 0 40px rgba(201,168,76,0.2);
  animation: fadeUp 0.8s ease both;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 7px 20px;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.35s ease both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.5s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-border);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1;
}
.hero__scroll:hover { color: var(--gold); }

/* ── PAGE HEADER (inner pages) ──────────────────────────── */
.page-header {
  padding-top: calc(72px + 4rem);
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 50% -20%, rgba(201,168,76,0.07) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--gold-border);
  text-align: center;
}

.page-header h1 { margin-bottom: 0.75rem; }
.page-header p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-inline: auto;
}

/* ── SECTION LABELS & DIVIDERS ──────────────────────────── */
.section-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.divider {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem 0 1.75rem;
}

/* ── CARDS ───────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(26, 39, 68, 0.5);
  border: 1px solid var(--gold-border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,0.5);
}

.card--green {
  border-top-color: var(--gold);
}

.card__icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── STATS ───────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── QUOTE ───────────────────────────────────────────────── */
.quote {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: rgba(201,168,76,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0;
}

/* ── LIST CHECK ──────────────────────────────────────────── */
.list--check {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.list--check li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.list--check li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.65rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* ── SECTION LIGHT ───────────────────────────────────────── */
.section--light {
  background: rgba(26,39,68,0.3);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
  border-top: 1px solid var(--gold-border);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
  border-left: 1px solid var(--gold-border);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy-deep);
}

.timeline__date {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── ALERT ───────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  background: rgba(201,168,76,0.05);
}

.alert--info { border-color: var(--gold-border); }
.alert--green { border-color: rgba(201,168,76,0.3); }

.alert__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* ── BLOG GRID ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: rgba(26,39,68,0.5);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,0.4);
}

.blog-card__img {
  height: 140px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--gold-border);
}

.blog-card__body { padding: 1.5rem; }

.blog-card__category {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.blog-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── FORM ────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.25rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group { display: flex; flex-direction: column; gap: 0.4rem; }

.form__group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__group input,
.form__group select,
.form__group textarea {
  background: rgba(26,39,68,0.6);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  width: 100%;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); }

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form__group select option {
  background: var(--navy-deep);
  color: var(--white);
}

.form__group textarea { resize: vertical; min-height: 120px; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form__check input[type="checkbox"] { margin-top: 3px; accent-color: var(--gold); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--gold-border);
  padding-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.footer__brand .nav__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: rgba(255,255,255,0.3); transition: color 0.3s; }
.footer__legal a:hover { color: var(--gold); }

/* ── COOKIE BANNER ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--navy);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 640px;
  width: calc(100% - 3rem);
  transition: opacity 0.4s, transform 0.4s;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a { color: var(--gold); text-decoration: underline; }

.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }

  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .form__row { grid-template-columns: 1fr; }

  .cookie-banner { flex-direction: column; gap: 1rem; text-align: center; }
  .cookie-banner__actions { justify-content: center; }

  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
