/*
Theme Name: Maisha
Theme URI: https://example.com/maisha
Author: Maisha Theme
Author URI: https://example.com
Description: Thème WordPress complet pour une boutique produit avec pages Accueil, Produit, À propos, Avis, FAQ, Boutique, Contact et Panier.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maisha
Tags: one-column, custom-menu, featured-images, responsive-layout
*/

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #f8f8f7;
}

a {
  color: #2d6cdf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header,
footer,
main,
section,
article {
  display: block;
}

.site-header,
.site-footer {
  background: #ffffff;
  border-bottom: 1px solid #e3e3e0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
}

.site-footer.site-footer-alt {
  background: transparent;
  border-top: none;
  color: inherit;
}

.site-footer.site-footer-alt .footer-alt-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-footer.site-footer-alt .footer-alt-item,
.site-footer.site-footer-alt .footer-alt-logo {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer.site-footer-alt a {
  color: inherit;
  text-decoration: underline;
}

/* FAQ accordion styles */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}
.faq-question {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  padding: 0.75rem 0;
  cursor: pointer;
}
.faq-question[aria-expanded="true"] {
  font-weight: 700;
}
.faq-answer {
  padding: 0.5rem 0 1rem 0;
  color: #333;
}

@media (max-width: 600px) {
  .faq-container {
    padding: 0.5rem;
  }
  .faq-question { font-size: 1rem; }
}

/* Footer FAQ adjustments */
#footer-faq { background: transparent; }
#footer-faq .faq-container { box-shadow: 0 6px 18px rgba(0,0,0,0.06); border-radius:6px; }
#footer-faq .faq-answer p { margin:0; }

.site-header .site-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.site-branding {
  flex-shrink: 0;
}

.site-description {
  display: none;
}

.site-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-navigation {
  flex: 1;
}

.site-navigation ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  width: 100%;
}

.site-navigation li {
  margin: 0;
}

.site-navigation li:nth-child(1) {
  order: 1;
}

.site-navigation li:nth-child(2) {
  order: 3;
  margin-left: auto;
}

.site-navigation li:nth-child(3) {
  order: 2;
}

.site-navigation li:nth-child(4) {
  order: 4;
}

.site-navigation li:nth-child(5) {
  order: 5;
}

.site-navigation a {
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.section {
  background: #fff;
  margin: 1.5rem 0;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(23, 29, 45, 0.05);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 0 1.5rem;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: min(100%, 520px);
  color: #fff;
  text-align: left;
  padding: 4rem 2rem;
}

.hero-content .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 2rem;
  max-width: 38rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.hero-content .button {
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  background: #fff;
  color: #111;
  border-radius: 999px;
}

.hero-content .button:hover {
  opacity: 0.92;
}

.video-wrapper {
  margin-top: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(23, 29, 45, 0.08);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure the full video is visible (no cropping) */
.video-wrapper video {
  object-fit: contain;
  background: #000;
}

.button,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.button-primary {
  background: #111827;
  color: #fff;
}

.button-secondary {
  background: transparent;
  border: 1px solid #111827;
  color: #111827;
}

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

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

.card {
  background: #f3f4f6;
  border-radius: 18px;
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
}

.section-intro {
  max-width: 700px;
}

.product-gallery,
.testimonials-grid,
.faq-list,
.contact-grid,
.cart-summary {
  display: grid;
  gap: 1.5rem;
}

.product-gallery img,
.testimonials-grid img,
.feature-image,
.card img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.gallery-section h2 {
  margin-bottom: 0.75rem;
}

.gallery-instruction {
  margin: 0 0 1.5rem;
  color: #555;
  font-size: 0.98rem;
}

.gallery-manual {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 24px;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 0;
  transition: transform 0.35s ease;
  will-change: transform;
}

.gallery-track img,
.gallery-video-slide {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.gallery-track img {
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23, 29, 45, 0.06);
}

.gallery-video-slide video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23, 29, 45, 0.06);
}

.gallery-viewport {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.gallery-nav {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #111;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-nav:hover,
.gallery-nav:focus {
  background: #f7fafc;
  transform: translateY(-1px);
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.product-options label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-options select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d6d6d2;
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
}

.product-options .button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Comment form styles */
.product-comment-section {
  margin-top: 1.5rem;
}
.product-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
}
.product-comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.product-comment-form input,
.product-comment-form textarea,
.product-comment-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e2;
  border-radius: 8px;
  font-size: 1rem;
}
.comments-section .comments-list {
  display: grid;
  gap: 1rem;
}
.comments-section .comment {
  padding: 1rem;
  background: #f8f8f7;
  border-radius: 12px;
}
.comments-section .comment-meta {
  margin: 0 0 0.5rem;
  color: #333;
}
.comments-section .comment-body {
  color: #444;
}

/* Site background color */
body {
  background-color: #f5f0e6;
}

/* Floating review button (FAB) and modal */
.review-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #222;
  color: #fff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 1200;
  font-weight: 700;
}
.review-fab:focus { outline: 2px solid #fff; outline-offset: 3px; }

.review-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.review-modal.is-open {
  display: block;
}
.review-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.review-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 720px;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.review-modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 720px) {
  .review-modal-content { padding: 1.5rem; }
}

.feature-image {
  min-height: 420px;
  background: radial-gradient(circle at top left, #fdf7f2, #f8f8f7);
}

.video-section {
  text-align: center;
}

.video-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(23, 29, 45, 0.1);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.list-unstyled {
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-unstyled li {
  margin: 0.9rem 0;
}

.features-list li::before {
  content: "✓";
  margin-right: 0.6rem;
  color: #2d6cdf;
}

blockquote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: #eff6ff;
  border-left: 4px solid #2d6cdf;
  border-radius: 16px;
}

footer {
  padding: 2rem 0;
}

.site-footer p,
.site-footer a {
  color: #666;
}

/* Nouveau footer: hero + social + newsletter */
.site-footer {
  background: #ffffff;
  padding: 4rem 0 2rem;
  color: #111;
}
.site-footer .footer-top {
  padding: 3rem 0 1.5rem;
  text-align: center;
}
.footer-hero {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin: 0 0 0.25rem;
  letter-spacing: 0.08em;
}
.footer-sub {
  margin: 0 0 1.25rem;
  color: #777;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-decor {
  width: 2px;
  height: 90px;
  background: #111;
  margin: 2rem auto;
}
.newsletter-title {
  margin: 1.5rem 0;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.social-list {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.social-list li a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #eaeaea;
}
.site-footer .footer-widgets p {
  margin: 0 0 0.25rem;
}
.site-footer .copyright {
  margin: 0;
  color: #666;
}

@media(max-width:900px) {
  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-decor {
    height: 60px;
  }
}

@media(max-width: 900px) {
  .hero,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 65vh;
    padding: 0;
  }

  .hero-content {
    padding: 2.5rem 1.5rem;
    color: #fff;
    background: transparent;
    text-align: left;
  }
}

@media(max-width: 640px) {
  .site-inner {
    padding: 1rem;
  }

  .site-navigation {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* FAQ Styles */
.faq-header {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.faq-intro {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  border-left: 4px solid #2d6cdf;
}

.faq-question {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: #2d6cdf;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: #555;
  line-height: 1.75;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer ul {
  margin: 1rem 0;
  padding-left: 0;
}

.faq-cta {
  text-align: center;
  background: #f8f8f7;
  border-radius: 18px;
}

.faq-cta h2 {
  margin-bottom: 0.5rem;
}

.faq-cta p {
  color: #666;
  margin-bottom: 2rem;
}

@media(max-width: 768px) {
  .faq-item {
    padding: 1.5rem;
  }

  .faq-question {
    font-size: 1.1rem;
  }
}

/* Cart Styles */
.cart-section {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.cart-card {
  background: #fff;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(23, 29, 45, 0.05);
  margin-bottom: 1.5rem;
}

.cart-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: #111;
}

.cart-card p {
  color: #666;
  margin: 0.5rem 0;
}

.cart-items {
  margin-bottom: 1.5rem;
}

.cart-item {
  padding: 1.5rem;
  background: #f3f4f6;
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 4px solid #2d6cdf;
}

.cart-item p {
  margin: 0.5rem 0;
  color: #555;
}

.payment-summary {
  background: #f8f8f7;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e3e3e0;
  font-size: 0.95rem;
}

.summary-line.total {
  border-bottom: none;
  border-top: 2px solid #111;
  margin-top: 0.75rem;
  padding-top: 1rem;
  font-size: 1.1rem;
  color: #111;
}

.cart-card .button {
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: center;
}

@media(max-width: 640px) {
  .cart-card {
    padding: 1.5rem;
  }

  .summary-line {
    font-size: 0.9rem;
  }
}

/* Payment Methods */
.payment-methods {
  text-align: center;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.payment-logo {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #f8f8f7;
  border: 1px solid #e3e3e0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

@media(max-width: 640px) {
  .payment-logo {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Styles pour la page À propos */
.maisha-about {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  color: #222;
}
.maisha-about h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
.maisha-about p {
  margin: 0.9rem 0;
  line-height: 1.7;
  color: #444;
}
.maisha-about .values {
  display: block;
  margin: 1.25rem auto;
  max-width: 640px;
  text-align: left;
}
.maisha-about .signature {
  margin-top: 1.5rem;
  font-style: italic;
}

@media (max-width: 720px) {
  .maisha-about { padding: 1rem; }
}

