/* ============================================
   MRABTI DESIGN — Architecte
   Système de design : sobre, institutionnel, chaleureux
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&display=swap');

:root {
  --ink: #1a1a1a;
  --sand: #FAF8F4;
  --sand-deep: #F0ECE3;
  --terra: #8B7355;
  --terra-light: #B59B7A;
  --gold: #C9A227;
  --white: #FFFFFF;
  --line: rgba(26,26,26,0.12);

  --font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'Poppins', 'Segoe UI', Arial, sans-serif;

  --container: 1180px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}

p.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(26,26,26,0.78);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
  min-height: 64px;
  box-sizing: border-box;
}

.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; display: block; }

.main-nav { display: flex; gap: var(--space-4); align-items: center; }

.main-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--terra);
}

.nav-toggle { display: none; }

/* Espacement sous le header fixe pour les pages intérieures */
.page-top { padding-top: 120px; }
@media (max-width: 720px) {
  .page-top { padding-top: 96px; }
}

/* Décale le contenu sous le header fixe (sauf le hero plein écran qui gère son propre espacement) */
.site-header + main,
.site-header ~ .section:first-of-type { }

@media (max-width: 720px) {
  .logo img { height: 30px; }
  .main-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none; border: none;
    font-size: 26px; cursor: pointer;
    color: var(--ink);
    line-height: 1;
    padding: 4px 8px;
  }
}

/* ---------- Compass divider (signature element) ---------- */
.compass-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}
.compass-divider .line { height: 1px; flex: 1; max-width: 120px; background: var(--line); }
.compass-divider svg { width: 22px; height: 26px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--sand); }
.btn-solid {
  background: var(--ink); color: var(--sand); border-color: var(--ink);
}
.btn-solid:hover { background: var(--terra); border-color: var(--terra); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.25) 0%, rgba(26,26,26,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6) var(--space-3) var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  color: var(--sand);
}
.hero-content .eyebrow { color: var(--gold); margin-bottom: var(--space-2); display: block; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 880px;
  margin-bottom: var(--space-3);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  max-width: 620px;
  color: rgba(250,248,244,0.85);
  margin-bottom: var(--space-4);
}
.hero-meta {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  border-top: 1px solid rgba(250,248,244,0.25);
  padding-top: var(--space-3);
  margin-top: var(--space-4);
}
.hero-meta .stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
}
.hero-meta .stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.65);
}

@media (max-width: 640px) {
  .hero-content { padding-top: var(--space-5); }
  .hero-meta { gap: var(--space-3) var(--space-5); }
}

/* ---------- Section generic ---------- */
.section { padding: var(--space-7) 0; }
.section-sand-deep { background: var(--sand-deep); }
.section-ink { background: var(--ink); color: var(--sand); }
.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head--center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { display: block; margin-bottom: var(--space-2); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: var(--space-2); }
.section-head .eyebrow { display: block; }

/* ---------- About / intro section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: start;
}
.about-grid .portrait-frame {
  border: 1px solid var(--line);
  padding: var(--space-2);
}
.about-grid .portrait-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portrait-slider { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; }
.portrait-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.portrait-slider img.is-active { opacity: 1; }
.about-text p { margin-bottom: var(--space-3); color: rgba(26,26,26,0.85); }
.credentials {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}
.credentials dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 4px;
}
.credentials dd { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ---------- Domains list ---------- */
.domains-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

/* ---------- Domaines : grille de cartes ---------- */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.domain-card {
  background: var(--sand-deep);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.domain-card:hover { background: var(--sand); transform: translateY(-2px); }
.domain-card svg {
  width: 34px; height: 34px;
  color: var(--terra);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.domain-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
}
.domain-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(26,26,26,0.7);
}
.domain-card--accent {
  background: var(--ink);
}
.domain-card--accent h3 { color: var(--sand); }
.domain-card--accent p { color: rgba(250,248,244,0.72); }
.domain-card--accent svg { color: var(--gold); }
.domain-card--accent:hover { background: #262626; }
@media (max-width: 900px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .domains-grid { grid-template-columns: 1fr; }
}

/* ---------- Frise chronologique ---------- */
.timeline {
  list-style: none;
  position: relative;
  margin-left: 8px;
  padding-left: 36px;
  border-left: 1px solid rgba(250,248,244,0.22);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-5);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -42px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ink);
}
.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.timeline-year .dash { opacity: 0.6; margin: 0 1px; }
.timeline-body h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sand);
  margin-bottom: 8px;
}
.timeline-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(250,248,244,0.75);
  max-width: 620px;
}
@media (max-width: 560px) {
  .timeline { padding-left: 26px; margin-left: 4px; }
  .timeline-item::before { left: -32px; }
  .timeline-year { font-size: 1.3rem; }
}
.domains-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.domains-list li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: var(--space-3); }
.domains-list .num { font-size: 0.8rem; color: var(--terra); font-weight: 600; }

@media (max-width: 720px) {
  .domains-list { grid-template-columns: 1fr; }
  .domains-list li:nth-child(odd) { border-right: none; padding-right: 0; }
}

/* ---------- Clients strip ---------- */
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(250,248,244,0.18);
  border-bottom: 1px solid rgba(250,248,244,0.18);
  padding: var(--space-4) 0;
}
.clients-strip span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(250,248,244,0.75);
  white-space: nowrap;
}

/* ---------- Featured projects grid (homepage) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover img { transform: scale(1.05); }
.project-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.78) 100%);
}
.project-card .card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-3);
  color: var(--sand);
}
.project-card .card-cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px; display: block;
}
.project-card .card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }

@media (max-width: 880px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ---------- Projects index page ---------- */
.filter-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
}
.filter-bar button {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  color: rgba(26,26,26,0.5);
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}
.filter-bar button.active { color: var(--ink); }
.filter-bar button.active::after {
  content: ''; position: absolute; left: 0; bottom: -13px;
  width: 100%; height: 2px; background: var(--terra);
}

.projects-list { display: flex; flex-direction: column; }
.project-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}
.project-row:hover { background: rgba(139,115,85,0.06); }
.project-row .row-num { font-family: var(--font-mono); font-size: 13px; color: var(--terra); }
.project-row h3 { font-size: 1.4rem; margin-bottom: 4px; }
.project-row .row-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(26,26,26,0.55); }
.project-row .row-thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.project-row .row-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 780px) {
  .project-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .project-row .row-thumb { order: -1; }
}

/* ---------- Project detail page ---------- */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
}
.project-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.15) 0%, rgba(26,26,26,0.7) 100%);
}
.project-hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
  color: var(--sand);
  z-index: 2;
}
.project-hero-content .eyebrow { color: var(--gold); }
.project-hero-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: var(--space-2); }

.project-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-5);
}
.project-meta-bar dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 6px;
}
.project-meta-bar dd { font-family: var(--font-display); font-weight: 500; }

@media (max-width: 720px) {
  .project-meta-bar { grid-template-columns: 1fr 1fr; }
}

.project-description { max-width: 720px; margin-bottom: var(--space-6); }
.project-description p { color: rgba(26,26,26,0.82); margin-bottom: var(--space-2); }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.project-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-gallery .full { grid-column: 1 / -1; aspect-ratio: 16/9; }
.project-gallery .full img { aspect-ratio: 16/9; }

@media (max-width: 720px) {
  .project-gallery { grid-template-columns: 1fr; }
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  margin-top: var(--space-6);
}
.project-nav a { font-family: var(--font-display); font-weight: 500; }
.project-nav .dir-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 4px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.contact-info dl { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); margin-bottom: 6px; }
.contact-info dd { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.contact-info dd a:hover { color: var(--terra); }

.contact-map {
  display: flex;
  flex-direction: column;
}
.contact-map iframe {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid var(--line);
  filter: grayscale(0.3) contrast(1.05);
}
.contact-map .map-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terra);
}
.contact-map .map-link:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250,248,244,0.7);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(250,248,244,0.15);
  margin-bottom: var(--space-3);
}
.footer-cols { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-2);
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 6px; color: rgba(250,248,244,0.75); }
.footer-col a:hover { color: var(--sand); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  font-size: 0.8rem; color: rgba(250,248,244,0.45);
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,0.3); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@media (max-width: 600px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ---------- Page Expertise ---------- */
.expertise-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: var(--space-4);
}
.expertise-toc a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.expertise-toc a:hover {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
}

.expertise-block {
  scroll-margin-top: 90px; /* pour que l'ancre ne passe pas sous le header */
  padding: var(--space-6) 0;
}
.expertise-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-4);
  align-items: start;
  max-width: 900px;
}
.expertise-icon svg {
  width: 56px; height: 56px;
  color: var(--terra);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.expertise-icon--gold svg { color: var(--gold); }
.expertise-text .eyebrow { display: block; margin-bottom: 8px; }
.expertise-text h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.expertise-text p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(26,26,26,0.78);
  margin-bottom: var(--space-3);
}
.expertise-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.expertise-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(26,26,26,0.82);
}
.expertise-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  background: var(--terra);
  transform: rotate(45deg);
}
.expertise-cta {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--terra);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
}
.expertise-cta:hover { color: var(--ink); border-color: var(--ink); }

/* variante texte clair (section TV sur fond encre) */
.expertise-text--light h3 { color: var(--sand); }
.expertise-text--light p { color: rgba(250,248,244,0.78); }
.expertise-text--light .expertise-list li { color: rgba(250,248,244,0.82); }
.expertise-text--light .expertise-list li::before { background: var(--gold); }

@media (max-width: 640px) {
  .expertise-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .expertise-icon svg { width: 44px; height: 44px; }
}
.domain-card { cursor: pointer; text-decoration: none; color: inherit; }

/* ---------- Formulaire de contact ---------- */
.contact-form-wrap { margin-top: var(--space-6); max-width: 760px; }
.contact-form { margin-top: var(--space-4); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.form-field { display: flex; flex-direction: column; margin-bottom: var(--space-3); }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: var(--space-2); cursor: pointer; border: none; }
.hidden-field { display: none; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

.form-erreur {
  background: rgba(139,85,85,0.12);
  border: 1px solid rgba(139,85,85,0.4);
  color: #8B3a3a;
  padding: 14px 16px;
  border-radius: 3px;
  margin-top: var(--space-3);
  font-size: 0.95rem;
}

/* ---------- Section Presse (page projet) ---------- */
.press-section {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.press-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin: 8px 0 var(--space-3);
}
.press-section > p {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(26,26,26,0.78);
  margin-bottom: var(--space-4);
}
.press-clip {
  margin: 0;
  max-width: 480px;
}
.press-clip a {
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.press-clip a:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}
.press-clip img { width: 100%; display: block; }
.press-clip figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terra);
}
.press-clip figcaption span {
  color: rgba(26,26,26,0.45);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-style: italic;
}

#presse { scroll-margin-top: 90px; }
.timeline-link {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,162,39,0.5);
  white-space: nowrap;
}
.timeline-link:hover { border-color: var(--gold); }
