@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-variable.woff2') format('woff2');
}

:root {
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --grey-700: #4a4a4a;
  --grey-400: #8a8a8a;
  --grey-100: #f4f5f7;
  --grey-200: #e9eaee;
  --white: #ffffff;
  --blue: #2f5eff;
  --blue-dark: #1f45d6;
  --blue-tint: #eaf0ff;
  --radius: 14px;
  --max-width: 1160px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  padding-bottom: 68px;
}

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

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

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--grey-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-ghost:hover { background: var(--black); color: var(--white); }

.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo { height: 200px; width: auto; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.main-nav a:hover { color: var(--blue); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flag {
  display: inline-flex;
  line-height: 1;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--grey-200);
}
.flag svg { width: 28px; height: 19px; display: block; }
.flag-active { cursor: default; }
.flag-disabled {
  opacity: 0.35;
  filter: grayscale(55%);
  cursor: not-allowed;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--white) 0%, var(--grey-100) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 40px;
}

.profile-selector .profile-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-400);
  margin-bottom: 12px;
}

.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-media img {
  border-radius: var(--radius);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section-eyebrow {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 62ch;
}

/* À propos */
.apropos { background: var(--white); }

.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.value-card {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 28px;
}

.value-num {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.value-card p { margin-bottom: 0; }

/* Services */
.services { background: var(--grey-100); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.service-illustration {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
}

.service-body { padding: 24px 28px 28px; }

.service-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Créations */
.creations { background: var(--white); }

.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 40px;
}

.resource-list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resource-block h3 {
  border-bottom: 2px solid var(--black);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--grey-100);
  border-radius: 10px;
}

.resource-cover {
  width: 46px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(13, 13, 13, 0.18);
  flex-shrink: 0;
}

.resource-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.resource-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.resource-lang {
  font-weight: 500;
  font-style: italic;
  color: var(--grey-400);
}

.resource-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.resource-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--grey-400);
  font-style: italic;
}

.project-card {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 32px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.roamdesk-logo {
  width: 110px;
  height: 110px;
  background: var(--black);
  border-radius: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.rd-roam { color: #B8751A; }
.rd-desk { color: #6B7B5E; }

.project-badge {
  display: inline-block;
  background: #fdf1e0;
  color: #a6620c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.project-tagline {
  font-weight: 600;
  font-style: italic;
  margin-bottom: 14px;
}
.tag-quote { color: var(--black); }
.tag-orange { color: #B8751A; }
.tag-kaki { color: #6B7B5E; }

.project-desc {
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 14px;
}

/* Newsletter */
.newsletter {
  background: var(--black);
  color: var(--white);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter h2 { color: var(--white); }

.section-lead-on-dark { color: #b7b7b7; }
.section-eyebrow-on-dark { color: #6f93ff; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-row {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
}

.newsletter-row input { flex: 1; }

.newsletter-form input:focus { outline: 2px solid var(--blue); }

.newsletter-form button { align-self: flex-start; margin-top: 4px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact */
.contact { background: var(--grey-100); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
}
.contact-email:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form button { align-self: flex-start; margin-top: 4px; }

/* Footer */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--black);
  padding: 14px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #cfcfcf;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-icon svg { width: 17px; height: 17px; }
.social-icon:hover { background: var(--blue); color: var(--white); }
.social-icon--todo { opacity: 0.45; }
.social-icon--todo:hover { background: transparent; color: #cfcfcf; }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #9a9a9a;
  white-space: nowrap;
}
.footer-sep { color: #55555a; }

.footer-legal-link {
  font-family: inherit;
  font-size: inherit;
  color: #9a9a9a;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer-legal-link:hover { color: var(--white); }

/* ---------- Legal modal ---------- */
.legal-modal {
  border: none;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
  width: calc(100% - 48px);
  max-height: 80vh;
  overflow-y: auto;
  color: var(--ink);
}
.legal-modal::backdrop {
  background: rgba(13, 13, 13, 0.6);
}
.legal-modal h2 { margin-bottom: 20px; }
.legal-modal h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-modal p, .legal-modal li {
  font-size: 0.92rem;
  line-height: 1.6;
}
.legal-modal ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-modal a { color: var(--blue); }

.legal-close {
  position: sticky;
  top: 0;
  left: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--grey-100);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: -32px;
}
.legal-close:hover { background: var(--grey-200); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .value-props { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .resource-list--grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .brand-logo { height: 120px; }
  body { padding-bottom: 96px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .brand-logo { height: 80px; }
  .social-icon { width: 30px; height: 30px; }
  .social-icon svg { width: 15px; height: 15px; }
  .newsletter-row { flex-direction: column; }
}
