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

:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f0ece6;
  --color-bg-dark: #141414;
  --color-text: #1a1a1a;
  --color-text-light: #5a5550;
  --color-text-inv: #faf9f7;
  --color-accent: #2b5a4b;
  --color-accent-light: #377a63;
  --color-accent-bg: #e4ede8;
  --color-warm: #c17f4a;
  --color-warm-light: #d4965f;
  --color-warm-bg: #faf0e6;
  --color-border: #ddd8d0;
  --color-border-light: #e8e4dc;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --max-width: 980px;
  --radius: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* ===== NOISE TEXTURE ===== */
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
}

.section-alt {
  position: relative;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inv);
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a.btn {
  color: var(--color-text-inv);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: var(--color-text-inv);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(43, 90, 75, 0.2);
}

.btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(43, 90, 75, 0.25);
}

.btn svg {
  transition: transform 0.25s;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  box-shadow: none;
}

.btn-ghost {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 0.85rem 0;
  transition: color 0.25s;
  border-bottom: 1px solid var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ===== HERO ===== */
.hero {
  padding: 7rem 0 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--color-accent-bg) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, var(--color-warm-bg) 0%, transparent 60%),
    var(--color-bg);
  overflow: hidden;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text {
  text-align: center;
  max-width: 700px;
  padding-bottom: 4rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-warm);
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--color-warm);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-visual {
  width: 100%;
  max-width: 720px;
  margin: 0.5rem auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===== SECTION HEADINGS ===== */
h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== GRIDS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.section-alt .card {
  background: #fff;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ===== PROBLEM SECTION — ASYMMETRIC ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.card-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inv);
  border-color: transparent;
}

.card-dark h3 {
  color: var(--color-text-inv);
}

.card-dark p {
  color: rgba(250, 249, 247, 0.7);
}

.card-accent {
  background: var(--color-accent);
  color: var(--color-text-inv);
  border-color: transparent;
}

.card-accent h3 {
  color: var(--color-text-inv);
}

.card-accent p {
  color: rgba(250, 249, 247, 0.75);
}

.card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.card-dark .card-label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-warm-light);
}

.card-accent .card-label {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-warm-bg);
}

/* ===== REALISATION CARDS ===== */
.realisation-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--color-border-light);
}

.realisation-card .card-body {
  padding: 1.75rem 2rem 0.75rem;
  flex: 1;
}

.realisation-card .card-screenshot {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  cursor: pointer;
  height: 210px;
}

.realisation-card .card-screenshot::after {
  content: 'Agrandir';
  position: absolute;
  inset: 0;
  background: rgba(43, 90, 75, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.realisation-card .card-screenshot:hover::after {
  opacity: 1;
}

.realisation-card .card-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.realisation-card .card-screenshot:hover img {
  transform: scale(1.03);
}

/* ===== ROI TAG ===== */
.card-roi {
  margin-top: auto;
  padding: 1rem 2rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.85rem;
  color: var(--color-text-light);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.5;
}

.roi-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  background: var(--color-warm);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 4px rgba(193, 127, 74, 0.3);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(4px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ===== PHASES ===== */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.phases::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: calc(12.5% + 1.25rem);
  right: calc(12.5% + 1.25rem);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0,
    var(--color-accent) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.25;
  z-index: 0;
}

.phase {
  text-align: center;
  position: relative;
  z-index: 1;
}

.phase-num {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  background: var(--color-accent);
  color: var(--color-text-inv);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 8px rgba(43, 90, 75, 0.25);
}

.phase-icon {
  display: block;
  margin: 0 auto 0.5rem;
  color: var(--color-accent);
}

.phase h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.phase p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--color-accent);
}

.pricing-tier {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.pricing-card h3 {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.pricing-card-featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 4px 16px rgba(43, 90, 75, 0.1);
}

.pricing-card-featured .pricing-tier {
  color: var(--color-text-inv);
  background: var(--color-accent);
  padding: 0.25rem 0.9rem;
  border-radius: 6px;
  font-size: 1rem;
}

.pricing-duration {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-warm);
  margin-top: auto;
  padding-top: 1rem;
}

.tarif-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ===== RESULTATS CHIFFRES ===== */
.resultats-chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.resultats-chiffres::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-warm));
}

.chiffre {
  text-align: center;
  color: rgba(250, 249, 247, 0.6);
  font-size: 0.85rem;
}

.chiffre strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-inv);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.chiffre span {
  font-size: 0.8rem;
}

.realisations-note {
  margin-top: 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-light);
  font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item summary::before {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-warm);
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.faq-item[open] summary::before {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.75rem;
  padding-left: 2.25rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.faq-item p + p {
  margin-top: 0.5rem;
}

/* ===== ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 240px;
  height: 290px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.about-photo-accent {
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 2px solid var(--color-warm);
  border-radius: var(--radius-lg);
  opacity: 0.4;
  z-index: 0;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.about-content a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.about-content a:hover {
  border-bottom-color: var(--color-accent);
}

/* ===== CONTACT ===== */
.contact-container {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.contact-container h2 {
  color: var(--color-text-inv);
  font-size: 2.5rem;
}

.contact-container p {
  color: rgba(250, 249, 247, 0.55);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-brand .nav-logo {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-light);
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    border-top: 1px solid var(--color-border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 6rem 0 0;
  }

  .hero-text {
    padding-bottom: 3rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .resultats-chiffres {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .phases {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .phases::before {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-content {
    text-align: left;
  }

  .about-photo-accent {
    right: -8px;
    bottom: -8px;
    top: 8px;
    left: 8px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-container h2 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

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

  .hero h1 {
    font-size: 1.85rem;
  }

  .resultats-chiffres {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-photo img {
    width: 200px;
    height: 240px;
  }

  .card-roi {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
