:root {
  --wisedev-coral: #ff7848;
  --wisedev-coral-deep: #e06336;
  --wisedev-earth: #c57254;
  --wisedev-graphite: #1f2933;
  --wisedev-slate: #52606d;
  --wisedev-cream: #fff8ee;
  --wisedev-paper: #ffffff;
  --wisedev-border: #e6ded6;
  --wisedev-highlight: #ffffa4;
  --shadow-soft: 0 10px 30px rgba(31, 41, 51, 0.12);
  --shadow-card: 0 6px 18px rgba(31, 41, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--wisedev-graphite);
  background:
    radial-gradient(circle at 10% -2%, rgba(255, 120, 72, 0.2), transparent 32%),
    radial-gradient(circle at 95% 12%, rgba(197, 114, 84, 0.16), transparent 34%),
    linear-gradient(180deg, #fff8ef 0%, #fff 44%, #fff4e8 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--wisedev-border);
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.07);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: auto;
  height: 54px;
  max-width: 170px;
  object-fit: contain;
}

.brand span {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.menu-toggle {
  border: 1px solid var(--wisedev-border);
  background: var(--wisedev-paper);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  display: none;
  cursor: pointer;
}

.menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.menu a {
  color: var(--wisedev-graphite);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover {
  color: var(--wisedev-coral);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 7rem 0 5.2rem;
  color: #f9fafc;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(17, 24, 39, 0.88) 0%, rgba(31, 41, 51, 0.71) 50%, rgba(197, 114, 84, 0.56) 100%),
    url("assets/images/hero-background.jpg") center / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  z-index: -1;
}

.hero-copy {
  max-width: 640px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 1.6rem;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.18;
}

h1 {
  margin: 0.9rem 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-trust {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-trust span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.84rem;
  padding: 0.3rem 0.65rem;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--wisedev-coral);
  color: #fff;
  box-shadow: 0 10px 25px rgba(224, 99, 54, 0.35);
}

.btn-primary:hover {
  background: var(--wisedev-coral-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.hero-kicker {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.hero-points {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-points li {
  margin: 0.5rem 0;
}

.hero-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-metrics article {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.55rem;
  text-align: center;
}

.hero-metrics strong {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.hero-metrics span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

section {
  padding: 1.2rem 0 2.3rem;
}

#services {
  margin-top: 1rem;
}

.section-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.section-subtitle {
  color: var(--wisedev-slate);
  margin-top: 0;
  margin-bottom: 1.3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--wisedev-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(31, 41, 51, 0.14);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.07rem;
}

.card p {
  margin: 0;
  color: #44515f;
}

.methods {
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.step {
  position: relative;
  background: var(--wisedev-paper);
  border: 1px solid var(--wisedev-border);
  border-radius: 14px;
  padding: 1rem 1rem 1rem 3.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--wisedev-earth);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlight {
  background: linear-gradient(145deg, #fff4ea, #ffffff);
  border: 1px solid var(--wisedev-border);
  border-left: 4px solid var(--wisedev-coral);
  border-radius: 14px;
  padding: 1.05rem;
}

.cta {
  margin: 2.2rem 0 3rem;
  padding: 1.6rem;
  border-radius: 18px;
  background: linear-gradient(130deg, #ef6a3a, #b65f40);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cta h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--wisedev-border);
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.92);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-wrap a {
  color: var(--wisedev-graphite);
  text-decoration: none;
  font-weight: 600;
}

.footer-wrap a:hover {
  color: var(--wisedev-coral);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  padding: 3.5rem 0;
}

.legal-card {
  background: var(--wisedev-paper);
  border: 1px solid var(--wisedev-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.legal-card h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.legal-card p {
  margin: 0;
}

.societe-page {
  padding: 3.2rem 0;
}

.societe-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--wisedev-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.societe-card h1 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.societe-card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.societe-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #a85337;
}

.fondateur-head {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
}

.fondateur-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #f1ddd2;
  box-shadow: 0 10px 22px rgba(31, 41, 51, 0.16);
}

.timeline-block {
  margin-top: 1rem;
  border-top: 1px solid #eedfd5;
  padding-top: 1rem;
}

.timeline-block ul {
  margin: 0.4rem 0 0.6rem;
}

.timeline-block p {
  margin: 0.25rem 0;
}

/* ─── Page Societe v2 ─────────────────────────────── */
.societe-tag {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wisedev-earth);
  font-weight: 700;
}

.societe-intro {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  color: var(--wisedev-slate);
  max-width: 70ch;
}

.societe-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.skill-group {
  background: linear-gradient(145deg, #fff5ee, #fffcf8);
  border: 1px solid var(--wisedev-border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.skill-group strong {
  display: block;
  font-size: 0.84rem;
  color: var(--wisedev-coral);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.skill-group span {
  font-size: 0.88rem;
  color: var(--wisedev-graphite);
}

.societe-section-title {
  margin-top: 45px;
  margin-bottom: 0.9rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--wisedev-border);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--wisedev-border);
  margin-left: 0.5rem;
  padding-left: 1.4rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.77rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wisedev-coral);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--wisedev-coral);
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wisedev-earth);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.timeline-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.timeline-content p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--wisedev-slate);
}

.societe-formation {
  margin-top: 1.2rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(145deg, #fff2e7, #fffdf8);
  border-left: 4px solid var(--wisedev-coral);
  border-radius: 10px;
  font-size: 0.93rem;
}

/* ─── Modale Contact ──────────────────────────────── */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-overlay:not([hidden]) {
  opacity: 1;
}

.contact-overlay[hidden] {
  display: none;
}

.contact-modal {
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 2.4rem 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  position: relative;
  text-align: center;
  animation: modal-in 0.22s ease both;
}

@keyframes modal-in {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)     scale(1);    opacity: 1; }
}

.contact-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--wisedev-slate);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.contact-close:hover {
  color: var(--wisedev-graphite);
  background: var(--wisedev-border);
}

.contact-modal-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wisedev-earth);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.contact-modal-title {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
  color: var(--wisedev-graphite);
}

.contact-modal-body {
  font-size: 0.93rem;
  color: var(--wisedev-slate);
  margin: 0 0 1.3rem;
  line-height: 1.6;
}

.contact-modal-btn {
  display: inline-block;
  font-size: 0.97rem;
}

.nav-contact {
  color: var(--wisedev-coral) !important;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 6rem 0 4.3rem;
  }

  .brand img {
    height: 46px;
    max-width: 145px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .fondateur-head {
    grid-template-columns: 1fr;
  }

  .fondateur-photo {
    width: 140px;
    height: 140px;
  }

  .societe-skills-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    right: 4vw;
    top: 64px;
    background: #fff;
    border: 1px solid var(--wisedev-border);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: var(--shadow-card);
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    display: none;
  }

  .menu.is-open {
    display: flex;
  }
}
