/* ==========================================================================
   COACH-FREDM.EU — Design System "Luxe Naturel & Provence"
   CSS pur, léger, responsive, accessible et progressif (SEO-friendly)
   ========================================================================== */

:root {
  /* Palette principale */
  --bg-cream: #FAF8F5;
  --bg-sand: #F2EDE4;
  --bg-white: #FFFFFF;
  --green-deep: #1A3626;
  --green-botanical: #284D37;
  --green-soft: #E8F0EB;
  --gold: #B98D4F;
  --gold-hover: #A2783E;
  --gold-soft: #F6EFE3;

  /* Textes & bordures */
  --text-main: #1D231F;
  --text-muted: #555F58;
  --text-on-dark: #F7F5F0;
  --border-soft: rgba(26, 54, 38, 0.12);
  --border-strong: rgba(26, 54, 38, 0.24);

  /* Typographie */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rayons & ombres */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(26, 54, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 54, 38, 0.09);
  --shadow-lg: 0 22px 48px rgba(26, 54, 38, 0.12);

  /* Conteneur & transitions */
  --container-max: 1200px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset moderne */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Accessibilité : lien d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Utilitaires de mise en page */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section--sand {
  background-color: var(--bg-sand);
}

.section--white {
  background-color: var(--bg-white);
}

.section--dark {
  background-color: var(--green-deep);
  color: var(--text-on-dark);
}

.section--dark .text-muted {
  color: rgba(247, 245, 240, 0.78);
}

/* Typographie */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 0;
  color: inherit;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: 0.65rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.eyebrow--badge {
  background: var(--gold-soft);
  color: #88612A;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(185, 141, 79, 0.28);
}

.section--dark .eyebrow--badge {
  background: rgba(185, 141, 79, 0.16);
  color: var(--gold-light);
  border-color: rgba(216, 185, 130, 0.3);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.75rem;
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Barre d'information supérieure */
.topbar {
  background: var(--green-deep);
  color: rgba(247, 245, 240, 0.9);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar__dot {
  color: var(--gold-light);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}

.brand__name span {
  color: var(--gold);
}

.brand__sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green-deep);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 245px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-dropdown__item:hover,
.nav-dropdown__item[aria-current="page"] {
  background: var(--bg-sand);
  color: var(--green-deep);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--green-deep);
  font-weight: 600;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
}

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

.btn--primary:hover {
  background: var(--green-botanical);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn--outline:hover {
  background: var(--green-deep);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 4.5rem;
  background: radial-gradient(circle at 85% 15%, rgba(185, 141, 79, 0.12), transparent 45%),
              linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-sand) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.hero__lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero__media {
  position: relative;
}

.hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 54, 38, 0.1);
  background: var(--bg-white);
}

.hero__floating-card {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  max-width: 260px;
}

.hero__floating-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--green-deep);
}

.hero__floating-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Page Header (pages internes) */
.page-hero {
  padding: 3rem 0 3.25rem;
  background: linear-gradient(180deg, var(--bg-sand) 0%, var(--bg-cream) 100%);
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.breadcrumb a:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

/* Grilles & Cartes */
.grid {
  display: grid;
  gap: 1.75rem;
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card--sand {
  background: var(--bg-sand);
}

.card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-on-dark);
}

.card__img {
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-botanical);
  background: var(--green-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

/* Bandeau chiffres clés */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-item__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.1;
}

.stat-item__label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.split__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

/* Listes vérifiées */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Filtres interactifs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

/* Simulateur interactif VDI */
.simulator {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.simulator__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

.sim-control {
  margin-bottom: 1.5rem;
}

.sim-control label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.sim-control input[type="range"] {
  width: 100%;
  accent-color: var(--green-deep);
  cursor: pointer;
}

.sim-result {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.85rem;
}

.sim-result__amount {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
}

.sim-result__breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1rem;
  font-size: 0.9rem;
  display: grid;
  gap: 0.4rem;
}

/* Tableaux comparatifs */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.compare-table thead th {
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Accordéon FAQ */
.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
}

.faq-answer[hidden] {
  display: none;
}

/* Formulaires */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  background: #fff;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback.is-success {
  display: block;
  background: var(--green-soft);
  color: var(--green-deep);
  border: 1px solid rgba(26, 54, 38, 0.25);
}

.form-feedback.is-error {
  display: block;
  background: #FCECEB;
  color: #7D221D;
  border: 1px solid rgba(125, 34, 29, 0.25);
}

/* Callout / Bannière CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--green-deep) 0%, #244733 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner__text {
  max-width: 620px;
}

.cta-banner__text p {
  color: rgba(247, 245, 240, 0.84);
  margin-bottom: 0;
}

/* Timeline étapes */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-box {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  position: relative;
}

.step-box__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #88612A;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: rgba(247, 245, 240, 0.86);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(247, 245, 240, 0.72);
}

/* Barre de progression lecture */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* Animations progressives (toujours visible sans JS pour les bots) */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid,
  .split,
  .simulator__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .grid--4,
  .steps-timeline,
  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__floating-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-desktop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
  }

  .nav-desktop.is-open {
    display: flex;
  }

  .nav-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--bg-cream);
    margin-top: 0.25rem;
  }

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

@media (max-width: 560px) {
  .grid--4,
  .steps-timeline,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }
}
