/* ═══════════════════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════════════════ */
:root {
  --bg:             #FAFAF8;
  --bg-sidebar:     #1B2D4F;
  --sidebar-text:        rgba(255, 255, 255, 0.9);
  --sidebar-text-soft:   rgba(255, 255, 255, 0.4);
  --sidebar-border:      rgba(255, 255, 255, 0.1);
  --text:           #1A1A1A;
  --text-mid:       #52525B;
  --text-soft:      #A1A1AA;
  --accent:         #1B2D4F;
  --accent-dim:     #EEF1F6;
  --border:         #E4E4E7;
  --white:          #FFFFFF;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --sidebar-w: 300px;
  --content-pad: 88px;
}

/* ═══════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT SPLIT
═══════════════════════════════════════════════════════════ */
.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   CONTENU — GAUCHE
═══════════════════════════════════════════════════════════ */
.content {
  padding-left: var(--content-pad);
  padding-right: 64px;
  max-width: 860px;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS — BASE
═══════════════════════════════════════════════════════════ */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}

.section--contact {
  border-bottom: none;
}

.section__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.section__text {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 52px;
}

/* ═══════════════════════════════════════════════════════════
   BOUTON
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #132038;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE PROJET
═══════════════════════════════════════════════════════════ */
.project-image {
  margin-bottom: 44px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.case-study:hover .project-image {
  box-shadow: 0 16px 48px rgba(27, 45, 79, 0.08);
}

.case-study:hover .project-image img {
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════
   ÉTUDES DE CAS
═══════════════════════════════════════════════════════════ */
.case-study {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.case-study:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-study__number {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 10px;
}

.case-study__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.case-study__blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
}

.case-block__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.6;
  padding-top: 2px;
}

.case-block__text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES & STACK
═══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.services-col__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.services-list li {
  font-size: 1rem;
  color: var(--text);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.25s;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 460px;
  margin-top: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.form-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: var(--border);
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-textarea {
  min-height: 96px;
  resize: none;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.form-success {
  font-size: 0.875rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.form-success.visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding: 44px 0 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.78rem;
  color: var(--text-soft);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — DROITE, STICKY
═══════════════════════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 56px 44px;
  border-left: none;
  background: var(--bg-sidebar);
}

/* Marque */
.sidebar__brand {
  margin-bottom: auto;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sidebar-text);
  margin-bottom: 6px;
  transition: opacity 0.2s;
}

.sidebar__logo:hover {
  opacity: 0.75;
}

.logo-mark {
  width: 38px;
  height: 28.5px;
  flex-shrink: 0;
  color: var(--sidebar-text);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sidebar-text);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sidebar-text-soft);
  margin-top: 4px;
}

.sidebar__tagline {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sidebar-text-soft);
}

/* Navigation */
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 48px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  color: var(--sidebar-text-soft);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.25s;
}

.nav-link__line {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  transition: width 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sidebar-text);
}

.nav-link.active .nav-link__line {
  width: 38px;
}

/* Bas de sidebar */
.sidebar__bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar__socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-link {
  font-size: 0.78rem;
  color: var(--sidebar-text-soft);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--sidebar-text);
}

.sidebar__availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--sidebar-text-soft);
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE / LAPTOP COMPACT
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 240px;
    --content-pad: 56px;
  }

  .sidebar {
    padding: 48px 28px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .content {
    padding-left: 28px;
    padding-right: 28px;
    grid-row: 2;
    max-width: 100%;
  }

  .sidebar {
    grid-row: 1;
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar__brand {
    margin-bottom: 0;
  }

  .sidebar__tagline { display: none; }

  .sidebar__nav {
    flex-direction: row;
    gap: 0;
    margin-bottom: 0;
  }

  .nav-link {
    padding: 8px 12px;
    gap: 8px;
  }

  .nav-link__line { display: none; }

  .sidebar__bottom { display: none; }

  .section { padding: 80px 0; }

  .section--hero { min-height: auto; padding-top: 72px; }

  .case-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sidebar {
    padding: 14px 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section--hero {
    padding-top: 44px;
  }

  .logo-wordmark {
    display: none;
  }

  .nav-link {
    padding: 8px 6px;
    font-size: 0.8rem;
  }
}
