/* ═══════════════════════════════════════
   Jamila Azeroual Besson — Portfolio
   Style éditorial : crème/greige + encre,
   condensé majuscules + italique serif
═══════════════════════════════════════ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --card: #fafaf8;
  --ink: #131311;
  --muted: #5c5a52;
  --line: #e4e4e0;
  --accent: #2b2a8f;
  --font-caps: "Oswald", "Arial Narrow", sans-serif;
  --font-serif-it: "Playfair Display", georgia, serif;
  --font-serif: "Source Serif 4", georgia, serif;
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { cursor: pointer; text-decoration: none; color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }

/* ———— Titres ———— */
h1, h2 {
  font-family: var(--font-caps);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
}
.serif, .line-serif {
  font-family: var(--font-serif-it) !important;
  font-style: italic;
  font-weight: 400 !important;
  text-transform: none;
  letter-spacing: 0;
}

/* ———— Barre de progression ———— */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ———— Header ———— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-caps);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.site-header nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.site-header nav a:hover { color: var(--ink); }
.site-header { transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 10px 34px rgba(19, 19, 17, 0.08); }

.site-header nav a:not(.pill) { position: relative; padding-bottom: 3px; }
.site-header nav a:not(.pill)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.32, 1);
}
.site-header nav a:not(.pill):hover::after,
.site-header nav a:not(.pill).active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header nav a.active { color: var(--ink); }

/* ———— Burger & menu mobile ———— */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.burger:hover { border-color: var(--ink); }
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.32, 1);
}
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: grid; gap: 10px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-caps);
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.8, 0.32, 1), color 0.2s ease;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.29s; }
body.menu-open { overflow: hidden; }
.pill {
  color: #fff !important;
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.pill:hover { background: #1d1c68; color: #fff !important; }

/* ———— Boutons ———— */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-dark:hover { background: #1d1c68; color: #fff; transform: translateY(-2px); }
.btn-dark svg { width: 16px; height: 16px; transition: transform 0.25s cubic-bezier(0.22, 0.8, 0.32, 1); }
.btn-dark:hover svg { transform: translateX(4px); }

.btn-line {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-line:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ———— Hero ———— */
.hero { padding: clamp(40px, 7vh, 84px) 0 clamp(48px, 8vh, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr minmax(280px, 380px) 0.55fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hello {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.7vw, 21px);
  margin-bottom: 14px;
}

.hero h1 { font-size: clamp(46px, 5.6vw, 86px); margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero h1 .line-serif { font-size: 0.82em; margin: 4px 0; }

.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 30px;
}

.hero-photo {
  justify-self: center;
  width: 100%;
}
.hero-photo { overflow: hidden; border-radius: 999px 999px 22px 22px; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 999px 999px 22px 22px;
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.32, 1);
}
.hero-photo:hover img { transform: scale(1.035); }

.hero-stats {
  list-style: none;
  display: grid;
  gap: clamp(20px, 3.4vh, 34px);
  justify-items: end;
  text-align: right;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-caps);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats span {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 20ch;
  display: inline-block;
  line-height: 1.45;
}

/* ———— Bandeau spécialités ———— */
.strip { border-top: 1px solid var(--line); padding: clamp(34px, 5vh, 52px) 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3vw, 44px);
}
.strip h3 {
  font-family: var(--font-caps);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.strip p { font-size: 13px; color: var(--muted); max-width: 30ch; }

/* ———— À propos ———— */
.apropos { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apropos, .parcours, .societe, .contact { padding: clamp(64px, 10vh, 120px) 0; }

.apropos-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.apropos h2 { font-size: clamp(34px, 3.8vw, 58px); }
.apropos h2 .serif { font-size: 0.86em; }

.apropos-body .big {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.5;
  margin-bottom: 20px;
}
.apropos-body p:not(.big) {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--muted);
  max-width: 58ch;
}

/* ———— Parcours ———— */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 4vh, 40px);
}
.section-head h2 { font-size: clamp(30px, 3.2vw, 46px); }
.section-head p { font-family: var(--font-serif); font-size: 15px; color: var(--muted); }

.rows { border-top: 1px solid var(--line); }
.rows article {
  display: grid;
  grid-template-columns: 200px minmax(240px, 0.65fr) 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.rows article:hover { background: var(--bg-soft); }
.row-tag {
  font-family: var(--font-caps);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rows h3 {
  font-family: var(--font-caps);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.rows p { font-family: var(--font-serif); font-size: 15px; color: var(--muted); max-width: 62ch; }

/* ———— Société ———— */
.societe { background: linear-gradient(150deg, #171647 0%, var(--accent) 100%); color: #fff; }
.societe-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.societe h2 { font-size: clamp(38px, 4.4vw, 64px); color: #ffffff; }
.societe-desc {
  font-family: var(--font-serif);
  color: #c6cbf2;
  margin-top: 18px;
  max-width: 44ch;
}

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts div {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 20px 22px;
}
.facts dt {
  font-family: var(--font-caps);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aeb6f2;
  margin-bottom: 8px;
}
.facts dd { font-size: 14.5px; color: #ffffff; line-height: 1.5; }

/* ———— Contact ———— */
.contact { text-align: center; }
.contact h2 { font-size: clamp(40px, 5.4vw, 84px); }
.contact h2 .serif { font-size: 0.9em; }
.contact-lead {
  font-family: var(--font-serif);
  color: var(--muted);
  max-width: 52ch;
  margin: 18px auto 36px;
}
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact .btn-dark span { text-transform: none; letter-spacing: 0.02em; font-size: 14.5px; }

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 28px;
}
.socials:empty { display: none; }
.social {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social:hover { color: var(--accent); border-color: var(--accent); }

/* ———— Footer ———— */
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ———— Entrée du hero au chargement ———— */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 { overflow: hidden; }
  .js .hello,
  .js .hero-lead,
  .js .hero-text .btn-dark,
  .js .hero-photo,
  .js .hero-stats li { opacity: 0; }
  .js .hero h1 span { opacity: 0; transform: translateY(105%); }

  .js.loaded .hello { animation: riseIn 0.65s cubic-bezier(0.22, 0.8, 0.32, 1) 0.05s both; }
  .js.loaded .hero h1 span { animation: riseMask 0.8s cubic-bezier(0.22, 0.8, 0.32, 1) both; }
  .js.loaded .hero h1 span:nth-child(1) { animation-delay: 0.14s; }
  .js.loaded .hero h1 span:nth-child(2) { animation-delay: 0.24s; }
  .js.loaded .hero h1 span:nth-child(3) { animation-delay: 0.34s; }
  .js.loaded .hero-lead { animation: riseIn 0.65s cubic-bezier(0.22, 0.8, 0.32, 1) 0.48s both; }
  .js.loaded .hero-text .btn-dark { animation: riseIn 0.65s cubic-bezier(0.22, 0.8, 0.32, 1) 0.58s both; }
  .js.loaded .hero-photo { animation: photoIn 0.9s cubic-bezier(0.22, 0.8, 0.32, 1) 0.3s both; }
  .js.loaded .hero-stats li { animation: riseIn 0.6s cubic-bezier(0.22, 0.8, 0.32, 1) both; }
  .js.loaded .hero-stats li:nth-child(1) { animation-delay: 0.5s; }
  .js.loaded .hero-stats li:nth-child(2) { animation-delay: 0.58s; }
  .js.loaded .hero-stats li:nth-child(3) { animation-delay: 0.66s; }
  .js.loaded .hero-stats li:nth-child(4) { animation-delay: 0.74s; }
  .js.loaded .hero-stats li:nth-child(n+5) { animation-delay: 0.82s; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes riseMask {
  from { opacity: 1; transform: translateY(105%); }
  to { opacity: 1; transform: none; }
}
@keyframes photoIn {
  from { opacity: 0; transform: scale(0.95) translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ———— Apparition ———— */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s cubic-bezier(0.22, 0.8, 0.32, 1), transform 0.55s cubic-bezier(0.22, 0.8, 0.32, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-dark:hover, .btn-line:hover { transform: none; }
  .hero-photo:hover img { transform: none; }
  .mobile-menu, .mobile-menu a, .burger span { transition: none; }
}

/* ———— Responsive ———— */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr minmax(240px, 320px); }
  .hero-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, auto);
    justify-items: start;
    text-align: left;
    justify-content: space-between;
    margin-top: 10px;
  }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 340px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .apropos-grid, .societe-grid { grid-template-columns: 1fr; }
  .rows article { grid-template-columns: 1fr; gap: 8px; }
  .site-header nav a:not(.pill) { display: none; }
  .burger { display: flex; }
}
@media (max-width: 520px) {
  .strip-grid, .facts, .hero-stats { grid-template-columns: 1fr; }
}
