/* ==========================================================================
   LIAMM Consulting — styles
   Palette : Slate #2C3E6B · Coral #E8634A · Sky #EEF2FF · Night #1A2442
   Typography : Georgia (serif) for display, Inter/system for body
   ========================================================================== */

:root {
  --slate: #2C3E6B;
  --coral: #E8634A;
  --sky:   #EEF2FF;
  --night: #1A2442;
  --peach: #FFEEE9;
  --bg:    #FFFFFF;
  --text:  #1A2442;
  --muted: #5A6379;
  --line:  rgba(44, 62, 107, 0.12);
  --max:   1200px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(26,36,66,.04), 0 4px 12px rgba(26,36,66,.04);
  --shadow-md: 0 8px 24px rgba(26,36,66,.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--coral); }

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

/* ============== Typography ============== */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--slate); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-family: var(--sans); font-weight: 600; color: var(--night); }

p { margin-bottom: 1rem; color: var(--muted); }
p.lead { font-size: 1.15rem; color: var(--text); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ============== Buttons ============== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #d2553e; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--slate); color: var(--slate); transform: translateY(-1px); }
.btn-dark { background: var(--slate); color: #fff; }
.btn-dark:hover { background: var(--night); color: #fff; transform: translateY(-1px); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============== Navigation ============== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--night);
  position: relative;
}
.nav-links a:hover { color: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: transparent;
}
.lang-toggle button {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button:hover { color: var(--slate); }
.lang-toggle button.active {
  background: var(--slate);
  color: #fff;
}

/* Language visibility */
html[lang="fr"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="fr"] { display: none !important; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============== Hero ============== */

.hero {
  position: relative;
  padding: 90px 0 100px;
  background:
    radial-gradient(ellipse 1100px 500px at 80% -10%, var(--peach) 0%, transparent 60%),
    radial-gradient(ellipse 900px 500px at -10% 30%, var(--sky) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--coral); font-family: var(--serif); }
.hero-sub { font-size: 1.18rem; color: var(--muted); margin-bottom: 2.2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.hero-visual img { position: relative; z-index: 1; max-width: 520px; }

.hero-flags {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero-flags span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 880px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 360px; }
}

/* ============== Pillars ============== */

.pillars {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
}
.pillars-head { text-align: center; margin-bottom: 56px; }
.pillars-head p { max-width: 640px; margin: 0 auto; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.pillar { text-align: left; }
.pillar-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--coral);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.pillar h3 { margin-bottom: 10px; }

@media (max-width: 880px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============== Services ============== */

.services { padding: 110px 0; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head p { max-width: 620px; margin: 16px auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 99, 74, 0.3);
}
.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--peach);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 18px;
  align-self: flex-start;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 14px;
}
.service-card .pitch { font-style: italic; color: var(--slate); margin-bottom: 18px; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  flex: 1;
}
.service-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--coral);
}
.service-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.service-meta strong { color: var(--slate); font-weight: 600; }

@media (max-width: 880px) {
  .services { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ============== About ============== */

.about {
  padding: 110px 0;
  background:
    linear-gradient(180deg, #fafbfd 0%, #fff 100%);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  background: var(--slate);
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 70%;
  height: 70%;
  background: var(--peach);
  border-radius: 18px;
  z-index: -1;
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: auto auto -16px -16px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--coral);
  border-radius: 18px;
  z-index: -1;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-visual .photo-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(26, 36, 66, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-visual .photo-tag strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.about-visual .photo-tag span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

.about-content .kicker { margin-bottom: 1rem; }
.about-content h2 { margin-bottom: 1.4rem; }
.about-content p { font-size: 1.05rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.about-stats .stat-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--coral);
  display: block;
}
.about-stats .stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .about { padding: 70px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { padding: 40px 20px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .about-stats .stat-num { font-size: 1.6rem; }
}

/* ============== Process ============== */

.process { padding: 110px 0; background: var(--sky); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.step {
  background: #fff;
  border-radius: 14px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  position: relative;
}
.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 40px;
  height: 40px;
  background: var(--coral);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--slate);
  margin: 16px 0 10px;
}
.step p { font-size: 0.95rem; margin: 0; }

@media (max-width: 880px) {
  .process { padding: 70px 0; }
  .process-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============== Articles ============== */

.articles {
  padding: 110px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 99, 74, 0.3);
  color: inherit;
}
.article-card .article-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sky) 0%, var(--peach) 100%);
  overflow: hidden;
  position: relative;
}
.article-card .article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card .article-media::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 28px;
  height: 28px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.9;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 12h12M13 6l6 6-6 6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 12h12M13 6l6 6-6 6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
}
.article-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.article-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.article-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.article-excerpt {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

/* Skeleton + empty states */
.article-skeleton {
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(90deg, #f3f5fa 0%, #fafbfd 50%, #f3f5fa 100%);
  background-size: 200% 100%;
  border-radius: 16px;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.article-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 30px;
  background: #fafbfd;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}
.article-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--slate);
  font-weight: 400;
  margin-bottom: 10px;
}

.articles-cta { text-align: center; }

@media (max-width: 880px) {
  .articles { padding: 70px 0; }
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============== CTA ============== */

.cta {
  padding: 100px 0;
  background: var(--slate);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 100%, rgba(232,99,74,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 500px 250px at 90% 0%, rgba(232,99,74,0.10) 0%, transparent 70%);
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 760px; margin: 0 auto 1.4rem; }
.cta p { color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto 2.2rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: #fff; color: #fff; }

/* ============== Contact ============== */

.contact { padding: 110px 0; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.4rem; }
.contact-info .lead { margin-bottom: 2rem; }
.contact-meta {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact-meta-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.contact-meta-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-meta-item a, .contact-meta-item span { color: var(--slate); font-weight: 500; }

.contact-form {
  background: #fafbfd;
  padding: 40px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,99,74,0.12);
}
.contact-form button { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; text-align: center; }

@media (max-width: 880px) {
  .contact { padding: 70px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============== Footer ============== */

.footer {
  background: var(--night);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
  font-size: 0.9rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 320px; font-size: 0.92rem; }
.footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--coral); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== Reveal animation ============== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
