/* ============================================================
   extras.css — new sections (Tarifs, Comparatif, Témoignages,
   FAQ, About-me + form). Pairs with styles.css tokens.
   ============================================================ */

/* Re-add brand-name structure (legacy) */
.brand .brand-name {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  letter-spacing: 0;
  text-transform: none;
}
.brand .brand-first {
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-soft);
}
.brand .brand-last {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ============ ABOUT ME (photo + bio) ============ */
.aboutme {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.aboutme-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 920px) {
  .aboutme-grid { grid-template-columns: 1fr; gap: 40px; }
}
.aboutme-photo {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.aboutme-photo image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.aboutme-body { display: flex; flex-direction: column; gap: 22px; }
.aboutme-body .aboutme-h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.aboutme-body .aboutme-h2 em { font-style: normal; color: var(--accent); }
.aboutme-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
}
.aboutme-points {
  list-style: none;
  display: grid; gap: 12px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.aboutme-points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
}
.aboutme-points li::before {
  content: "";
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  margin-top: 3px;
}

/* ============ TARIFS ============ */
.tarifs {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tarif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 920px) { .tarif-grid { grid-template-columns: 1fr; } }

.tarif {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 24px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.tarif:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(4, 16, 31, 0.18);
  border-color: var(--line-strong);
}
.tarif-featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tarif-featured:hover { box-shadow: 0 28px 70px -20px rgba(4, 16, 31, 0.42); }
.tarif-featured .tarif-tag,
.tarif-featured .tarif-from,
.tarif-featured .tarif-note { color: rgba(255,255,255,0.7); }
.tarif-featured .tarif-amount em { color: #7ec8ff; }
.tarif-featured .tarif-list { border-color: rgba(255,255,255,0.18); }
.tarif-featured .tarif-list li { color: rgba(255,255,255,0.85); }
.tarif-featured .tarif-list li::before { background: #7ec8ff; }
.tarif-featured .tarif-btn { background: var(--bg); color: var(--ink); }
.tarif-featured .tarif-btn:hover { background: #7ec8ff; }

.tarif-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: #7ec8ff;
  color: var(--ink);
  border-radius: 999px;
}

.tarif header { display: flex; flex-direction: column; gap: 16px; }
.tarif-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tarif-price {
  display: flex; flex-direction: column; gap: 6px;
}
.tarif-from {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.tarif-amount {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: inherit;
  display: inline-flex; align-items: flex-start; gap: 4px;
}
.tarif-amount span {
  font-size: 24px;
  font-weight: 500;
  margin-top: 8px;
  color: var(--accent);
}
.tarif-featured .tarif-amount span { color: #7ec8ff; }
.tarif-quote {
  font-size: 36px;
  letter-spacing: -0.02em;
}
.tarif-note {
  font-size: 12.5px;
  color: var(--muted);
}

.tarif-list {
  list-style: none;
  display: grid; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex: 1;
}
.tarif-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.tarif-list li::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
}

.tarif-btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}
.tarif-btn:hover { transform: translateX(3px); }

.tarif-foot {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============ COMPARATIF ============ */
.compare-table {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: flex; align-items: center;
  border-right: 1px solid var(--line);
}
.compare-row > div:last-child { border-right: none; }
.compare-row:not(.compare-head):hover { background: var(--bg-2); }

.compare-head {
  background: var(--ink);
  color: var(--bg);
}
.compare-head > div {
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-right-color: rgba(255,255,255,0.15);
  padding-top: 18px; padding-bottom: 18px;
}
.compare-head .compare-mine { color: #7ec8ff; }
.compare-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-mine {
  background: var(--accent-soft);
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.compare-mine::after {
  content: "✓";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.compare-head .compare-mine { background: var(--ink); }
.compare-head .compare-mine::after { display: none; }
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .compare-row > div:last-child { border-bottom: none; }
  .compare-row:not(.compare-head) .compare-label {
    background: var(--paper); font-weight: 600;
  }
  .compare-mine::after { right: 18px; }
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }

.review {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 30px 28px;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.review:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.review::before {
  content: "“";
  position: absolute;
  top: -20px; right: 18px;
  font-family: Georgia, serif;
  font-size: 160px;
  line-height: 1;
  color: var(--accent-soft);
  opacity: 0.7;
  pointer-events: none;
}
.review-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 4px;
}
.review blockquote {
  position: relative;
  z-index: 1;
}
.review blockquote p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.review footer {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.review footer b {
  color: var(--ink);
  font-weight: 600;
}
.review footer span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ============ FAQ ============ */
.faq-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq-plus::before {
  top: 50%; left: 7px; right: 7px; height: 1px;
  transform: translateY(-50%);
}
.faq-plus::after {
  left: 50%; top: 7px; bottom: 7px; width: 1px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-plus { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--bg); }
.faq-body {
  padding: 0 60px 28px 0;
  max-width: 70ch;
  animation: faqIn 0.4s var(--ease-out);
}
.faq-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.faq-body p b { color: var(--ink); font-weight: 600; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ CONTACT FORM ============ */
.contact-inner {
  grid-template-columns: 1fr 1fr !important;
}
@media (max-width: 920px) {
  .contact-inner { grid-template-columns: 1fr !important; }
}

.contact-form-wrap {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact-form-wrap h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-form .ff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .contact-form .ff-row { grid-template-columns: 1fr; } }

.contact-form label {
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--sans);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ff-btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  margin-top: 6px;
  transition: background 0.3s, transform 0.3s;
}
.ff-btn:hover { background: var(--accent); }
.ff-btn .arrow { transition: transform 0.3s; }
.ff-btn:hover .arrow { transform: translateX(4px); }
.ff-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}
.ff-success {
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

/* Update contact-meta to drop empty cell + fix layout */
.contact-meta {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .contact-meta { grid-template-columns: 1fr; } }
.contact-meta > div { display: flex; flex-direction: column; gap: 4px; }
.contact-meta a {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.3s;
}
.contact-meta a:hover { color: var(--accent); }


/* ============================================================
   page-hero + page-cta — for subpages (about/services/tarifs/faq/contact)
   ============================================================ */

.page-hero {
  position: relative;
  padding: 80px 0 60px;
  min-height: 0;
  display: block;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero .hero-glow { z-index: 0; }
.page-hero .hero-glow::before { width: 420px; height: 420px; top: -160px; right: -160px; opacity: 0.45; }
.page-hero .hero-glow::after  { width: 320px; height: 320px; bottom: -140px; left: -180px; opacity: 0.55; }

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 980px;
}
.page-hero .eyebrow { margin-bottom: 4px; }

.page-hero-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: pretty;
}
.page-hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.page-hero-lead {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* Tighten the first section after a page-hero */
.page-hero + section { padding-top: 90px; }

/* Bottom CTA used at the end of subpages */
.page-cta {
  padding: 110px 0 130px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.page-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
@media (max-width: 760px) {
  .page-cta-inner { grid-template-columns: 1fr; gap: 24px; }
}
.page-cta h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 12px;
}
.page-cta h3 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background 0.3s, transform 0.3s;
}
.page-cta-btn:hover { background: var(--accent); }
.page-cta-btn .arrow { transition: transform 0.3s; }
.page-cta-btn:hover .arrow { transform: translateX(6px); }

/* Active nav link */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { width: 100%; }

/* Tarifs page: tighten leading section, no double padding */
.page-hero + .tarifs { padding-top: 90px; }
.page-hero + .services { padding-top: 90px; }

/* Landing teaser cards (used on index.html) */
.teasers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.teasers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
@media (max-width: 1000px) { .teasers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .teasers-grid { grid-template-columns: 1fr; } }
.teaser {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 28px 36px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  transition: background 0.4s var(--ease-out);
  min-height: 240px;
}
.teasers-grid > .teaser:last-child { border-right: none; }
@media (max-width: 1000px) {
  .teasers-grid > .teaser:nth-child(2n) { border-right: none; }
  .teasers-grid > .teaser { border-bottom: 1px solid var(--line); }
  .teasers-grid > .teaser:nth-last-child(-n+1) { border-bottom: none; }
}
@media (max-width: 600px) {
  .teasers-grid > .teaser { border-right: none; border-bottom: 1px solid var(--line); }
  .teasers-grid > .teaser:last-child { border-bottom: none; }
}
.teaser:hover { background: var(--paper); }
.teaser-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.teaser h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.teaser p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.teaser-arrow {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, color 0.3s;
}
.teaser:hover .teaser-arrow { color: var(--accent); gap: 14px; }
.teaser-arrow svg { width: 14px; height: 14px; }


/* ============================================================
   Dark-mode patches
   Several blocks (.process, .wa-card, .tarif-featured, .compare-head)
   were originally "dark cards" using background: var(--ink); color: var(--bg).
   In dark theme, those tokens flip, which would make them light cards with
   white-on-white inner text. Override here to keep them as DARK ELEVATED
   surfaces (using --paper as a slightly lighter shade than --bg).
   ============================================================ */

.process {
  background: var(--paper);
  color: var(--ink);
}
.process .section-head h2 { color: var(--ink); }
.process .section-head h2 em { color: var(--accent); }
.step .marker {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--line-strong);
}

.wa-card {
  background: var(--accent-soft);
  color: var(--ink);
}

.tarif-featured {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.tarif-featured .tarif-btn { background: var(--bg); color: var(--ink); }
.tarif-featured .tarif-btn:hover { background: var(--accent); color: var(--accent-ink); }

.compare-head {
  background: var(--paper);
  color: var(--ink);
}
.compare-head .compare-mine { background: var(--accent-soft); }

/* svc-row hover: keep an elevated dark fill rather than inverting to a white wash */
.svc-row::before { background: var(--paper); }
.svc-row:hover .svc-num,
.svc-row:hover .svc-title,
.svc-row:hover .svc-desc,
.svc-row:hover .svc-arrow { color: var(--ink); }
.svc-row:hover .svc-arrow { border-color: var(--line-strong); }

/* aud-card hover: elevated dark rather than white */
.aud-card:hover { background: var(--paper); color: var(--ink); }
.aud-card:hover .aud-glyph { background: var(--accent-soft); color: var(--accent); }
.aud-card:hover p { color: var(--ink-soft); }
.aud-card:hover .aud-list { color: var(--ink); border-color: var(--line-strong); }

/* Pill / band tag stays a small dark chip */
.svc-band-tag {
  background: var(--paper);
  color: var(--ink);
}

/* Primary action buttons — pop with accent on dark page */
.tarif-btn,
.ff-btn,
.page-cta-btn {
  background: var(--accent);
  color: var(--accent-ink);
}
.tarif-btn:hover,
.ff-btn:hover,
.page-cta-btn:hover { background: #b8d1ff; }

/* Mobile menu trigger / nav-cta — keep border subtle on dark */
.nav-cta { border-color: var(--line-strong); }
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Scroll progress bar — sharper against dark bg */
.scrollbar { background: var(--accent); }
