/* ============================================================
   Chat Minou — SLP Template — App CSS
   Mobile-first. Sobre. Lisible.
   ============================================================ */

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

body {
  background: var(--site-background-color);
  color: var(--default-text-color);
  font-family: var(--default-text-font);
  font-size: var(--default-text-size);
  line-height: var(--default-line-height);
  margin: 0;
}

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

a {
  color: var(--link-text-color);
}

/* ---- Conteneur SLP ---------------------------------------- */
.slp-container {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}

/* ---- Page container --------------------------------------- */
#page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content-wrapper {
  flex-grow: 1;
}

/* ---- Important Notice ------------------------------------- */
#important-notice {
  background: var(--important-notice-background-color);
  color: var(--important-notice-text-color);
  text-align: center;
  padding: 0.5em var(--gutter-x);
  font-size: 0.9em;
}

/* ---- Header SLP ------------------------------------------ */
#slp-header {
  background: var(--brand-card-bg);
  border-bottom: 1px solid var(--brand-border);
  padding: 1rem 0;
}

.slp-logo {
  display: block;
  width: fit-content;
}

.slp-logo img {
  height: 48px;
  width: auto;
}

/* ---- Footer SLP ------------------------------------------ */
#slp-footer {
  background: var(--footer-background-color);
  color: var(--footer-text-color);
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.875em;
  text-align: center;
}

.slp-footer-name {
  font-weight: 700;
  color: var(--footer-title-color);
  margin: 0 0 0.5rem;
}

.slp-footer-legal {
  margin: 0 0 1rem;
  line-height: 1.7;
  opacity: 0.8;
}

.slp-footer-links {
  font-size: 0.875em;
}

.slp-footer-links a {
  color: var(--footer-text-color);
  text-decoration: underline;
  margin: 0 0.5em;
  opacity: 0.7;
}

.slp-footer-links a:hover {
  opacity: 1;
}

/* ---- Notices (panier, erreurs) --------------------------- */
.notice,
.alert {
  padding: 0.75em 1em;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

/* ============================================================
   SLP — SECTIONS
   ============================================================ */

/* ---- Section commune -------------------------------------- */
.slp-section {
  padding: 3rem 0;
}

.slp-section + .slp-section {
  border-top: 1px solid var(--brand-border);
}

.slp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--brand-dark);
  line-height: 1.25;
}

/* ---- Section 1 : Hero ------------------------------------- */
.slp-hero {
  padding: 0;
  background: var(--brand-card-bg);
}

.slp-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
}

.slp-hero-body {
  padding: 2rem var(--gutter-x);
  max-width: 860px;
  margin: 0 auto;
}

.slp-hero-badge {
  display: inline-block;
  background: var(--brand-teal-light);
  border: 1px solid var(--brand-border);
  color: var(--brand-mid);
  font-size: 0.85rem;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.slp-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  line-height: 1.2;
  color: var(--brand-dark);
}

@media (min-width: 640px) {
  .slp-hero h1 {
    font-size: 2.4rem;
  }
}

.slp-hero-pricing {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.slp-price-final {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-orange);
  line-height: 1;
}

.slp-price-original {
  font-size: 1.1rem;
  color: var(--brand-mid);
  text-decoration: line-through;
}

.slp-price-saving {
  font-size: 0.95rem;
  color: var(--brand-teal-dark);
  font-weight: 600;
}

.slp-hero-meta {
  font-size: 0.9rem;
  color: var(--brand-mid);
  margin-bottom: 1.75rem;
}

.slp-cta-btn {
  display: inline-block;
  background: var(--success-button-background-color);
  color: var(--success-button-text-color);
  font-family: var(--default-text-font);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85em 2em;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  line-height: 1.3;
}

/* Spécificité renforcée pour contrer a:link/a:visited du framework */
.slp-cta-btn:link,
.slp-cta-btn:visited {
  color: var(--success-button-text-color);
  text-decoration: none;
}

.slp-cta-btn:hover,
.slp-cta-btn:focus,
.slp-cta-btn:active {
  background: var(--success-button-background-color-hover);
  color: var(--success-button-text-color);
  text-decoration: none;
}

.slp-cta-btn-full {
  width: 100%;
  display: block;
  text-align: center;
}

/* ---- Hero subtitle ---------------------------------------- */
.slp-hero-subtitle {
  font-size: 1.05rem;
  color: var(--brand-mid);
  margin: 0 0 1.25rem;
  line-height: 1.55;
  max-width: 520px;
}

/* ---- Section 2 : Sens — layout 2 colonnes (photo + texte) -- */
.slp-sens {
  background: var(--brand-teal-light);
  padding: 0;
  overflow: hidden;
}

/* Layout 2 colonnes sur desktop */
.slp-sens-2col {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .slp-sens-2col {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
  }
}

/* Photo */
.slp-sens-photo {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 640px) {
  .slp-sens-photo {
    width: 45%;
    flex-shrink: 0;
    max-height: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow-color);
  }
}

/* Bloc texte */
.slp-sens-prose {
  padding: 2rem var(--gutter-x);
}

@media (min-width: 640px) {
  .slp-sens-prose {
    padding: 0;
    flex: 1;
  }
}

.slp-sens-prose .slp-section-title {
  margin-bottom: 1rem;
}

.slp-sens-prose p {
  color: var(--brand-dark);
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.slp-sens-prose p:last-child {
  margin-bottom: 0;
}

/* em en teal + gras dans les sections prose */
.slp-sens-prose em,
.slp-quisommesnous-prose em {
  color: var(--brand-teal);
  font-style: normal;
  font-weight: 700;
}

/* ---- Section 4 : Qui sommes-nous ----------------------- */
.slp-quisommesnous {
  background: var(--brand-card-bg);
}

.slp-section-title--center {
  text-align: center;
}

.slp-quisommesnous-prose {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.slp-quisommesnous-prose p {
  color: var(--brand-dark);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.slp-quisommesnous-prose p:last-child {
  margin-bottom: 0;
}

/* ---- Section 3 : Valeur rationnelle ----------------------- */
.slp-valeur {
  background: var(--brand-bg);
}

.slp-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .slp-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Figure wrappant chaque couverture */
.slp-book-figure {
  position: relative;
  margin: 0;
  display: block;
  line-height: 0; /* supprime l'espace sous l'img */
}

.slp-book-cover {
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

.slp-book-figure:hover .slp-book-cover,
.slp-book-figure:focus-within .slp-book-cover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px var(--shadow-color);
}

/* Légende — overlay au hover sur écrans pointeur */
.slp-book-caption {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(74, 99, 98, 0.90);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.6rem;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  line-height: 1.35;
}

.slp-book-caption strong {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
}

.slp-book-caption span {
  font-size: 0.72rem;
  opacity: 0.88;
  display: block;
}

/* Hover / focus : révèle la légende sur écrans avec pointeur précis */
@media (hover: hover) and (pointer: fine) {
  .slp-book-figure:hover .slp-book-caption,
  .slp-book-figure:focus-within .slp-book-caption {
    opacity: 1;
  }
}

/* Sur écrans tactiles : légende visible sous l'image, pas en overlay */
@media (hover: none) {
  .slp-book-caption {
    position: static;
    background: transparent;
    color: var(--brand-mid);
    opacity: 1;
    padding: 0.4rem 0.25rem 0;
    border-radius: 0;
    gap: 0.2rem;
  }

  .slp-book-caption strong {
    font-size: 0.75rem;
    color: var(--brand-dark);
  }

  .slp-book-caption span {
    font-size: 0.7rem;
    opacity: 0.8;
  }

  .slp-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.slp-valeur-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .slp-valeur-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

.slp-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--brand-cream);
  border: 1px solid var(--brand-border);
  border-radius: var(--border-radius);
}

.slp-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-orange);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.slp-stat-label {
  font-size: 0.8rem;
  color: var(--brand-mid);
  line-height: 1.3;
}

.slp-valeur-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand-mid);
}

.slp-detail-tag {
  background: var(--brand-teal-light);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 0.25em 0.85em;
}

/* Liste structurée ✔ dans le bloc valeur */
.slp-valeur-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.slp-valeur-checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 0.95rem;
  color: var(--brand-mid);
  line-height: 1.5;
}

.slp-valeur-checklist li::before {
  content: "✔";
  color: var(--brand-orange);
  font-size: 0.8em;
  flex-shrink: 0;
  font-weight: 700;
}

@media (min-width: 640px) {
  .slp-valeur-checklist {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Section 2 : Sens — sous-titre "Qui sommes-nous ?" ------ */
.slp-sens-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-teal);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
}

/* ---- Section 4 : Projection --------------------------------- */
.slp-projection {
  background: var(--brand-card-bg);
}

.slp-projection-grid {
  display: grid;
  gap: 1.5rem;
}

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

.slp-projection-item {
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.slp-projection-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-teal);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.slp-projection-item p {
  font-size: 0.9rem;
  color: var(--brand-mid);
  line-height: 1.65;
  margin: 0;
}

/* ---- Section 4 : Qui sommes-nous — voir règles dans Section 2 bloc */

/* ---- Section 5 : Témoignages ------------------------------ */
.slp-temoignages {
  background: var(--brand-bg);
}

.slp-temoignages-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .slp-temoignages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.slp-temoignage {
  background: var(--brand-cream);
  border: 1px solid var(--brand-border);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.25rem;
}

.slp-temoignage blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  font-style: italic;
  color: var(--brand-dark);
  line-height: 1.7;
  font-size: 0.95rem;
}

.slp-temoignage cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--brand-mid);
  font-weight: 600;
}

/* ---- Section 6 : CTA final -------------------------------- */
.slp-cta-section {
  background: var(--brand-cream);
  border-top: 2px solid var(--brand-border);
  padding: 3rem 0 4rem;
}

.slp-cta-section .slp-section-title {
  text-align: center;
}

.slp-cta-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.slp-cta-price-recap {
  font-size: 1rem;
  color: var(--brand-mid);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.slp-cta-price-recap strong {
  color: var(--brand-orange);
  font-size: 1.4rem;
}

/* Formulaire "buy_now_form" dans le CTA final */
#slp-buy-form {
  margin-bottom: 1.25rem;
}

#slp-buy-form .form-group {
  display: none; /* Quantité masquée — produit unique, qté = 1 par défaut */
}

#slp-buy-form .stock-notice {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.slp-cta-reassurance {
  font-size: 0.8rem;
  color: var(--brand-mid);
  margin-top: 1rem;
  line-height: 1.6;
}

/* Stock status dans le CTA */
.slp-stock-status {
  font-size: 0.875rem;
  color: var(--brand-mid);
  margin-bottom: 1rem;
}

.slp-stock-status .stock-available {
  color: var(--brand-teal-dark);
  font-weight: 600;
}

.slp-stock-status .stock-unavailable {
  color: #a94442;
  font-weight: 600;
}

/* ---- Section 6 : FAQ ---------------------------------------- */
.slp-faq {
  background: var(--brand-bg);
}

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

.slp-faq-item {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.slp-faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  line-height: 1.4;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.slp-faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-teal);
  margin-left: 1rem;
  flex-shrink: 0;
}

.slp-faq-item[open] summary::after {
  content: "−";
}

.slp-faq-item[open] summary {
  border-bottom: 1px solid var(--brand-border);
}

.slp-faq-item p {
  padding: 0.75rem 1.25rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--brand-mid);
  line-height: 1.65;
}

/* ---- Breadcrumbs — masqués en SLP (produit unique) -------- */
#box-breadcrumbs {
  display: none;
}

/* ---- Suppression des éléments superflus ------------------- */
#scroll-up,
#site-menu,
#sidebar,
.social-bookmarks,
.slp-hide {
  display: none !important;
}

/* ---- Box product — reset de l'article natif LiteCart ------ */
/* On cache l'article natif car la vue SLP construit sa propre structure */
#box-product {
  /* pas de display:none — le JS interne en a besoin */
  /* Seule la section .card native est masquée via les classes SLP */
}

/* ---- Checkout (inchangé, hérité du template default) ------ */
#header {
  padding: 1rem;
}

/* ---- Notices LiteCart ------------------------------------- */
.notice-success {
  background: var(--success-notice-background-color);
  color: var(--success-notice-text-color);
  border-color: var(--success-notice-border-color);
}

.notice-warning {
  background: var(--warning-notice-background-color);
  color: var(--warning-notice-text-color);
  border-color: var(--warning-notice-border-color);
}

.notice-danger {
  background: var(--danger-notice-background-color);
  color: var(--danger-notice-text-color);
  border-color: var(--danger-notice-border-color);
}
