/*
  Design system : --primary, --bg-dark, etc. injectés depuis layout.njk (site.json)
*/
:root {
  --header-h: 4.25rem;
  --text-muted: #5c6b8a;
  --text-white: #ffffff;
  --text-white-muted: rgba(255, 255, 255, 0.82);
  --border: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(46, 58, 89, 0.06), 0 2px 8px rgba(46, 58, 89, 0.04);
  --shadow-md: 0 4px 12px rgba(46, 58, 89, 0.08), 0 2px 4px rgba(46, 58, 89, 0.04);
  --shadow-lg: 0 20px 40px rgba(46, 58, 89, 0.12), 0 8px 16px rgba(46, 58, 89, 0.06);
  --shadow-xl: 0 32px 64px rgba(46, 58, 89, 0.16), 0 12px 24px rgba(46, 58, 89, 0.08);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

main {
  padding-top: var(--header-h);
}

body.is-home main {
  padding-top: 0;
}

/* Typography */
.section-title {
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.surtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-animated .surtitle {
  color: rgba(255, 255, 255, 0.95);
}

.text-white { color: var(--text-white) !important; }
.text-white-muted { color: var(--text-white-muted); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-md { max-width: 800px; }
.container-sm { max-width: 650px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.pt-4 { padding-top: 2rem; }
.mt-auto { margin-top: auto; }

.bg-light {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bg-dark {
  background: linear-gradient(165deg, #263350 0%, var(--bg-dark) 50%, #252f48 100%);
}

.bg-primary { background-color: var(--primary); }
.bg-white { background-color: #fff; }

.grid {
  display: grid;
  gap: 1.75rem;
}

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  padding: 0.875rem 1.75rem;
  font-family: 'Outfit', system-ui, sans-serif;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(242, 153, 74, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(242, 153, 74, 0.4);
}

.btn-white {
  background: #fff;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main) !important;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
}

.btn-full { width: 100%; }

.btn-pill {
  border-radius: 999px;
  padding: 1.15rem 2.5rem;
  font-size: 1.1rem;
}

/* Badges */
.badge {
  display: inline-block;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
}

.badge-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.transparent .nav-link { color: rgba(255, 255, 255, 0.92); }
.site-header.transparent .nav-link:hover { color: #fff; }
.site-header.transparent .header-logo { color: #fff; }
.site-header.transparent .header-logo img { filter: brightness(0) invert(1); }
.site-header.transparent .nav-toggle__bar { background: #fff; }

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
  padding: 0.65rem 0;
}

.header-logo {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  z-index: 1002;
}

.header-logo:has(.header-logo__img) {
  line-height: 0;
}

.header-logo__img,
.header-logo img {
  display: block;
  width: auto;
  height: var(--header-logo-height, 48px);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: filter 0.3s ease;
}

.header-logo .dot { color: var(--primary); }

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  z-index: 1002;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.transparent .nav-toggle:focus-visible {
  outline-color: #fff;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--primary); }

/* Navigation mobile */
@media (max-width: 768px) {
  .header-inner {
    padding: 0.45rem 1rem;
    gap: 0.75rem;
    align-items: center;
  }

  .header-nav .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .header-nav .nav-link:last-child {
    border-bottom: none;
  }

  .header-logo {
    flex: 1 1 auto;
    min-width: 0;
    margin-inline-end: 0.25rem;
    padding-left: 0.5rem;
    position: relative;
    z-index: 1001;
  }

  .header-logo__img,
  .header-logo img {
    height: min(40px, var(--header-logo-height, 48px));
    max-width: calc(100vw - 5.75rem);
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-inline-start: auto;
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }

  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow-y: auto;
  }

  .header-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .header-nav .nav-link {
    display: block;
    padding: 1rem 0.75rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
  }

  .header-nav .nav-link:hover { color: var(--primary); }

  .header-nav .btn {
    margin: 1rem 1.5rem 0;
    justify-content: center;
  }

  body.is-home .site-header.transparent .header-nav {
    background: rgba(30, 38, 58, 0.97);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  body.is-home .site-header.transparent .header-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  body.is-home .site-header.transparent .header-nav .nav-link:hover {
    color: #fff;
  }
}

/* Hero home */
.hero-animated {
  position: relative;
  padding: clamp(7rem, 18vw, 10rem) 0 clamp(5rem, 12vw, 7rem);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
  animation: bg-pan 28s linear infinite alternate;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  opacity: 0.86;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-animated h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-animated .lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-white-muted);
}

@keyframes bg-pan {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Inner page hero */
.page-hero {
  padding: clamp(5rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 4.5rem);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.page-hero .lead {
  color: var(--text-white-muted);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

/* Stats Section */
.stats-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-white-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Portrait / process images */
.portrait-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 2;
}

.image-wrapper {
  position: relative;
  padding: 1rem;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 1.5rem;
  bottom: 1.5rem;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  transform: rotate(-3deg);
  z-index: 1;
  opacity: 0.6;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: var(--radius);
  transform: rotate(2deg);
  z-index: 0;
  opacity: 0.15;
}

.process-side-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.process-media {
  display: flex;
  justify-content: center;
}

.image-wrapper img {
  display: block;
  transition: transform 0.35s ease;
}

.image-wrapper:hover img { transform: scale(1.02); }

/* Message box */
.message-box {
  background: #fff;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.h2-clean {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.h2-clean::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.message-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  position: relative;
}

.message-content p::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  line-height: 1;
}

.signature {
  position: relative;
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px dashed rgba(46, 58, 89, 0.15);
}

.signature strong {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  color: var(--primary);
  font-weight: 700;
}

.signature .text-muted {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.card {
  background: #fff;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-block { padding: 0.5rem 0; }

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #fff 0%, var(--bg-light) 100%);
  border-radius: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.feature-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--primary);
}

/* Benefits */
.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.benefit-card h4 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
}

.testimonial-card .stars {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.testimonial-card .feedback {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.75;
}

.testimonial-card .author {
  font-size: 0.95rem;
}

/* Process steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: #fff;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--bg-light);
  -webkit-text-stroke: 2px var(--border);
  line-height: 1;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 600px) {
  .step-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
}

/* Pricing */
.pricing-wrapper { align-items: stretch; }

.price-box {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.price-box .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.plan-name {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.price-box .amount {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  color: var(--text-main);
  line-height: 1;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
}

.price-box .period {
  color: var(--text-muted);
  font-size: 1rem;
}

.price-box .setup-fee {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-box .strikethrough {
  text-decoration: line-through;
  color: #94a3b8;
  margin-right: 0.25rem;
}

.price-box .fee-label {
  color: var(--primary);
  font-weight: 500;
}

.price-box .gift {
  display: inline-block;
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
  margin-right: 0.35rem;
}

.features-list {
  list-style: none;
  flex: 1;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.features-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.features-list li:last-child { border-bottom: none; }

.price-box.highlighted {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

@media (min-width: 992px) {
  .price-box.highlighted { transform: scale(1.04); }
}

.pricing-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* CTA band */
.cta-gradient {
  background-image: linear-gradient(125deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.cta-gradient .lead {
  color: rgba(255, 255, 255, 0.92);
}

/* Footer */
.site-footer {
  padding: clamp(3.5rem, 8vw, 5rem) 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 0.65rem; }

.footer-links a {
  color: var(--text-white-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  text-align: center;
  color: var(--text-white-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-signature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
}

.footer-logo-mini {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover .footer-logo-mini {
  opacity: 1;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Timeline Offre Page */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-item {
  display: flex;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 4px solid var(--bg-main);
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}

@media (max-width: 600px) {
  .timeline::before { left: 24px; }
  .timeline-icon {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    border-width: 3px;
  }
  .timeline-item { gap: 1rem; }
  .timeline-content { padding: 1.25rem; }
}

/* Timeline Verticale Processus Homepage */
.process-timeline-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 1.5rem;
  opacity: 0.4;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-step.is-active,
.timeline-step.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

/* Colonne icône avec ligne de connexion */
.timeline-icon-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  width: 60px;
}

.timeline-icon-wrapper {
  position: relative;
  z-index: 3;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(46, 58, 89, 0.08);
}

.timeline-icon .material-symbols-outlined {
  font-size: 1.75rem;
}

.timeline-step.is-active .timeline-icon,
.timeline-step.in-view .timeline-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(242, 153, 74, 0.4);
}

.timeline-number {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Ligne de connexion verticale - bien visible */
.timeline-connector {
  width: 2px;
  flex: 1;
  min-height: 30px;
  background: var(--border);
  margin-top: 8px;
  border-radius: 1px;
  position: relative;
  z-index: 1;
}

.timeline-step:last-child .timeline-connector {
  display: none;
}

.timeline-step.in-view .timeline-connector {
  background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%);
}

/* Carte de contenu */
.timeline-content-wrapper {
  flex: 1;
  padding-top: 0.25rem;
}

.timeline-content-card {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(46, 58, 89, 0.06);
  transition: all 0.3s ease;
}

.timeline-step.in-view .timeline-content-card {
  border-color: rgba(242, 153, 74, 0.2);
  box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
}

.timeline-content-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(46, 58, 89, 0.12);
}

.timeline-content-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  font-weight: 600;
}

.timeline-content-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Animation d'entrée progressive */
.timeline-step:nth-child(1) { transition-delay: 0s; }
.timeline-step:nth-child(2) { transition-delay: 0.1s; }
.timeline-step:nth-child(3) { transition-delay: 0.2s; }

/* Mobile */
@media (max-width: 600px) {
  .timeline-step {
    gap: 1rem;
    padding-bottom: 1.25rem;
  }
  
  .timeline-icon-column {
    width: 52px;
  }
  
  .timeline-icon {
    width: 52px;
    height: 52px;
  }
  
  .timeline-icon .material-symbols-outlined {
    font-size: 1.5rem;
  }
  
  .timeline-number {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
    bottom: -3px;
    right: -3px;
  }
  
  .timeline-connector {
    min-height: 20px;
  }
  
  .timeline-content-card {
    padding: 1rem 1.25rem;
  }
  
  .timeline-content-card h3 {
    font-size: 1.05rem;
  }
  
  .timeline-content-card p {
    font-size: 0.9rem;
  }
}

/* FAQ Simple */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-main);
  list-style: none;
}

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

.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Legal */
.legal-page {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--bg-light);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Contact */
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-panel {
  background: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.contact-info-card:last-of-type { margin-bottom: 0; }

.contact-info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-info-card a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.contact-info-card a:hover {
  color: var(--primary);
}

.contact-form .form-group { margin-bottom: 1.25rem; }

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.2);
}

.contact-form .form-hint {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1.25rem;
}

/* Portfolio avec Desktop + iPhone Mockup */
.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-showcase {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-showcase { height: 240px; }
}

/* Image Desktop en arrière-plan */
.project-desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-desktop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* iPhone Mockup en overlay */
.project-iphone {
  position: absolute;
  bottom: 5px;
  right: 15px;
  width: 85px;
  height: 175px;
  z-index: 10;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}

@media (min-width: 768px) {
  .project-iphone {
    width: 110px;
    height: 225px;
    right: 20px;
    bottom: 8px;
  }
}

/* Frame iPhone réaliste */
.iphone-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0d0d0d 100%);
  border-radius: 22px;
  padding: 6px 5px 7px 5px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5),
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid #3a3a3a;
}

/* Bouton latéral volume */
.iphone-frame::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 45px;
  width: 3px;
  height: 25px;
  background: linear-gradient(180deg, #333 0%, #222 100%);
  border-radius: 2px 0 0 2px;
}

/* Bouton power */
.project-iphone::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 65px;
  width: 3px;
  height: 35px;
  background: linear-gradient(180deg, #333 0%, #222 100%);
  border-radius: 0 2px 2px 0;
  z-index: -1;
}

/* Écran iPhone */
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
}

/* Bordure interne écran */
.iphone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2;
  pointer-events: none;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.project-result {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-tag {
  font-size: 0.78rem;
  background: var(--bg-light);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--border);
  animation: slideUp 0.45s ease;
}

.cookie-content strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-actions button {
  flex: 1;
  min-width: 120px;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-actions { flex: 0 0 auto; }
  .cookie-actions button { flex: 0 0 auto; width: auto; }
}

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

/* Grid alignment helpers */
.align-center { align-items: center; }
.gap-lg { gap: clamp(2rem, 5vw, 3.25rem) !important; }
.gap-start { align-items: start; }

/* Bouton texte style */
.btn-text {
  background: transparent;
  color: var(--text-muted);
  border: none;
  text-decoration: underline;
  font-size: 0.9rem;
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--primary);
  background: transparent;
}

/* Modals des plans */
.plan-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 58, 89, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.plan-modal.active {
  display: flex;
}

.plan-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.plan-modal-close:hover {
  background: var(--primary);
  color: #fff;
}

.plan-modal-body {
  padding: 2rem;
}

.plan-modal-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.plan-modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.plan-modal-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-modal-details {
  margin-bottom: 2rem;
}

.plan-modal-details h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.plan-modal-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.plan-modal-details li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.plan-modal-details li:last-child {
  border-bottom: none;
}

.plan-modal-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.plan-modal-details p {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.plan-modal-cta {
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

/* Mobile modal */
@media (max-width: 600px) {
  .plan-modal-content {
    max-height: 95vh;
    margin: 0.5rem;
  }

  .plan-modal-body {
    padding: 1.5rem;
  }

  .plan-modal-title {
    font-size: 1.5rem;
  }
}

/* Bouton WhatsApp Flottant */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #22c15e;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Mobile: repositionner le bouton pour éviter la barre de navigation */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 5rem;
    right: 1rem;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
