/*
Theme Name: Astra Child
Template: astra
Version: 4.0.0
*/

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap");

/* ============================================
   ASTRA OVERRIDES
   ============================================ */
#content,
#content .ast-container,
.site-content,
.site-content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
  width: 100% !important;
}

#main-portfolio {
  display: block !important;
  width: 100% !important;
}

body.home .site-header,
body.home #masthead,
body.home .ast-desktop-header,
body.home #ast-desktop-header {
  display: none !important;
}

#colophon { display: none !important; }

/* Hamburger custom */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  margin-left: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--white); }

/* ============================================
   DESIGN SYSTEM
   ============================================ */
:root {
  --ink:      #07111f;
  --navy:     #1e3a5f;
  --blue:     #2563eb;
  --sky:      #dbeafe;
  --amber:    #92400e;
  --amber-bg: #fef3c7;
  --muted:    #4b5563;
  --border:   #e2e8f0;
  --off:      #f8fafc;
  --white:    #ffffff;
  --body:     #1e293b;

  --serif:  "Instrument Serif", Georgia, serif;
  --sans:   "DM Sans", system-ui, sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,17,31,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 58px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--white); letter-spacing: 0.01em;
}
.nav-logo small {
  display: block; font-family: var(--sans);
  font-size: 0.6rem; font-weight: 400;
  color: rgba(255,255,255,0.35); letter-spacing: 0.15em;
  text-transform: uppercase; margin-top: -2px;
}
.nav-menu { display: flex; gap: 0; }
.nav-menu a {
  font-size: 0.72rem; font-weight: 400;
  color: rgba(255,255,255,0.45); padding: 0.4rem 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.15s; border-radius: 4px;
}
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: grid; place-items: center;
  padding: 58px 0 0;
  position: relative; overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 15%; right: 0;
  width: 55vw; height: 55vw;
  background: radial-gradient(ellipse at center, rgba(30,58,95,0.55) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max); width: 100%;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  position: relative; z-index: 1;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.68rem; font-weight: 500;
  color: rgba(255,255,255,0.4); letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 2.5rem;
}
.hero-tag::before {
  content: ""; display: block;
  width: 32px; height: 1px; background: rgba(255,255,255,0.25);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400; color: var(--white);
  line-height: 0.9; letter-spacing: -0.02em;
  margin-bottom: 0.15em;
}
.hero-name span {
  display: block; font-style: italic;
  color: rgba(255,255,255,0.35);
}

.hero-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  margin: 2.5rem 0;
}

.hero-bottom {
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: end;
}
.hero-pitch {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 300; color: rgba(255,255,255,0.55);
  line-height: 1.85; max-width: 520px;
}
.hero-pitch strong {
  font-weight: 500; color: rgba(255,255,255,0.85);
}
.hero-cta { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end; }
.btn {
  display: inline-block; padding: 0.78rem 1.75rem;
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.04em; border-radius: 4px;
  transition: all 0.15s; white-space: nowrap;
}
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { opacity: 0.88; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.hero-location {
  font-size: 0.7rem; color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em; text-align: right;
}

/* ============================================
   SHARED LAYOUT
   ============================================ */
.section { display: block; width: 100%; }
.section-white { background: var(--white); }
.section-off { background: var(--off); }
.section-navy { background: var(--navy); }
.section-ink { background: var(--ink); }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad);
}

.eyebrow {
  font-size: 0.65rem; font-weight: 500;
  color: var(--amber); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.eyebrow-light {
  font-size: 0.65rem; font-weight: 500;
  color: rgba(255,255,255,0.35); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 1rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--ink);
  line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 3rem;
}
h2.light { color: var(--white); }
h2 em { font-style: italic; color: var(--muted); }
h2.tight { margin-bottom: 1.5rem; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 5rem; align-items: start;
}
.about-text p {
  font-size: 1rem; font-weight: 300;
  color: #334155; line-height: 1.9;
  margin-bottom: 1.35rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 500; color: var(--ink); }
.about-text em {
  font-family: var(--serif); font-style: italic; color: var(--navy);
}

.about-facts { display: flex; flex-direction: column; gap: 0; }
.fact {
  padding: 1.2rem 0; border-top: 1px solid var(--border);
}
.fact:last-child { border-bottom: 1px solid var(--border); }
.fact-label {
  font-size: 0.62rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.3rem;
}
.fact-val { font-size: 0.9rem; font-weight: 400; color: var(--ink); line-height: 1.5; }
.fact-val a { color: var(--blue); }
.fact-val a:hover { text-decoration: underline; }
.fact-sub { font-size: 0.78rem; color: var(--amber); font-weight: 400; margin-top: 0.1rem; }

/* ============================================
   EXPERTISE GRID
   ============================================ */
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.expertise-card {
  background: var(--white); padding: 2rem 1.8rem;
  transition: background 0.15s;
}
.expertise-card:hover { background: #f0f7ff; }
.ec-label {
  font-size: 0.62rem; font-weight: 500;
  color: var(--blue); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.ec-title {
  font-size: 0.97rem; font-weight: 500;
  color: var(--ink); margin-bottom: 1rem; line-height: 1.4;
}
.ec-list { list-style: none; margin-bottom: 1.25rem; }
.ec-list li {
  font-size: 0.82rem; font-weight: 300; color: var(--muted);
  padding: 0.28rem 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.ec-list li:last-child { border-bottom: none; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.64rem; font-weight: 500;
  color: var(--blue); background: var(--sky);
  padding: 0.18rem 0.55rem; border-radius: 3px; letter-spacing: 0.02em;
}

/* ============================================
   TIMELINE
   ============================================ */
.tl { max-width: 860px; }
.tl-item {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 0 2.5rem; padding-bottom: 3.5rem;
  position: relative;
}
.tl-item::after {
  content: ""; position: absolute;
  left: 128px; top: 0.5rem; bottom: 0;
  width: 1px; background: var(--border);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::after { display: none; }

.tl-meta { padding-top: 0.1rem; text-align: right; padding-right: 1.5rem; }
.tl-date {
  font-size: 0.72rem; font-weight: 400;
  color: var(--muted); line-height: 1.5;
}
.tl-co {
  font-size: 0.65rem; font-weight: 500;
  color: var(--amber); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 0.2rem;
}

.tl-body { padding-left: 2rem; position: relative; }
.tl-body::before {
  content: ""; position: absolute;
  left: -4.5px; top: 0.5rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4.5px var(--navy);
}
.tl-title {
  font-size: 1.03rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.4rem;
}
.tl-desc {
  font-size: 0.84rem; font-weight: 300; font-style: italic;
  color: var(--muted); margin-bottom: 0.85rem; line-height: 1.6;
}
.tl-list { list-style: none; margin-bottom: 1rem; }
.tl-list li {
  font-size: 0.83rem; font-weight: 300; color: #475569;
  padding: 0.22rem 0 0.22rem 1rem; position: relative; line-height: 1.55;
}
.tl-list li::before {
  content: ""; position: absolute;
  left: 0; top: 0.72rem;
  width: 4px; height: 1px; background: var(--border);
}

/* ============================================
   APPROCHE
   ============================================ */
.approche-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.approche-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white); line-height: 1.45;
}
.approche-quote cite {
  display: block; margin-top: 1.5rem;
  font-family: var(--sans); font-style: normal;
  font-size: 0.68rem; font-weight: 400;
  color: rgba(255,255,255,0.3); letter-spacing: 0.15em; text-transform: uppercase;
}
.approche-body p {
  font-size: 0.97rem; font-weight: 300;
  color: rgba(255,255,255,0.55); line-height: 1.9; margin-bottom: 1.2rem;
}
.approche-body p:last-child { margin-bottom: 0; }

/* ============================================
   FORMATION
   ============================================ */
.formation-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.formation-card {
  padding: 1.5rem 1.6rem;
  border-left: 2px solid var(--navy);
  background: var(--white);
}
.fc-year {
  font-size: 0.65rem; color: var(--muted);
  letter-spacing: 0.12em; margin-bottom: 0.4rem;
}
.fc-title {
  font-size: 0.97rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.2rem;
}
.fc-lieu {
  font-size: 0.8rem; font-weight: 300;
  color: var(--muted); margin-bottom: 0.65rem;
}
.badge {
  display: inline-block; font-size: 0.63rem; font-weight: 600;
  background: var(--navy); color: var(--white);
  padding: 0.18rem 0.6rem; border-radius: 3px; letter-spacing: 0.06em;
}

/* ============================================
   ENGAGEMENT
   ============================================ */
.eng-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.eng-card {
  padding: 1.4rem 1.5rem;
  border: 0.5px solid var(--border); border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.eng-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(30,58,95,0.07);
}
.eng-title { font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 0.15rem; }
.eng-org { font-size: 0.7rem; color: var(--amber); margin-bottom: 0.55rem; font-weight: 400; }
.eng-card p { font-size: 0.8rem; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ============================================
   AMBITIONS
   ============================================ */
.ambitions-intro {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300; color: rgba(255,255,255,0.55);
  max-width: 600px; line-height: 1.85; margin-bottom: 3.5rem;
}
.ambitions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden;
}
.ambition-card {
  padding: 2rem 1.8rem;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s;
}
.ambition-card:hover { background: rgba(255,255,255,0.05); }
.amb-num {
  font-family: var(--serif); font-size: 3rem;
  color: rgba(255,255,255,0.06); line-height: 1;
  margin-bottom: 1rem;
}
.amb-title {
  font-size: 0.95rem; font-weight: 500;
  color: var(--white); margin-bottom: 0.6rem; line-height: 1.4;
}
.amb-desc {
  font-size: 0.82rem; font-weight: 300;
  color: rgba(255,255,255,0.45); line-height: 1.75;
}
.amb-tag {
  display: inline-block; margin-top: 1.2rem;
  font-size: 0.62rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.2rem 0.6rem; border-radius: 3px; letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   D'AUTRES LATITUDES
   ============================================ */
.lat-subtitle {
  font-size: 0.88rem; font-weight: 300; font-style: italic;
  color: var(--muted); margin-top: -2rem; margin-bottom: 3rem;
}
.lat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.lat-item {
  padding: 1.8rem 1.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
}
.lat-item:last-child { border-right: none; }
.lat-item:hover { background: var(--off); }
.lat-h {
  font-size: 0.87rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.7rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--border);
}
.lat-item p {
  font-size: 0.8rem; font-weight: 300;
  color: var(--muted); line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-lead {
  font-size: 0.9rem; font-weight: 300;
  color: rgba(255,255,255,0.4); margin-bottom: 3rem;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; overflow: hidden;
}
.contact-cell {
  padding: 1.8rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.contact-cell:last-child { border-right: none; }
.contact-cell:hover { background: rgba(255,255,255,0.04); }
.contact-lbl {
  font-size: 0.6rem; font-weight: 500;
  color: rgba(255,255,255,0.28); letter-spacing: 0.18em;
  text-transform: uppercase; display: block; margin-bottom: 0.55rem;
}
.contact-val {
  font-size: 0.85rem; font-weight: 300;
  color: rgba(255,255,255,0.7); display: block;
  transition: color 0.15s;
}
a.contact-val:hover { color: var(--white); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #040b14;
  padding: 1.75rem var(--pad);
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.06em;
}

/* ============================================
   ACCESSIBILITE
   ============================================ */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; top: -999px; left: 1rem;
  background: var(--blue); color: var(--white);
  padding: 0.5rem 1rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 500; z-index: 9999;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .tag, .badge { border: 1px solid ButtonText; }
  .tl-body::before { border: 2px solid ButtonText; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .ambitions-grid { grid-template-columns: 1fr; }
  .formation-row { grid-template-columns: 1fr 1fr; }
  .eng-grid { grid-template-columns: 1fr 1fr; }
  .approche-grid { grid-template-columns: 1fr; gap: 3rem; }
  .lat-grid { grid-template-columns: 1fr 1fr; }
  .lat-item:nth-child(2) { border-right: none; }
  .lat-item:nth-child(3),
  .lat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .lat-item:nth-child(4) { border-right: none; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 58px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7,17,31,0.97);
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 99;
  }
  .nav-menu.nav-menu-open { display: flex; }
  .nav-menu a {
    padding: 0.9rem var(--pad);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.75rem; letter-spacing: 0.1em;
  }
  .nav-menu a:last-child { border-bottom: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-cta { align-items: flex-start; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-meta { text-align: left; padding-right: 0; margin-bottom: 0.5rem; }
  .tl-item::after { left: 0; }
  .tl-body { padding-left: 1.25rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .formation-row { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-cell:nth-child(2) { border-right: none; }
  .contact-cell:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .contact-cell:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); border-right: none; }
}

@media (max-width: 540px) {
  .lat-grid { grid-template-columns: 1fr; }
  .lat-item { border-right: none; border-top: 1px solid var(--border); }
  .lat-item:first-child { border-top: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cell { border-right: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .contact-cell:first-child { border-top: none; }
  .hero-name { font-size: clamp(3.2rem, 15vw, 5rem); }
  .btn { display: block; text-align: center; }
}
