/* ============================================
   CORALIEDELPHA.FR — STYLESHEET
   ============================================ */

/* ---- Variables --------------------------------- */
:root {
  --bg:          #FAF6EF;
  --surface:     #FFFFFF;
  --accent:      #FE8F51;
  --accent-dark: #E47638;
  --text:        #1a1a1a;
  --text-muted:  rgba(0, 0, 0, 0.55);
  --border:      rgba(0, 0, 0, 0.08);
  --radius:      12px;
  --radius-sm:   8px;
}

/* ---- Reset ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Base -------------------------------------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

/* ---- Layout ------------------------------------ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav --------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }
.nav__links .btn--primary { color: #fff; }

/* ---- Buttons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
  line-height: 1;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, 0.2);
}
.btn--outline:hover { border-color: rgba(0, 0, 0, 0.35); }

/* ---- Hero -------------------------------------- */
.hero {
  padding: 88px 0 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 56px;
}
.hero__photo-img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 3px solid var(--border);
}
.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  color: var(--text);
  margin-bottom: 20px;
  max-width: 680px;
  line-height: 1.1;
}
.hero__body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Section shared ---------------------------- */
.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--surface);
}
.section__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 40px;
}
.section__footer {
  margin-top: 36px;
  text-align: center;
}

/* ---- Services ---------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.service-card {
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.service-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Project cards ----------------------------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 800px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .projects__grid { grid-template-columns: 1fr; }
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(254, 143, 81, 0.12);
}
.project-card__image {
  width: 100%;
}
.project-card__image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.project-card__content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.project-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 2px;
}
.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.55;
}
.project-card__date {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.28);
}

/* ---- Blog cards (homepage preview) ------------- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.blog-card__image {
  width: 100%;
}
.blog-card__image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card__content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.blog-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
.blog-card__read { display: none; }

/* ---- Interview cards --------------------------- */
.interviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 18px;
}
.interview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.interview-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.interview-card__thumb {
  width: 100%;
  display: block;
  background: #e8e4dc;
}
.interview-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.interview-card__channel {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.interview-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}
.interview-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Footer ------------------------------------ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 22px;
  list-style: none;
}
.footer__links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--text); }

/* ---- Blog listing page ------------------------- */
.blog-listing {
  padding: 64px 0 80px;
}
.blog-listing__header {
  margin-bottom: 48px;
}
.blog-listing__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.blog-listing__back:hover { color: var(--text); }
.blog-listing__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}
.blog-listing__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}
.blog-listing__list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-listing__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.blog-listing__item:last-child { border-bottom: none; }
.blog-listing__item:hover { background: #f5f0e8; }
.blog-listing__item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}
.blog-listing__item-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.blog-listing__item-meta {
  text-align: right;
  flex-shrink: 0;
}
.blog-listing__item-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Blog article ------------------------------ */
.article {
  padding: 56px 0 88px;
}
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s;
}
.article__back:hover { color: var(--text); }

.article__header {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.article__date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article__title {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.article__byline {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.article__byline a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.article__body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2a2a2a;
}
.article__body p { margin-bottom: 1.5em; }
.article__body h2 {
  font-size: 1.5rem;
  margin: 2.25em 0 0.75em;
}
.article__body h3 {
  font-size: 1.2rem;
  margin: 1.75em 0 0.6em;
}
.article__body ul,
.article__body ol {
  margin: 0 0 1.5em 1.5em;
}
.article__body li { margin-bottom: 0.5em; }
.article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article__body strong { font-weight: 700; }
.article__body pre,
.article__body code {
  font-family: 'Fira Code', 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}
.article__body code {
  font-size: 0.875em;
  padding: 2px 6px;
}
.article__body pre {
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 1.5em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.article__body pre code {
  background: none;
  padding: 0;
  font-size: 0.9em;
}

.article__image {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article__image img {
  width: 100%;
  display: block;
}

.article__cta {
  margin-top: 52px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article__cta-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.article__cta-text strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 4px;
}

/* ---- 404 --------------------------------------- */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.not-found__code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found__title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.not-found__body {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ---- Responsive -------------------------------- */
@media (max-width: 640px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .hero__photo-img { width: 100px; height: 100px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .nav__links { gap: 16px; }
  .blog-listing__item {
    grid-template-columns: 1fr;
  }
  .blog-listing__item-meta { text-align: left; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
  .article { padding: 40px 0 56px; }
  .article__cta { flex-direction: column; }
  .projects__grid,
  .blog__grid,
  .interviews__grid,
  .services__grid { gap: 28px; }
}
