/* ═══════════════════════════════════════════════════════════ */
/* GENERAL RESET & VARIABLES                                   */
/* ═══════════════════════════════════════════════════════════ */

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

/* Root Variables */
:root {
  --bg: #F7F5F0;
  --ink: #1A1714;
  --ink-muted: #7A756E;
  --accent: #00d4c0;
  --accent-dark: #009e92;
  --border: #E2DDD6;
  --surface: #ECEAE4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════ */
/* BASE STYLES                                                  */
/* ═══════════════════════════════════════════════════════════ */

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

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

/* ═══════════════════════════════════════════════════════════ */
/* HEADER SECTION                                               */
/* ═══════════════════════════════════════════════════════════ */

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(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  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 CONTENT                                                 */
/* ═══════════════════════════════════════════════════════════ */

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════ */
/* HERO SECTION                                                 */
/* ═══════════════════════════════════════════════════════════ */

.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-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  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;
}

/* ═══════════════════════════════════════════════════════════ */
/* BUTTON & BADGE STYLES                                       */
/* ═══════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  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-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-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════ */
/* APPROCHE SECTION                                             */
/* ═══════════════════════════════════════════════════════════ */

.approche {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeUp 0.8s 0.15s ease both;
}

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

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

.approche-card:first-child {
  border-radius: 15px 0 0 15px;
}

.approche-card:last-child {
  border-radius: 0 15px 15px 0;
}

.approche-card:hover {
  background: var(--surface);
}

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

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

/* ═══════════════════════════════════════════════════════════ */
/* PROJECTS SECTION                                             */
/* ═══════════════════════════════════════════════════════════ */

.projets {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  animation: fadeUp 0.8s 0.25s ease both;
}

.projets-intro .section-label {
  margin-bottom: 1rem;
}

.projets-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

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

.projets-intro p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
}

.projets-types {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.type-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s, padding-left 0.2s;
}

.type-item:first-child {
  border-top: 1px solid var(--border);
}

.type-item:hover {
  color: var(--accent-dark);
  padding-left: 0.5rem;
}

.type-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════ */
/* NOTIFY SECTION                                               */
/* ═══════════════════════════════════════════════════════════ */

.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: 300;
  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 SECTION                                               */
/* ═══════════════════════════════════════════════════════════ */

footer {
  position: relative;
  z-index: 1;
  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 pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

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

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN                                            */
/* ═══════════════════════════════════════════════════════════ */

@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;
  }

  .approche {
    padding: 3rem 1.5rem;
  }

  .approche-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projets {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }

  .notify-section {
    padding: 4rem 1.5rem;
  }

  footer {
    padding: 0.4rem 1.5rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .footer-bottom {
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem 2rem;
  }

  .footer-copy {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .approche-grid {
    grid-template-columns: 1fr;
  }

  .notify-form {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
}
