/* ============================================
   AC PRO SOLUTION — Styles pages intérieures
   (complément à styles.css)
   ============================================ */

/* ---------- Page hero (bandeau top pour pages intérieures) ---------- */
.page-hero {
  padding: 160px 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(255,106,26,.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(23,37,84,.04), transparent 60%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 20%, transparent 90%);
  opacity: .5;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: var(--text-3); opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.page-hero h1 {
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 20ch;
  margin-top: 16px;
}
.page-hero .lead {
  margin-top: 24px;
  max-width: 62ch;
}
.page-hero-inner {
  max-width: 820px;
}

/* Page hero with side visual */
.page-hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .page-hero-split { grid-template-columns: 1fr; } }

/* ---------- Prose (rich text pages : mentions, politique) ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}
.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 48px 0 18px;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0 14px 24px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--orange); border-bottom: 1px solid rgba(255,106,26,.3); transition: border-color .2s; }
.prose a:hover { border-color: var(--orange); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.prose td, .prose th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prose th { font-weight: 700; color: var(--ink); background: var(--paper-2); }
.prose td:first-child { color: var(--ink); font-weight: 500; width: 40%; }

/* Table of contents (sticky sidebar for legal pages) */
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { display: none; } }
.doc-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 20px;
  border-left: 1px solid var(--line);
}
.doc-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 600;
}
.doc-toc ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.doc-toc a {
  font-size: 13px;
  color: var(--text-2);
  transition: color .2s;
  line-height: 1.4;
  display: block;
}
.doc-toc a:hover { color: var(--orange); }
.doc-toc .updated {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ---------- Contact page form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info {
  padding: 40px;
  background: var(--ink);
  color: var(--text-inv);
  border-radius: var(--r-xl);
  position: sticky;
  top: 100px;
  overflow: hidden;
  position: relative;
}
.contact-info::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,26,.18), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-info p {
  color: var(--text-inv-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-method-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark-2);
  display: grid; place-items: center;
  color: var(--orange-2);
  flex-shrink: 0;
}
.contact-method-icon svg { width: 18px; height: 18px; }
.contact-method-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-inv-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.contact-method-value a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-inv);
  transition: color .2s;
}
.contact-method-value a:hover { color: var(--orange-2); }

.contact-form {
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
}
.contact-form h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.contact-form .sub {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.form-field label .req { color: var(--orange); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,106,26,.14);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230A1128' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
  cursor: pointer;
}
.form-check a { color: var(--orange); border-bottom: 1px solid rgba(255,106,26,.3); }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  text-align: center;
}

/* Hidden honeypot */
.hp-field { position: absolute; left: -9999px; }

/* ---------- Service page hero ---------- */
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.service-tag .num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

/* Service benefits list */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 720px) { .benefit-list { grid-template-columns: 1fr; } }
.benefit-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .3s, transform .3s;
}
.benefit-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.benefit-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,106,26,.14);
  color: var(--orange);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-check svg { width: 12px; height: 12px; }
.benefit-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.benefit-item p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* Service usecase grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .usecase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usecase-grid { grid-template-columns: 1fr; } }

.usecase {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: all .3s;
  position: relative;
}
.usecase:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--sh-2); }
.usecase-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.usecase h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.usecase p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Deliverables / Livrables */
.deliverables {
  padding: clamp(32px, 5vw, 56px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .deliverables { grid-template-columns: 1fr; } }
.deliv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deliv-item {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  gap: 14px;
  align-items: center;
}
.deliv-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.deliv-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Merci / Thanks page */
.thanks-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,106,26,.06), transparent 60%),
    var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.thanks-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 90%);
  opacity: .5;
}
.thanks-inner {
  max-width: 640px;
  position: relative;
  z-index: 1;
}
.thanks-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white;
  display: grid; place-items: center;
  margin: 0 auto 32px;
  box-shadow: var(--sh-orange);
  animation: popIn .6s cubic-bezier(.2,.7,.2,1);
}
.thanks-icon svg { width: 40px; height: 40px; }
@keyframes popIn {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.thanks-hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.thanks-hero p {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.thanks-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.thanks-next {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.thanks-next h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  text-align: center;
}
.thanks-next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .thanks-next-grid { grid-template-columns: 1fr; } }
.thanks-next-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: all .3s;
}
.thanks-next-item:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--sh-1); }
.thanks-next-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.thanks-next-item p { font-size: 13px; color: var(--text-3); }

/* 404 */
.error-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 24px;
  background: var(--ink);
  color: var(--text-inv);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,106,26,.18), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(80,120,255,.14), transparent 40%);
  filter: blur(60px);
}
.error-inner { max-width: 560px; position: relative; z-index: 1; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.error-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.error-hero p {
  color: var(--text-inv-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ---------- About page ---------- */
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--ink), var(--ink-2) 60%, var(--ink-3));
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.about-portrait::before {
  content: '';
  position: absolute;
  inset: -20% -20% auto auto;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,26,.24), transparent 65%);
  filter: blur(30px);
}
.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.about-portrait-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-inv);
  z-index: 1;
}
.about-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 24px -6px rgba(255,106,26,.4);
}
.about-portrait-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.about-portrait-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-inv-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-portrait-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark-2);
  margin-top: 24px;
}
.about-portrait-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.about-portrait-meta .k { color: var(--text-inv-3); }
.about-portrait-meta .v { color: var(--text-inv); font-weight: 600; }

.timeline-vertical {
  border-left: 1px solid var(--line-strong);
  padding-left: 32px;
  position: relative;
  max-width: 720px;
}
.tl-item {
  padding: 0 0 40px;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--orange);
}
.tl-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.tl-item h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.tl-item p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  padding: 32px;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
}
.value-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.value-card p {
  color: var(--text-inv);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* Inline CTA banner (used in service pages) */
.inline-cta {
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--ink), var(--ink-2) 60%, var(--ink-3));
  color: var(--text-inv);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.inline-cta::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,26,.22), transparent 65%);
  filter: blur(30px);
}
.inline-cta > * { position: relative; z-index: 1; }
@media (max-width: 720px) { .inline-cta { grid-template-columns: 1fr; text-align: center; } .inline-cta .btn { justify-self: center; } }
.inline-cta h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.inline-cta p {
  color: var(--text-inv-2);
  font-size: 15px;
  max-width: 60ch;
}

/* Related services */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: all .3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--sh-2); }
.related-card .service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
}
.related-card h4 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.related-card p { font-size: 14px; color: var(--text-2); flex-grow: 1; }
.related-card .btn-link { align-self: flex-start; }
