:root {
  /* Palette inspirée de rendement360.com */
  --bg: #f6eee6; /* crème du fond */
  --bg-accent: #e9dfcfff; /* halo à droite */
  --card: #ffffff; /* cartes blanches */
  --ink: #0f2a22; /* texte principal (vert/charcoal) */
  --muted: #6b766f; /* texte secondaire gris-vert */
  --stroke: #e7e0d7; /* bordures douces */
  --primary: #0d6a5b; /* vert bouton principal */
  --primary-600: #0b5d50; /* hover vert */
  --secondary: #ed8a66; /* saumon (bouton secondaire) */
  --secondary-soft: #fff2eb; /* hover doux saumon */
  --focus: 0 0 0 3px rgba(13, 106, 91, 0.18);
  --radius-card: 24px;
  --radius-input: 14px;
  --shadow-lg: 0 30px 70px rgba(15, 42, 34, 0.08);
  --shadow-sm: 0 10px 26px rgba(15, 42, 34, 0.06);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Helvetica Neue";
  color: var(--ink);
  background: radial-gradient(
      900px 600px at 78% 26%,
      var(--bg-accent),
      transparent 60%
    ),
    var(--bg);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
}

/* Marque */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.8;
}

.brand .name {
  font-family: Fraunces, serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 22px;
}

.brand .wordmark {
  color: var(--ink);
}

.logo {
  height: 40px;
  width: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}

.hero h1 {
  font-family: Fraunces, serif;
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  margin: 10px 0 6px;
}

.lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 56ch;
}

/* Carte formulaire */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

/* Steps */
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.steps .step {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #efe6da;
  position: relative;
  overflow: hidden;
}

.steps .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.35s ease;
}

.form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 2px 16px;
}

.form-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.form-title .tag {
  font-size: 12px;
  color: var(--muted);
  background: #fbf6ef;
  border: 1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 999px;
}

form {
  display: grid;
  gap: 18px;
}

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

/* Champs – inclure TOUTES les variantes pour éviter les styles natifs */
.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-weight: 700;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--stroke);
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: 0.15s ease border-color, 0.15s ease box-shadow;
}

input::placeholder,
textarea::placeholder {
  color: #9aa39e;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

/* Aides & erreurs */
.helper {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.error {
  display: none;
  font-size: 14px;
  color: #991b1b;
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  line-height: 1.5;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.show-error {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Style des champs en erreur */
input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Animation de focus sur les champs */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 106, 91, 0.1);
  transition: all 0.2s ease;
}

/* Boutons pilules */
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.1px;
  transition: all 0.2s ease;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: #803f2e;
  border: 2px solid var(--secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--secondary-soft);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pastilles & jauge */
.pillbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 12px;
  background: #fbf6ef;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill.active {
  background: linear-gradient(
    90deg,
    rgba(13, 106, 91, 0.08),
    rgba(237, 138, 102, 0.08)
  );
  border-color: #e3d4c5;
}

.meter {
  height: 10px;
  background: #efe6da;
  border-radius: 999px;
  overflow: hidden;
}

.meter .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

/* Section info */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}

.info-grid h3 {
  font-family: Fraunces, serif;
  font-size: 22px;
  margin: 4px 0 8px;
}

.info-grid p {
  color: var(--muted);
  margin: 0;
}

/* Success message */
.success-message {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  color: #0c4a6e;
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  .wrap {
    padding: 32px 20px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

  .card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 24px 16px 16px;
  }

  .hero h1 {
    font-size: clamp(28px, 6vw, 42px);
  }

  .card {
    padding: 16px;
  }

  .form-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

.step-pane[hidden] {
  display: none !important;
}

/* Section Performance */
.performance {
  margin-top: 60px;
  padding: 60px 0;
}

.performance-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.performance-text h2 {
  font-family: Fraunces, serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.1;
}

.performance-text .lead {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 20px;
}

.performance-text p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.performance-text .disclaimer {
  font-size: 14px;
  margin-top: 30px;
}

.performance-text .note {
  font-size: 12px;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 30px;
}

.director-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: 400px;
  margin-top: 60px;
  box-shadow: var(--shadow-lg);
}

.director-photo {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.director-info h3 {
  font-family: Fraunces, serif;
  font-size: 20px;
  margin: 0 0 4px;
}

.director-info p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.director-card blockquote {
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin: 20px 0 0;
  padding: 0;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .performance-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .director-card {
    margin-top: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .performance {
    padding: 40px 0;
  }

  .performance-content {
    padding: 0 16px;
  }

  .director-card {
    padding: 20px;
  }
}

/* Section Avantages */
.advantages {
  margin-top: 60px;
  padding: 60px 0;
  background-color: var(--card);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.advantages-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: Fraunces, serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.advantage-card {
  text-align: center;
  padding: 20px;
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-family: Fraunces, serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
}

.advantage-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.source-note {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* Responsive pour la grille d'avantages */
@media (max-width: 980px) {
  .advantages {
    padding: 40px 0;
  }

  .advantages-content {
    padding: 0 20px;
  }

  .advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .advantages {
    padding: 30px 0;
  }

  .advantages-content {
    padding: 0 16px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .advantage-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
  }

  .section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
}

/* Section Experts */
.experts {
  margin-top: 60px;
  background-color: var(--primary);
  border-radius: var(--radius-card);
  color: white;
  overflow: hidden;
}

.experts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px;
}

.experts-text h2 {
  font-family: Fraunces, serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.1;
}

.experts-text p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 30px;
  opacity: 0.9;
}

.experts-photos {
  display: flex;
  position: relative;
  margin-right: -100px;
}

.expert-photo {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  margin-left: -20px;
  border: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.expert-photo:hover {
  transform: translateY(-5px);
}

.expert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Style spécial pour le bouton dans la section experts */
.experts .btn-primary {
  background: white;
  color: var(--primary);
  border: none;
  padding: 14px 28px;
}

.experts .btn-primary:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

/* Responsive pour la section experts */
@media (max-width: 980px) {
  .experts {
    margin-top: 40px;
  }

  .experts-content {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    text-align: center;
    gap: 30px;
  }

  .experts-text {
    max-width: 600px;
    margin: 0 auto;
  }

  .experts-photos {
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
  }

  .expert-photo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .experts-content {
    padding: 30px 16px;
  }

  .experts-text h2 {
    font-size: clamp(24px, 5vw, 36px);
  }

  .experts-text p {
    font-size: 16px;
  }

  .experts-photos {
    flex-wrap: wrap;
    gap: 10px;
    margin-right: 0;
  }

  .expert-photo {
    width: 80px;
    height: 80px;
    margin-left: 0;
  }
}

/* Section Témoignages */
.testimonials {
  margin-top: 80px;
  padding: 60px 0;
  background-color: var(--card);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.testimonials-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.quote-icon {
  width: 60px;
  height: auto;
  margin-bottom: 30px;
  opacity: 0.8;
}

.testimonial-text {
  font-family: Fraunces, serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 40px;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-photo {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  color: var(--ink);
}

.author-title {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--stroke);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Animation des slides */
.testimonial-slide.prev {
  transform: translateX(-100%);
  opacity: 0;
}

.testimonial-slide.next {
  transform: translateX(100%);
  opacity: 0;
}

/* Footer */
.footer {
  background-color: var(--ink);
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content .brand .name {
  color: white;
  margin-bottom: 12px;
}

.footer-content .brand-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.footer-content .brand-link:hover {
  opacity: 0.8;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 16px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-disclaimer {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 900px;
  text-align: left;
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

/* Pages légales */
.legal-page {
  margin-top: 40px;
  padding: 40px 0;
}

/* Centrer le logo sur les pages légales */
.wrap.legal-header .brand,
.wrap.legal-header a.brand {
  justify-content: center;
  margin-bottom: 24px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.legal-content h1 {
  font-family: Fraunces, serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  margin: 0 0 40px;
  line-height: 1.1;
  color: var(--ink);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-family: Fraunces, serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink);
}

.legal-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
  font-size: 15px;
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.legal-actions {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--stroke);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 24px;
    margin: 0 16px;
  }

  .footer-links {
    gap: 16px;
    font-size: 13px;
  }

  .footer-disclaimer {
    margin-top: 24px;
    padding-top: 24px;
    text-align: center;
  }

  .footer-disclaimer p {
    font-size: 11px;
  }

  .footer-disclaimer strong {
    font-size: 12px;
  }
}

/* Animation de highlight pour le formulaire */
.highlight-form {
  animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
  0% {
    box-shadow: var(--shadow-lg);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(13, 106, 91, 0.3), var(--shadow-lg);
    transform: scale(1.02);
  }
  100% {
    box-shadow: var(--shadow-lg);
  }
}
