/* ==========================================================================
   Olivier Grimault — Landing Page Entreprises
   Fond blanc dominant, accents noir / rouge bordeaux.
   Palette provisoire — à ajuster avec la charte graphique exacte
   (codes hex à confirmer avec Alex / creatchoc.fr)
   ========================================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAF8F6;
  --color-black: #15110F;
  --color-text: #1C1815;
  --color-text-muted: #6F655C;
  --color-accent: #8C2333;       /* rouge bordeaux — jamais du rouge pur */
  --color-accent-soft: #F4E4E6;
  --color-border: #EAE4DD;

  --font-display: 'Montserrat', 'Libre Franklin', Arial, sans-serif;
  --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-full: 999px;
  --max-width: 1120px;
  --shadow-card: 0 1px 2px rgba(21,17,15,0.04), 0 12px 32px rgba(21,17,15,0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--color-black);
  line-height: 1.15;
  margin: 0 0 16px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
}

h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }

p {
  margin: 0 0 14px;
}

section {
  padding: 56px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

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

.eyebrow-rotate {
  display: inline-block;
  color: var(--color-black);
  transition: opacity 0.25s ease;
}

/* ---- Placeholders visuels (en attente des assets réels) ---- */
.img-placeholder {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 24px;
  min-height: 220px;
}

/* ---- Header (inspiré Richart : minimal, blanc, logo à gauche) ---- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.logo-wordmark {
  display: block;
  text-decoration: none;
}

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

.logo-wordmark img {
  height: 40px;
  width: auto;
  display: block;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-full);
  padding: 15px 30px;
  border: 1.5px solid var(--color-black);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-invert {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-invert:hover {
  background: var(--color-bg);
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-header {
  padding: 9px 20px;
  font-size: 13px;
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-header:hover {
  background: var(--color-bg);
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-bg);
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---- Hero : bloc unique et centré ---- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: var(--color-bg);
  text-align: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

/* Fresque circulaire discrète en fond du hero : anneau de petits chocolats qui
   tourne très lentement (pur CSS, sans JS). Chaque pièce contre-tourne dans
   l'autre sens pour rester "droite" pendant qu'elle orbite. */
.hero-orbit {
  --orbit-size: clamp(640px, 78vw, 1180px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin-top: calc(var(--orbit-size) / -2);
  margin-left: calc(var(--orbit-size) / -2);
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
  display: none;
}

.orbit-ring {
  position: relative;
  width: 100%;
  height: 100%;
  animation: orbit-spin 90s linear infinite;
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateX(calc(var(--orbit-size) * 0.44));
}

.orbit-item-counter {
  display: block;
  transform: translate(-50%, -50%);
  animation: orbit-spin-reverse 90s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@media (min-width: 900px) {
  .hero-orbit {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring,
  .orbit-item-counter {
    animation: none;
  }
}

.hero-copy h1 {
  font-size: 36px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual .btn {
  margin-top: 20px;
}

/* Bandeau de confiance intégré au hero, pas une bande séparée */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.trust-row .stars {
  color: var(--color-accent);
  letter-spacing: 1px;
}

.trust-divider {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}

.trust-badge {
  font-weight: 700;
  color: var(--color-black);
}

.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 40px auto 0;
}

.hero-visual .img-placeholder {
  min-height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-visual img {
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: 13px;
  font-style: italic;
  object-fit: cover;
}

.hero-visual-caption {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Sections génériques ---- */
.section-alt {
  background: var(--color-bg-soft);
}

.section-header {
  max-width: 560px;
  margin: 0 auto 36px;
  text-align: center;
}

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

/* ---- Solution : texte à gauche, visuel à droite ---- */
.solution-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.solution-copy {
  text-align: left;
}

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

.solution-visual {
  width: 100%;
}

.solution-visual img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .solution-split {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .solution-copy {
    flex: 1.4;
    min-width: 0;
  }

  .solution-visual {
    flex: 1;
    max-width: 340px;
    min-width: 0;
  }
}

/* ---- Bénéfices : bande noire premium ---- */
.section-dark {
  background: var(--color-black);
}

.section-dark .section-header h2 {
  color: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
}

/* Mobile : items empilés, séparés par un filet clair */
.benefit-card {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.benefit-card:first-child {
  border-top: none;
  padding-top: 0;
}

.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--color-bg);
}

.benefit-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
}

/* ---- FAQ en accordéon ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-black);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 4px 20px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---- Étapes de la commande : parcours relié par une courbe ---- */
.steps-wrap {
  position: relative;
}

/* Courbe décorative : masquée en mobile, la timeline verticale prend le relais */
.steps-path {
  display: none;
}

.steps-path path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.3;
}

.steps-list {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

/* Segment vertical entre deux étapes (mobile) */
.step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 62px;
  bottom: -38px;
  width: 2px;
  background: var(--color-accent-soft);
}

/* Marqueur d'étape : bonbon de chocolat moulé — rainures fines en diagonale,
   liseré de moule sur le pourtour, brillance en haut et fond de ganache en bas. */
.step-number {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background-image:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0 2px, rgba(0, 0, 0, 0) 2px 10px),
    linear-gradient(145deg, #A62B3D 0%, var(--color-accent) 48%, #6B1A26 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.09),
    inset 0 2px 5px rgba(255, 255, 255, 0.26),
    inset 0 -5px 10px rgba(0, 0, 0, 0.32),
    0 8px 18px rgba(140, 35, 51, 0.22);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.step-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14.5px;
}

/* ---- Offre / tarifs dégressifs — bande noire ---- */
.offer-banner {
  background: var(--color-black);
  color: var(--color-bg);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}

.offer-banner h2 {
  color: var(--color-bg);
}

.offer-banner p {
  color: #C9C0B8;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.offer-banner .btn {
  margin-top: 10px;
}

/* ---- Grille produits ---- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .img-placeholder {
  min-height: 180px;
  border-radius: 0;
  border-width: 0 0 1px 0;
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  text-align: center;
}

.product-count {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.product-body p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Ligne format + personnalisation : détachée du descriptif et mise en avant */
.product-spec {
  color: var(--color-text);
  font-weight: 600;
}

.pricing-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 18px;
}

.pricing-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table td:first-child {
  width: 65%;
  color: var(--color-text-muted);
}

.pricing-table td:last-child {
  width: 35%;
  text-align: right;
  font-weight: 700;
  color: var(--color-black);
}

.product-body .btn {
  margin-top: auto;
}

.products-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 28px;
}

/* ---- Formulaire ---- */
.form-section {
  background: var(--color-bg);
}

.form-plaque {
  background: var(--color-accent);
  border-radius: var(--radius);
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px;
}

@media (min-width: 768px) {
  .form-plaque {
    padding: 64px 56px;
  }
}

.form-plaque .section-header h2 {
  color: var(--color-bg);
}

.form-plaque .section-header p {
  color: rgba(255, 255, 255, 0.92);
}

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(21, 17, 15, 0.28);
  padding: 36px 32px;
}

#form-submit {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

#form-submit:hover {
  background: var(--color-bg);
  border-color: var(--color-black);
  color: var(--color-black);
}

.form-row {
  margin-bottom: 22px;
}

.form-row-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-black);
}

input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
  text-align: center;
}

.form-message {
  display: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-message.success {
  display: block;
  background: #EEF4EC;
  color: #2E5A28;
}

.form-message.error {
  display: block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-black);
  color: #A69C92;
  padding: 36px 0;
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: #C9C0B8;
  text-decoration: none;
}

.site-footer p {
  margin: 0 0 6px;
}

.footer-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  margin: 0 auto 14px;
}

/* ==========================================================================
   Tablette / Desktop
   ========================================================================== */
@media (min-width: 768px) {
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }

  section {
    padding: 84px 0;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }

  /* Le filet du haut ne concerne plus que la 2e rangée */
  .benefit-card:nth-child(-n + 2) {
    border-top: none;
    padding-top: 0;
  }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  /* Courbe de progression passant d'un bonbon à l'autre.
     top = centre du bonbon (32px) - centre de la courbe (60px dans le viewBox). */
  .steps-path {
    display: block;
    position: absolute;
    top: -28px;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .step-item:not(:last-child)::before {
    display: none;
  }

  .step-number {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    font-size: 22px;
  }

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

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

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Bande de 4 bénéfices séparés par de fins filets verticaux */
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 0;
  }

  .benefit-card {
    padding: 0 28px;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .benefit-card:first-child {
    border-left: none;
    padding-left: 0;
  }

  .benefit-card:last-child {
    padding-right: 0;
  }
}
