/* =================================================================
   Dr. Mehdi Benkhadra — Traitement de la calvitie
   Reconstruction fidèle de l'ancien site (Jekyll) en statique pur
   ================================================================= */

:root {
  --bg-dark: #0c0c0d;
  --bg-dark-2: #131314;
  --text: #ece9e3;
  --text-dim: #b9b4ab;
  --gold: #c1a06a;
  --gold-soft: #d6bd8e;
  --sand: #c2b08e;
  --sand-2: #b09c78;
  --nav-h: 72px;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease;
  color: #1d1a14;            /* sombre sur le hero clair */
}
.navbar.scrolled {
  background: rgba(10, 10, 11, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  color: #fff;               /* clair sur fond foncé */
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 18px;
  color: inherit;
}
.nav-logo:hover { color: inherit; opacity: .85; }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: inherit;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover { color: inherit; background: rgba(255, 255, 255, .12); }
.navbar:not(.scrolled) .nav-links a:hover { background: rgba(0, 0, 0, .08); }
.nav-links a.active { background: rgba(255, 255, 255, .16); }
.navbar:not(.scrolled) .nav-links a.active { background: rgba(0, 0, 0, .1); }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 30%, #cdbb99 0%, #bda884 55%, #a8916b 100%);
  color: #29241b;
  overflow: hidden;
}
.hero::after {
  /* léger vignettage sur les bords comme l'original */
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 180px rgba(60, 48, 28, .35);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; padding: 0 24px; }

.hero-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 54px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #3a3324;
}
.hero-subtitle {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(15px, 2.2vw, 22px);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 18px;
  color: #4a4231;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-top: 42px;
  border: 1px solid rgba(58, 51, 36, .5);
  border-radius: 50%;
  color: #3a3324;
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll:hover { color: #3a3324; background: rgba(255, 255, 255, .25); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.hero-photo {
  position: absolute;
  right: 28px; bottom: 28px;
  width: 150px;
  z-index: 2;
  border: 4px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.hero-photo img { filter: grayscale(100%) contrast(1.02); aspect-ratio: 1 / 1; object-fit: cover; }

/* Pissenlits décoratifs */
.dandelion {
  position: absolute;
  z-index: 1;
  opacity: .9;
  pointer-events: none;
}
.dandelion--left  { left: -30px; bottom: -10px; width: 230px; height: 360px; }
.dandelion--top   { left: 60px;  top: -60px;    width: 150px; height: 240px; opacity: .55; transform: rotate(8deg); }

/* ============ SECTIONS ============ */
.section {
  padding: 96px 0;
  background: var(--bg-dark);
  scroll-margin-top: var(--nav-h);
}
.section:nth-of-type(even) { background: var(--bg-dark-2); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 860px; }

.section-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 56px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #9c9c9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

/* Listes à puces */
.bullet-list { list-style: none; max-width: 760px; margin: 0 auto; }
.bullet-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 26px;
  font-size: 18px;
  color: var(--text);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.section-note {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  color: var(--text-dim);
}

/* Texte long */
.prose p { font-size: 17.5px; margin-bottom: 22px; text-align: justify; }
.prose strong { color: var(--gold-soft); font-weight: 700; }

/* Mise en page texte + photo */
.split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 320px; }
.split-text { margin: 0; }
.split-photo { align-self: start; }
.split-photo--top { align-self: start; }
.split-photo img {
  width: 100%;
  filter: grayscale(100%) contrast(1.03);
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

/* ============ CONTACT ============ */
.section--contact { padding-top: 0; }

.map-wrap {
  width: 100%;
  height: 380px;
  margin-bottom: 84px;
  filter: grayscale(35%);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-intro { text-align: center; font-size: 18px; margin-bottom: 18px; }

.contact-list {
  list-style: none;
  max-width: 720px;
  margin: 40px auto 0;
  font-size: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.contact-ico { color: var(--gold); display: inline-flex; flex-shrink: 0; }
.contact-note {
  display: block;
  color: var(--text-dim);
  font-size: 16.5px;
  padding-left: 34px;
  margin-top: -10px;
}

.btn-linkedin {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 48px auto 0;
  padding: 13px 26px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  transition: background-color .2s ease, color .2s ease;
}
.btn-linkedin:hover { background: var(--gold); color: #1a1712; }

.site-footer {
  margin-top: 90px;
  padding: 30px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .nav-toggle { display: flex; color: inherit; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 11, .98);
    padding: 8px 0;
    transform: translateY(-130%);
    transition: transform .35s ease;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: #fff; padding: 14px 32px; border-radius: 0; }
  .nav-links a:hover { background: rgba(255, 255, 255, .08); }

  .split, .split--reverse { grid-template-columns: 1fr; gap: 32px; }
  .split-photo { max-width: 280px; margin: 0 auto; order: -1; }

  .hero-photo { width: 96px; right: 14px; bottom: 14px; }
  .hero-title { font-size: clamp(22px, 4.6vw, 34px); letter-spacing: 1px; }
  .hero-subtitle { font-size: clamp(13px, 2vw, 16px); letter-spacing: 2.5px; }
  .dandelion--left { width: 150px; height: 240px; left: -40px; }
  .dandelion--top { display: none; }

  .section { padding: 72px 0; }
  .prose p { text-align: left; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 13px; letter-spacing: .5px; }
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 20px; }
  .hero-photo { display: none; }
  .hero-content { padding: 0 18px; }
  .hero-title { font-size: clamp(20px, 6.4vw, 26px); letter-spacing: .5px; }
  .hero-subtitle { font-size: 12px; letter-spacing: 2px; margin-top: 14px; }
  .section-title { font-size: clamp(22px, 6vw, 28px); }
}

/* Respect du "prefers-reduced-motion" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
}
