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

:root {
  --bg: #F7F5F0;
  --ink: #1A1714;
  --ink-muted: #7A756E;
  --accent: #00d4c0;
  --accent-dark: #009e92;
  --border: #E2DDD6;
  --surface: #ECEAE4;
  --mono: 'DM Mono', 'Courier New', monospace;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html, body { min-height: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(0, 212, 192, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 192, 0.08);
  box-shadow: 0 4px 30px rgba(0,212,192,0.03);
}

.header-left { display: flex; align-items: center; gap: 0.5rem; }
.logo-img { width: 28px; height: 28px; object-fit: contain; display: block; }

.logo-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-domain {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.header-nav { display: flex; gap: 1.8rem; margin-left: auto; }

.header-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--ink); }

.header-back {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: color 0.2s, border-color 0.2s;
}

.header-back:hover { color: var(--accent-dark); border-color: var(--accent); }

/* ── Main ── */
main { position: relative; z-index: 1; flex: 1; }

/* ── Hero ── */
.hero {
  padding: 7rem 3rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem 4rem;
  align-items: end;
  animation: fadeUp 0.8s ease both;
}

.hero-label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-dark);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 em { font-style: italic; color: var(--accent-dark); }

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 38ch;
}

.hero-line {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin-top: 2rem;
}

/* ── Bouton & Badge ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.6rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 99px;
  width: fit-content;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,158,146,0.25);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(0, 212, 192, 0.08);
  border: 1px solid rgba(0, 212, 192, 0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  width: fit-content;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Section label ── */
.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

/* ── Expertise (4 cartes) ── */
.expertise {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeUp 0.8s 0.15s ease both;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.expertise-card {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.2s;
}

.expertise-card:nth-child(1) { border-radius: 15px 0 0 0; }
.expertise-card:nth-child(2) { border-radius: 0 15px 0 0; }
.expertise-card:nth-child(3) { border-radius: 0 0 0 15px; }
.expertise-card:nth-child(4) { border-radius: 0 0 15px 0; }
.expertise-card:hover { background: var(--surface); }

.expertise-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
}

.expertise-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.expertise-card p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ── Principes ── */
.principes {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.principes-header .section-label { margin-bottom: 1rem; }

.principes-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.principes-header h2 em { font-style: italic; color: var(--accent-dark); }

.principes-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.principe-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.principe-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.principe-item h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.principe-item p {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ── Notification (Remplace Contact) ── */
.notify-section {
  padding: 7rem 3rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.notify-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.notify-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.notify-inner h2 em { font-style: italic; color: var(--accent-dark); }

.notify-inner p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 40ch;
  line-height: 1.7;
}

.notify-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-input {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  padding: 0.75rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-input::placeholder { color: var(--ink-muted); opacity: 0.7; }
.notify-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 212, 192, 0.1); }

.notify-success {
  display: none;
  font-size: 0.88rem;
  color: var(--accent-dark);
  font-weight: 500;
}

.notify-hint { font-size: 0.8rem; color: var(--ink-muted); }
.notify-hint a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.notify-hint a:hover { color: var(--accent-dark); }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-bottom {
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo { width: 24px; height: 24px; object-fit: contain; }
.footer-tagline { font-size: 0.75rem; font-style: italic; color: var(--ink-muted); font-family: var(--serif); }
.footer-copy { font-size: 0.73rem; color: var(--ink-muted); margin-left: auto; }
.footer-legal { font-size: 0.73rem; color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal:hover { color: var(--ink); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  header { padding: 1.2rem 1.5rem; gap: 1rem; justify-content: space-between; }
  .header-nav { display: none; }
  .hero { padding: 4rem 1.5rem 3rem; grid-template-columns: 1fr; }
  .expertise { padding: 3rem 1.5rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card:nth-child(1) { border-radius: 15px 15px 0 0; }
  .expertise-card:nth-child(2) { border-radius: 0; }
  .expertise-card:nth-child(3) { border-radius: 0; }
  .expertise-card:nth-child(4) { border-radius: 0 0 15px 15px; }
  .principes { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
  .notify-section { padding: 4rem 1.5rem; }
  footer { padding: 0.4rem 1.5rem;}
  .footer-bottom { justify-content: center; gap: 1rem; padding: 1.4rem 2rem; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .notify-form { flex-direction: column; gap: 0.8rem; align-items: center; }
}