/*
Theme Name: Sebastien Lecarpentier
Theme URI: https://sebastienlecarpentier.com
Author: Reverdy Automation
Author URI: https://reverdy-automation.com
Description: Theme sur-mesure pour Sebastien Lecarpentier, conseiller immobilier a Cherbourg-en-Cotentin.
Version: 1.27
Text Domain: sebastien-lecarpentier
*/

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #0C447C;
  --color-primary-dark: #042C53;
  --color-primary-light: #E6F1FB;
  --color-accent: #B5D4F4;
  --color-success: #0F6E56;
  --color-success-light: #E1F5EE;
  --color-danger: #993C1D;
  --color-danger-light: #FAECE7;
  --color-warning: #854F0B;
  --color-warning-light: #FAEEDA;
  --color-star: #EF9F27;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555;
  --color-text-tertiary: #888;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #fafaf7;
  --color-border: #e5e5e5;
  --header-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

/* ===== UTILITIES ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 { font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--color-primary-dark); }
h2 { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--color-text-primary); margin-bottom: 16px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  justify-content: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

.btn-secondary { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-light); }

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease;
}
.header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.header-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
}

.main-nav {
  display: none;
}
.main-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.main-nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 8px 0;
  transition: color 0.15s ease;
}
.main-nav-list a:hover { color: var(--color-primary); }
.main-nav-list .current-menu-item > a { color: var(--color-primary); font-weight: 600; }

@media (min-width: 860px) {
  .main-nav { display: block; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== NAVIGATION PRINCIPALE ===== */
.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav-list a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 899px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 8px 20px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .main-nav-list a { padding: 12px 8px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.header-cta-secondary {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.header-cta-secondary:hover { background: var(--color-primary-light); }

.header-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.header-cta:hover { background: var(--color-primary-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(180deg, #FAF7F2 0%, #F2EBDF 100%);
  padding: 48px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--color-accent);
  border-radius: 18px;
  padding: 10px 20px;
  max-width: 380px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 16px; }

.hero-subtitle {
  font-size: 16px;
  color: var(--color-primary);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-trust {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.hero-trust span { white-space: nowrap; }

/* ===== REVIEWS STRIP ===== */
.reviews-strip {
  background: var(--color-bg-secondary);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.reviews-track {
  display: flex;
  gap: 24px;
  animation: scroll-reviews 35s linear infinite;
  width: max-content;
}
.review-pill {
  flex-shrink: 0;
  background: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--color-text-secondary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  white-space: nowrap;
}
@keyframes scroll-reviews {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.reviews-strip:hover .reviews-track { animation-play-state: paused; }

/* ===== PROBLEM ===== */
.problem { background: var(--color-bg-primary); }
.problem .eyebrow { color: var(--color-danger); }

.problem-intro {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--color-text-secondary);
}

.problem-card {
  background: var(--color-danger-light);
  border-radius: 12px;
  padding: 24px;
}

.problem-card-icon { font-size: 24px; margin-bottom: 12px; }
.problem-card p { color: var(--color-text-secondary); font-size: 14px; }

/* ===== SOLUTION ===== */
.solution { background: var(--color-bg-secondary); }
.solution .eyebrow { color: var(--color-success); }

.solution-intro {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--color-text-secondary);
}

.solution-card { text-align: center; }

.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.solution-icon--green { background: var(--color-success-light); }
.solution-icon--purple { background: #F0E6FB; }
.solution-icon--amber { background: var(--color-warning-light); }

.solution-card p { color: var(--color-text-secondary); font-size: 14px; }

/* ===== CTA INTERMEDIAIRE ===== */
.cta-mid {
  background: var(--color-primary-light);
  padding: 40px 0;
}
.cta-mid-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

/* ===== BIO ===== */
.bio { background: var(--color-bg-primary); }
.bio .eyebrow { color: var(--color-text-tertiary); }

.bio-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.bio-photo {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bio-text p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.bio-text strong { color: var(--color-text-primary); }

.bio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.bio-badge {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.bio-map {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.bio-map img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(12,44,83,0.14);
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--color-bg-secondary); }
.testimonials .eyebrow { color: var(--color-text-tertiary); }

.testimonials-rating {
  display: inline-block;
  background: #fff;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pulse-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.pulse-in.visible {
  opacity: 1;
  transform: scale(1);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
}

.testimonials-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 500;
  text-underline-offset: 4px;
}
.testimonials-link:hover { text-decoration: underline; }

/* ===== PROCESS ===== */
.process { background: var(--color-bg-primary); }
.process .eyebrow { color: var(--color-text-tertiary); }

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.process-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin: 0 auto;
}

.process-step p { color: var(--color-text-secondary); font-size: 14px; }

/* ===== FAQ ===== */
.faq { background: var(--color-bg-secondary); }

.faq-list { max-width: 640px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 0 18px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== CTA FINAL ===== */
.cta-final {
  background: linear-gradient(180deg, #E6F1FB 0%, #B5D4F4 100%);
  padding: 64px 0;
}

.cta-final h2 { color: var(--color-primary-dark); }

.cta-final-subtitle {
  color: var(--color-primary);
  margin-bottom: 32px;
}

/* ===== FORMULAIRE ESTIMATEUR ===== */
.estimator-form {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(4, 44, 83, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-group input,
.form-group select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-primary);
  transition: border-color 0.15s ease;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group input::placeholder { color: var(--color-text-tertiary); }

/* ===== AUTOCOMPLETION D'ADRESSE (BAN, adresse.data.gouv.fr) ===== */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 20;
  text-align: left;
}

.autocomplete-item {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-primary);
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
  background: var(--color-primary-light);
}

.estimator-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  padding: 16px 24px;
}

.form-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox span {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.form-checkbox-link {
  display: inline-block;
  margin-top: 6px;
  margin-left: 28px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-checkbox-link:hover { color: var(--color-primary); }

.estimator-form .cta-micro {
  text-align: center;
  margin-top: 16px;
}

/* ===== RESULTAT DE L'ESTIMATION (affiche a la place du formulaire apres soumission) ===== */
.estimator-result {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 20px rgba(4, 44, 83, 0.1);
  text-align: center;
}

.estimator-result-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimator-result-title {
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.estimator-result-range {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.estimator-result-detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.estimator-result-cta {
  display: inline-block;
  margin-top: 20px;
}

.estimator-error {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--color-danger-light);
  color: var(--color-danger);
  font-size: 14px;
  text-align: center;
}

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-group--full { grid-column: 1 / -1; }
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.cta-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cta-card-icon { font-size: 32px; margin-bottom: 12px; }
.cta-card h3 { margin-bottom: 6px; }
.cta-card-desc { color: var(--color-text-secondary); font-size: 14px; margin-bottom: 16px; }

.cta-micro {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

.footer-main {
  text-align: center;
  margin-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-list a {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-col-list a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
  .footer-col-list { align-items: flex-start; }
}

.footer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.footer-role {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-legal {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.6;
}

.footer-legal p {
  margin-bottom: 6px;
}

.footer-legal strong {
  color: var(--color-text-primary);
}

.footer-legal-section {
  margin-bottom: 12px;
}

.footer-legal-section + .footer-legal-section {
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.footer-legal-section h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
}

.footer-disclaimer {
  font-style: italic;
  color: var(--color-text-secondary);
  margin: 12px 0;
  padding: 8px 10px;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
  background: var(--color-bg-secondary);
  border-radius: 4px;
}

.footer-legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ===== BLOG (liste + article) ===== */
.blog-header {
  background: linear-gradient(180deg, #FAF7F2 0%, #F2EBDF 100%);
  padding: 48px 0 40px;
  text-align: center;
}
.blog-header .eyebrow { color: var(--color-primary); }

.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  display: block;
  color: inherit;
}
.blog-card-thumb {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  background: var(--color-bg-secondary);
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-meta {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.blog-card h2 { font-size: 18px; margin-bottom: 8px; }
.blog-card p { color: var(--color-text-secondary); font-size: 14px; }

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* ===== PAGES GENERIQUES (mentions legales, confidentialite, cookies) ===== */
.single-article { max-width: 720px; margin: 0 auto; }
.single-article h1 { margin-bottom: 24px; }
.single-article-content { color: var(--color-text-secondary); font-size: 16px; line-height: 1.8; }
.single-article-content h2 { margin-top: 32px; color: var(--color-text-primary); }
.single-article-content h3 { margin-top: 24px; color: var(--color-text-primary); }
.single-article-content p { margin-bottom: 16px; }
.single-article-content ul, .single-article-content ol { margin: 0 0 16px 20px; }
.single-article-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== GABARIT ARTICLE (single.php) ===== */
.sa-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.sa-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.sa-breadcrumb a { color: var(--color-primary); opacity: 0.8; }
.sa-breadcrumb a:hover { opacity: 1; }
.sa-breadcrumb-sep { opacity: 0.4; }

.sa-header {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 44px 44px;
  margin-bottom: 24px;
  background: radial-gradient(ellipse at 90% 8%, rgba(181, 212, 244, 0.25) 0%, transparent 40%),
              linear-gradient(148deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}
.sa-title {
  font-family: 'Manrope', sans-serif;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 38ch;
  margin: 0;
}
.sa-excerpt {
  color: rgba(255,255,255,0.8);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-top: 14px !important;
}

.sa-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 4px 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}
.sa-meta-author { display: flex; align-items: center; gap: 8px; }
.sa-meta-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(12, 68, 124, 0.25);
}
.sa-meta-author-body { display: flex; align-items: baseline; gap: 6px; font-size: 13px; white-space: nowrap; }
.sa-meta-author-name { font-weight: 700; color: var(--color-primary-dark); font-family: 'Manrope', sans-serif; }
.sa-meta-sep { opacity: 0.3; }
.sa-meta-author-role { color: var(--color-text-tertiary); font-size: 12px; }
.sa-meta-divider { width: 1px; height: 16px; background: var(--color-border); }
.sa-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-text-tertiary); font-weight: 500; }

.sa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sa-content-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(4, 44, 83, 0.06);
  padding: 36px 40px;
  min-width: 0;
}
.sa-content { font-family: 'Inter', sans-serif; }

.sa-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sa-sb-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
}
.sa-sb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}
.sa-sb-head i { color: var(--color-primary); }

.sa-sb-author { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.sa-sb-photo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(12, 68, 124, 0.2);
}
.sa-sb-name { font-size: 14px; font-weight: 800; color: var(--color-primary-dark); margin: 0 0 1px; font-family: 'Manrope', sans-serif; }
.sa-sb-role { font-size: 12px; color: var(--color-text-tertiary); margin: 0 0 3px; }
.sa-sb-zone { display: flex; align-items: flex-start; gap: 5px; font-size: 11px; color: var(--color-primary); font-weight: 600; line-height: 1.4; }
.sa-sb-zone i { margin-top: 2px; flex-shrink: 0; }

.sa-sb-btns { display: flex; flex-direction: column; gap: 8px; }
.sa-sb-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.sa-sb-btn--tel { background: var(--color-success-light); color: var(--color-success); }
.sa-sb-btn--mail { background: var(--color-primary-light); color: var(--color-primary-dark); }
.sa-sb-btn:hover { opacity: 0.8; }

.sa-sb-social { display: flex; flex-direction: column; gap: 6px; }
.sa-sb-social-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: transform 0.15s ease;
}
.sa-sb-social-item:hover { transform: translateX(3px); }
.sa-sb-social-ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.sa-sb-social-item--fb .sa-sb-social-ico { background: #1877F2; }
.sa-sb-social-item--li .sa-sb-social-ico { background: #0A66C2; }
.sa-sb-social-item--ig .sa-sb-social-ico { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.sa-sb-mini-cta {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sa-sb-mini-cta.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.sa-mini-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 6px 18px rgba(12, 68, 124, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.sa-mini-cta-btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

@media (min-width: 900px) {
  .sa-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .sa-sidebar { position: sticky; top: calc(var(--header-height) + 20px); }
}
@media (max-width: 640px) {
  .sa-header { padding: 28px 24px; }
  .sa-content-card { padding: 24px 20px; }
  .sa-meta-author-role, .sa-meta-sep { display: none; }
}

/* ===== FIN GABARIT ARTICLE ===== */

/* ===== COMPOSANTS DE CONTENU D'ARTICLE (.g3-post) =====
   Ces classes sont utilisees DANS le contenu des articles (colle-les
   telles quelles dans un article, pas besoin de <style> local : tout
   est deja charge ici, de maniere fiable).

   Depuis la v1.27, single.php ajoute la classe .g3-post directement sur le
   conteneur de l'article (.sa-content) : les paragraphes, titres H2/H3 et
   listes simples heritent donc AUTOMATIQUEMENT du style ci-dessous, sans
   rien coller. Seuls les composants speciaux (image+texte, citation,
   callout, figure encadree, FAQ, CTA) demandent de coller le HTML fourni,
   via un bloc "HTML personnalise" dans l'editeur. ======================= */

.g3-post { font-family: 'Inter', sans-serif; max-width: 100%; }

/* --- Chapo / intro avec lettrine --- */
.g3-lead {
  font-size: 1.15em;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem !important;
}
.g3-lead::first-letter {
  float: left;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.85;
  color: var(--color-primary);
  padding: 0.03em 0.09em 0 0;
}

/* --- Titres avec barre degradee --- */
.g3-post h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 2.1em 0 0.65em;
}
.g3-post h2::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 4px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-success));
}
.g3-post h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 1.6em 0 0.55em;
}
.g3-post h3::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-success));
}
.g3-post > h2:first-child, .g3-post > h3:first-child { margin-top: 0; }

.g3-post p { line-height: 1.85; color: var(--color-text-secondary); margin: 0 0 1.1em; font-size: 1rem; }
.g3-post ul { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0 0 1.4em; padding: 0; }
.g3-post ul li { position: relative; padding-left: 17px; color: var(--color-text-secondary); line-height: 1.7; }
.g3-post ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-success);
}

/* --- Bloc image + texte (carte) --- */
.g3-image-text {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0 0 1.6em;
}
.g3-image-text--right { flex-direction: row-reverse; }
.g3-image-text-img {
  flex: 0 0 42%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(4, 44, 83, 0.06);
  padding: 0.75rem;
}
.g3-image-text-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.g3-image-text-caption { font-size: 0.75rem; opacity: 0.6; text-align: center; margin: 6px 0 0; }
.g3-image-text-body { flex: 1; min-width: 0; }
.g3-image-text-body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .g3-image-text { flex-direction: column !important; }
  .g3-image-text-img { flex-basis: auto !important; width: 100%; }
}

/* --- Citation en exergue --- */
.g3-quote {
  max-width: 620px;
  margin: 0 auto 1.8em;
  padding: 1.25rem 1rem 1rem;
  text-align: center;
}
.g3-quote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}
.g3-quote-text {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary-dark);
  margin: 0 0 0.8rem;
}
.g3-quote-footer { display: flex; justify-content: center; gap: 0.35rem; flex-wrap: wrap; }
.g3-quote-author { font-size: 0.82rem; font-weight: 700; color: var(--color-success); }
.g3-quote-role { font-size: 0.82rem; color: var(--color-text-tertiary); }

/* --- Callout "a retenir" --- */
.g3-callout {
  display: flex;
  gap: 0.875rem;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.8em 0;
  background: var(--color-success-light);
  border-left: 4px solid var(--color-success);
}
.g3-callout-icon { flex-shrink: 0; font-size: 1.2rem; margin-top: 0.1rem; }
.g3-callout-body { flex: 1; min-width: 0; }
.g3-callout-title { font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--color-success); margin-bottom: 0.4rem; }
.g3-callout ul { margin: 0; }
.g3-callout ul li { font-size: 0.9rem; }
.g3-callout ul li::before { background: var(--color-success); }

/* --- Image seule, encadree --- */
.g3-fig { margin: 1.8em 0; }
.g3-fig-frame {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(4, 44, 83, 0.06);
  padding: 0.75rem;
}
.g3-fig img { width: 100%; border-radius: 14px; display: block; }
.g3-fig figcaption { font-size: 0.78rem; font-style: italic; opacity: 0.6; text-align: center; margin-top: 9px; }

/* --- FAQ en cartes --- */
.g3-faq { margin: 1.8em 0; display: grid; gap: 0.65rem; }
.g3-faq-item {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  overflow: hidden;
}
.g3-faq-question {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.g3-faq-chevron { flex-shrink: 0; margin-left: auto; font-size: 0.75rem; opacity: 0.5; transition: transform 0.2s ease; }
.g3-faq-item.is-open .g3-faq-chevron { transform: rotate(180deg); }
.g3-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.g3-faq-answer-inner { padding: 0.8rem 0 0.1rem calc(26px + 0.6rem); font-size: 0.9rem; line-height: 1.65; color: var(--color-text-secondary); }
.g3-faq-answer-inner p { margin: 0 0 0.5rem; }
.g3-faq-answer-inner p:last-child { margin-bottom: 0; }

/* --- CTA de fin d'article --- */
.g3-cta {
  margin: 2.4em 0 0.5em;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}
.g3-cta h3 { color: #fff; justify-content: center; margin-bottom: 0.5rem; }
.g3-cta h3::before { background: linear-gradient(to bottom, #fff, var(--color-accent)); }
.g3-cta p { color: rgba(255,255,255,0.85); margin-bottom: 1.3rem; }
.g3-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 13px 30px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.g3-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,0,0,0.24); }

/* ===== COMPOSANTS ARTICLE (citation, callout, figure) ===== */
.article-figure {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
}
.article-figure img { width: 100%; display: block; }
.article-figure figcaption {
  font-size: 13px;
  color: var(--color-text-tertiary);
  padding: 10px 4px 0;
  text-align: center;
}

.article-quote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 0 12px 12px 0;
}
.article-quote-text {
  font-size: 17px;
  font-style: italic;
  color: var(--color-primary-dark);
  line-height: 1.6;
  margin-bottom: 10px;
}
.article-quote-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.article-quote-role { font-weight: 400; color: var(--color-text-secondary); }

.article-callout {
  margin: 32px 0;
  padding: 24px;
  background: var(--color-success-light);
  border: 1px solid rgba(15, 110, 86, 0.15);
  border-radius: 12px;
}
.article-callout h3 {
  color: var(--color-success);
  margin-bottom: 12px;
}
.article-callout ul { margin: 0 0 0 18px; }
.article-callout li { margin-bottom: 6px; color: var(--color-text-secondary); }

.article-faq { margin: 32px 0; }

.article-cta {
  margin: 40px 0 8px;
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(180deg, #E6F1FB 0%, #B5D4F4 100%);
  border-radius: 16px;
}
.article-cta h3 { color: var(--color-primary-dark); margin-bottom: 8px; }
.article-cta p { color: var(--color-primary); margin-bottom: 18px !important; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .pulse-in { opacity: 1; transform: none; transition: none; }
  .btn, .card, .header { transition: none; }
  .faq-answer { transition: none; }
  .reviews-track { animation: none; }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
}

@media (min-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 18px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: repeat(3, 1fr); }

  .bio-content { flex-direction: row; align-items: flex-start; text-align: left; }
  .bio-badges { justify-content: flex-start; }
  .bio-map { justify-content: flex-start; }

  .blog-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .header-cta-secondary { display: none; }
  .bio-photo { width: 140px; height: 140px; }
}

@media (max-width: 479px) {
  .header-name { display: none; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero-subtitle { font-size: 15px; }
}
