/*
Theme Name: Lionel de Souza
Theme URI: https://lioneldesouza.com
Author: Lionel de Souza
Author URI: https://lioneldesouza.com
Description: Thème portfolio personnel de Lionel de Souza — Content Strategist & Editorial Lead spécialisé dans les industries créatives africaines.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lionel-desouza
Tags: portfolio, one-page, editorial, africa, minimal
*/

:root {
  --blue:      #102f93;
  --blue-dark: #0c2578;
  --dark:      #111111;
  --gray:      #555555;
  --gray-lt:   #888888;
  --gray-bg:   #F5F5F3;
  --white:     #FFFFFF;
  --border:    #E5E5E5;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

/* ══ NAV ══ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--dark); }
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 3px;
  transition: background 0.2s !important;
  text-decoration: none;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* ══ HERO ══ */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
  max-height: 820px;
  border-bottom: 1px solid var(--border);
}
.hero-left {
  padding: 5rem 4rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  border-right: 1px solid var(--border);
}
.hero-greeting {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-lt);
  letter-spacing: 0.04em;
}
.hero-heading {
  font-family: var(--sans);
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  max-width: 440px;
}
.hero-sub a { color: var(--blue); font-weight: 500; }
.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.hero-form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-lt);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-form-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  max-width: 380px;
}
.hero-form-row input {
  flex: 1;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 13px;
  border: none;
  outline: none;
  color: var(--dark);
  background: var(--white);
}
.hero-form-row input::placeholder { color: var(--gray-lt); }
.hero-form-row button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-form-row button:hover { background: var(--blue-dark); }
.hero-form-note { font-size: 11px; color: var(--gray-lt); }
.hero-right { overflow: hidden; position: relative; }
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ══ SERVICES ══ */
#services {
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  border-bottom: 1px solid var(--border);
}
.services-heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.services-heading em { font-style: italic; color: var(--blue); }
.services-intro {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 400px;
}
.link-blue {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
  text-decoration: none;
}
.link-blue:hover { gap: 8px; color: var(--blue); }
.services-note { margin-top: 1rem; font-size: 13px; color: var(--gray); }
.services-note a { color: var(--dark); font-weight: 500; border-bottom: 1px solid var(--border); }
.services-note a:hover { border-color: var(--dark); }
.services-right { display: flex; flex-direction: column; }
.service-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-num {
  width: 32px; height: 32px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.service-name { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 0.4rem; }
.service-desc { font-size: 13px; color: var(--gray); line-height: 1.75; }

/* ══ WORK ══ */
#work {
  background: var(--blue);
  padding: 5rem 3rem;
}
.work-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.work-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.work-sub { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; }
.work-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.2s;
}
.work-card:hover { background: rgba(255,255,255,0.1); }
.work-card-img { height: 200px; overflow: hidden; }
.work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: grayscale(20%) brightness(0.9);
}
.work-card:hover .work-card-img img { transform: scale(1.04); }
.work-card-body { padding: 1.5rem; }
.work-card-title {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.work-card-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 1rem; }
.work-card-link {
  font-size: 12px; font-weight: 500;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: all 0.2s;
  text-decoration: none;
}
.work-card-link:hover { border-color: white; gap: 8px; color: white; }
.work-note {
  margin-top: 2.5rem;
  font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; max-width: 680px;
}
.work-note strong { color: var(--white); font-weight: 500; }
.work-note a { color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.3); }
.work-note a:hover { border-color: white; color: white; }

/* ══ PROJECTS ══ */
#projects { padding: 6rem 3rem; border-bottom: 1px solid var(--border); }
.projects-header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3rem;
}
.projects-heading {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700; color: var(--dark); line-height: 1.1;
}
.proj-row {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3rem; padding: 2.5rem 0;
  border-bottom: 1px solid var(--border); align-items: center;
}
.proj-row:first-child { border-top: 1px solid var(--border); }
.proj-row-img { height: 180px; overflow: hidden; border-radius: 3px; }
.proj-row-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.proj-row:hover .proj-row-img img { transform: scale(1.04); }
.proj-row-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.4rem;
}
.proj-row-title {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--dark); margin-bottom: 0.75rem; line-height: 1.15;
}
.proj-row-desc { font-size: 13px; color: var(--gray); line-height: 1.75; margin-bottom: 1.25rem; max-width: 500px; }
.proj-row-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.proj-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-lt);
  padding: 3px 9px; border: 1px solid var(--border); border-radius: 2px;
}

/* ══ NEWSLETTER ══ */
#newsletter { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.nl-left {
  padding: 5rem 3rem; background: var(--gray-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
}
.nl-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700; font-style: italic;
  color: var(--blue); line-height: 1.1;
}
.nl-sub { font-size: 14px; color: var(--gray); line-height: 1.8; max-width: 380px; }
.nl-form {
  display: flex; border: 1px solid var(--border); border-radius: 3px;
  overflow: hidden; max-width: 380px; background: var(--white);
}
.nl-form input {
  flex: 1; padding: 12px 16px; font-family: var(--sans); font-size: 13px;
  border: none; outline: none; color: var(--dark); background: transparent;
}
.nl-form input::placeholder { color: var(--gray-lt); }
.nl-form button {
  background: var(--blue); color: var(--white); border: none;
  padding: 12px 20px; font-family: var(--sans); font-size: 12px;
  font-weight: 500; cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.nl-form button:hover { background: var(--blue-dark); }
.nl-note { font-size: 11px; color: var(--gray-lt); }
.nl-right { overflow: hidden; }
.nl-right img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

/* ══ ARTICLES ══ */
#articles { padding: 6rem 3rem; }
.articles-header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.5rem;
}
.articles-heading {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; color: var(--dark);
}
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.article-card { display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; }
.article-card-img { height: 180px; overflow: hidden; border-radius: 3px; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
}
.article-title {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  color: var(--dark); line-height: 1.3; transition: color 0.2s;
}
.article-card:hover .article-title { color: var(--blue); }

/* ══ FOOTER ══ */
#site-footer {
  background: var(--dark); padding: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.foot-copy { font-size: 12px; color: rgba(255,255,255,0.4); }
.foot-copy a { color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.2); }
.foot-nav { display: flex; gap: 2rem; list-style: none; }
.foot-nav a { font-size: 12px; color: rgba(255,255,255,0.55); transition: color 0.2s; text-decoration: none; }
.foot-nav a:hover { color: white; }

/* ══ REVEAL ══ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; max-height: none; }
  .hero-right { height: 60vw; }
  #services { grid-template-columns: 1fr; gap: 3rem; }
  .work-header-inner { grid-template-columns: 1fr; gap: 1rem; }
  .work-cards { grid-template-columns: 1fr 1fr; }
  #newsletter { grid-template-columns: 1fr; }
  .nl-right { display: none; }
  .proj-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .proj-row-img { height: 220px; }
  #site-header { padding: 0 1.5rem; }
  #services, #work, #projects, #articles { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nl-left { padding-left: 1.5rem; padding-right: 1.5rem; }
  #site-footer { padding: 2rem 1.5rem; }
}
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero-left { padding: 3rem 1.5rem; }
  .work-cards { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .projects-header, .articles-header { flex-direction: column; gap: 0.75rem; }
}
