/* Connecte Ma Vision ? Studio professionnel */

:root {
  --ink: #0A1628;
  --ink-soft: #1C2A3A;
  --paper: #EEF1F4;
  --paper-deep: #E2E7ED;
  --white: #FAFBFC;
  --muted: #5C6B7A;
  --line: rgba(10, 22, 40, 0.12);
  --accent: #0E7C74;
  --accent-deep: #0A5C56;
  --accent-soft: rgba(14, 124, 116, 0.12);
  --hero-veil: linear-gradient(
    105deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(10, 22, 40, 0.72) 42%,
    rgba(10, 22, 40, 0.35) 100%
  );
  --font-display: "Syne", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(14, 124, 116, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(10, 22, 40, 0.04), transparent 50%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* ?? Header ?? */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
  color: var(--white);
}

.header.is-solid {
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.header-inner {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-wordmark em {
  font-style: normal;
  color: var(--accent);
}

.header:not(.is-solid) .logo-wordmark em {
  color: #5fd4c8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: var(--white) !important;
  opacity: 1 !important;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.header:not(.is-solid) .nav-cta {
  background: var(--white);
  color: var(--ink) !important;
}

.header:not(.is-solid) .nav-cta:hover {
  background: var(--paper);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  opacity: 0.55;
  border-radius: var(--radius);
}

.lang-switch a.active {
  opacity: 1;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.header:not(.is-solid) .lang-switch a.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.hamburger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0.5rem;
  color: inherit;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.hamburger.open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.hamburger.open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 22, 40, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ?? Buttons ?? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ?? Hero ?? */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--space) 4.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: hero-ken 18s var(--ease) forwards;
}

@keyframes hero-ken {
  to {
    transform: scale(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-brand::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1rem;
  background: var(--accent);
  animation: line-grow 0.8s 0.4s var(--ease) both;
}

@keyframes line-grow {
  from { width: 0; opacity: 0; }
  to { width: 3rem; opacity: 1; }
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.5rem;
  height: 2.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
  text-decoration: none;
}

.hero-scroll span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.35; }
}

/* Reveal ? visible par d?faut ; JS masque puis r?v?le */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js .reveal-delay-1 { transition-delay: 0.1s; }
html.js .reveal-delay-2 { transition-delay: 0.2s; }
html.js .reveal-delay-3 { transition-delay: 0.35s; }

/* ?? Sections ?? */
.section {
  padding: clamp(4rem, 10vw, 7rem) var(--space);
}

.section-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-header {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.section-desc a {
  color: var(--accent-deep);
  font-weight: 500;
}

/* ?? Services ?? */
.services {
  background: var(--white);
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  padding-top: 0.15rem;
}

.service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.service-body p {
  color: var(--muted);
  max-width: 48ch;
}

/* ?? Portfolio ?? */
.realisations {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.portfolio-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.portfolio-item:hover .portfolio-media img {
  transform: scale(1.05);
}

.portfolio-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.portfolio-meta span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ?? Pricing ?? */
.pricing {
  background: var(--ink);
  color: var(--white);
}

.pricing .section-label {
  color: #5fd4c8;
}

.pricing .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}

.price-card--featured {
  background: rgba(14, 124, 116, 0.22);
  border-color: rgba(95, 212, 200, 0.45);
  box-shadow: 0 0 0 1px rgba(95, 212, 200, 0.15);
}

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  background: #5fd4c8;
  color: var(--ink);
  border-radius: var(--radius);
}

.price-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 0.25rem;
}

.price-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.price-features li.is-off {
  color: rgba(255, 255, 255, 0.35);
}

.feat-ok,
.feat-no,
.feat-opt {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  position: relative;
}

.feat-ok {
  background: rgba(95, 212, 200, 0.2);
  border: 1.5px solid #5fd4c8;
}

.feat-ok::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.12rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #5fd4c8;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.feat-no {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.feat-no::before,
.feat-no::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.3);
}

.feat-no::before { transform: translate(-50%, -50%) rotate(45deg); }
.feat-no::after { transform: translate(-50%, -50%) rotate(-45deg); }

.feat-opt {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
}

.feat-opt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.4rem;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
}

.price-maint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.25rem;
}

.price-maint strong {
  color: #5fd4c8;
  font-weight: 600;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.pricing .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* ?? Contact ?? */
.contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.contact-layout .section-header {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-row--3 {
  grid-template-columns: 1.2fr 1fr 0.9fr;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C6B7A' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--white);
}

.plan-summary {
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-form.has-plan {
  outline: 1px solid rgba(14, 124, 116, 0.25);
  outline-offset: 8px;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 1.4em;
}

.form-status--pending {
  color: var(--muted);
}

.form-status--success {
  color: var(--accent-deep);
  font-weight: 500;
}

.form-status--error {
  color: #b42318;
  font-weight: 500;
}

.pricing .form-status--success {
  color: #5fd4c8;
}

/* ?? Footer ?? */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem var(--space);
}

.footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer a {
  color: #5fd4c8;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.875rem;
}

/* ?? Responsive ?? */
@media (max-width: 960px) {
  .pricing-plans {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }

  .price-card--featured {
    order: -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout .section-header {
    position: static;
  }
}

@media (max-width: 760px) {
  .hamburger {
    display: flex;
    z-index: 110;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(18rem, 86vw);
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateX(105%);
    transition: transform 0.4s var(--ease);
    z-index: 105;
    box-shadow: -12px 0 40px rgba(10, 22, 40, 0.12);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    opacity: 1;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border: 0;
  }

  .header:not(.is-solid) .nav-cta {
    background: var(--accent);
    color: var(--white) !important;
  }

  .lang-switch {
    margin-top: 1.25rem;
  }

  .lang-switch a.active {
    background: var(--accent-soft);
    color: var(--accent-deep);
  }

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

  .service-row {
    grid-template-columns: 3rem 1fr;
  }

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

  .hero {
    align-items: center;
    padding-bottom: 5rem;
  }

  .hero-brand {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-img {
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll span,
  .hero-brand::after {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
