/*
Theme Name: Photobox
Theme URI:
Author:
Author URI:
Description: Thème WordPress sur-mesure et ultra-léger pour la vente d'une photobox 40 cm destinée aux vendeurs Vinted, Etsy, Amazon et Leboncoin. Photos de produits professionnelles en 10 secondes.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photobox
*/

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-text: #101828;
  --color-text-muted: #5B6472;
  --color-border: #E2E6EC;

  /* Palette Lilaya Studio — bleu professionnel, aucune trace d'orange */
  --color-accent: #0284C7;       /* bouton d'action principal */
  --color-accent-dark: #075985;  /* hover / libellés / accents */
  --color-accent-soft: #E6F2FB;  /* fonds teintés (icônes, badges) */
  --color-accent-contrast: #FFFFFF;
  --color-navy: #1E3A8A;         /* panneaux premium, contrastes */
  --color-navy-deep: #0F1E4D;    /* dégradé profond */
  --color-success: #3C7A5A;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-btn: 0 6px 16px rgba(2, 132, 199, 0.28);

  --container-width: 1160px;
  --header-height: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0 0 0.6em; }
ul, ol { padding-left: 1.2em; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Placeholder visuel tant qu'aucune vraie photo n'est encore insérée */
img[src=""],
img:not([src]) {
  background: repeating-linear-gradient(135deg, #EAEDF2, #EAEDF2 10px, #F5F7FA 10px, #F5F7FA 20px);
  border: 1px dashed var(--color-border);
  min-height: 220px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

.container.narrow { max-width: 760px; }

/* ==========================================================================
   2. Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-accent-contrast);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.36);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.btn-large { padding: 18px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ==========================================================================
   3. Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
}

.site-branding .site-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.site-branding img { max-height: 44px; width: auto; }

.site-nav { flex: 1; display: flex; justify-content: center; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
}
.nav-menu a:hover { color: var(--color-accent-dark); text-decoration: none; }

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

.btn-cta-header { padding: 11px 22px; font-size: 14px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-is-open .nav-toggle-bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-is-open .nav-toggle-bar:nth-child(3) { opacity: 0; }
.site-header.nav-is-open .nav-toggle-bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-header.nav-is-open .site-nav { display: block; }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }

  /* Sur mobile, le CTA du header cède la place à la barre flottante ci-dessous */
  .header-actions .btn-cta-header { display: none; }
}

/* ==========================================================================
   3bis. Barre d'achat flottante (mobile uniquement)
   ========================================================================== */
.mobile-buy-bar { display: none; }

@media (max-width: 860px) {
  .mobile-buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.10);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-buy-price { display: flex; flex-direction: column; line-height: 1.2; }
  .mobile-buy-price-label { font-size: 12px; color: var(--color-text-muted); }
  .mobile-buy-price-value { font-size: 18px; font-weight: 800; color: var(--color-text); }
  .mobile-buy-bar .btn { padding: 13px 22px; font-size: 14px; white-space: nowrap; }

  body { padding-bottom: 74px; }
}

/* ==========================================================================
   4. Sections génériques
   ========================================================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.section-subtitle { color: var(--color-text-muted); font-size: 17px; }

@media (max-width: 640px) {
  .section { padding: 48px 0; }
}

/* ==========================================================================
   5. Hero (accueil)
   ========================================================================== */
.hero { padding: 64px 0 72px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-text {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media .hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
}

/* ==========================================================================
   6. Preuve rapide (bénéfices)
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.benefit-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.benefit-text { color: var(--color-text-muted); font-size: 15px; margin-bottom: 0; }

@media (max-width: 780px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Résultat — Avant / Après
   ========================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-item { position: relative; }
.compare-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.compare-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Démonstration — étapes
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card { text-align: center; padding: 0 12px; }
.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-text { color: var(--color-text-muted); font-size: 15px; }

@media (max-width: 780px) {
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   9. Galerie d'exemples
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item { text-align: center; }
.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.gallery-caption { font-size: 14px; color: var(--color-text-muted); }

@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9bis. Fonds & accessoires (textures)
   ========================================================================== */
.textures-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.textures-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .textures-panel { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .textures-image { order: -1; }
}

/* ==========================================================================
   10. Achat
   ========================================================================== */
.purchase {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
}
.purchase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.purchase-content .section-title { color: #fff; }
.purchase-format {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.purchase-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}
.purchase-list li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: rgba(255,255,255,0.85);
}
.purchase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.purchase-price { font-size: 34px; font-weight: 800; margin-bottom: 24px; }
.purchase-price span { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.6); }
.purchase-media .purchase-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (max-width: 860px) {
  .purchase { padding: 32px 24px; }
  .purchase-inner { grid-template-columns: 1fr; gap: 28px; }
  .purchase-media { order: -1; }
}

/* ==========================================================================
   11. Mise en situation (simulation d'annonce)
   ========================================================================== */
.situation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.situation-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

@media (max-width: 860px) {
  .situation-inner { grid-template-columns: 1fr; }
  .situation-image { order: -1; max-height: 420px; }
}

/* ==========================================================================
   12. Page produit — "La photobox"
   ========================================================================== */
.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.product-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 26px;
}
.product-price { font-size: 30px; font-weight: 800; }
.product-price-note { color: var(--color-text-muted); font-size: 14px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 860px) {
  .product-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .product-hero-media { order: -1; }
}

.box-list, .object-list {
  list-style: none;
  padding: 0;
  max-width: 620px;
  margin: 0 auto;
}
.box-list li, .object-list li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.box-list li::before, .object-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.practical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.practical-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.practical-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
  margin-bottom: 8px;
}
.practical-text { font-size: 15px; color: var(--color-text-muted); margin-bottom: 0; }
.practical-actions { text-align: center; }

@media (max-width: 960px) {
  .practical-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .practical-grid { grid-template-columns: 1fr; }
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dimension-item { text-align: center; }
.dimension-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.dimension-caption { font-size: 14px; color: var(--color-text-muted); }

@media (max-width: 780px) {
  .dimensions-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  margin-bottom: 14px;
}
.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-weight: 700;
  font-size: 16px;
  position: relative;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 22px;
  color: var(--color-accent-dark);
}
.faq-item[open] .faq-question::after { content: "\2212"; }
.faq-answer { padding: 0 0 20px; color: var(--color-text-muted); }

.faq-cta { text-align: center; margin-top: 44px; }

/* ==========================================================================
   14. Pages de confiance (générique)
   ========================================================================== */
.page-content { padding: 64px 0 80px; }
.page-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }
.page-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.page-content p, .page-content li { color: var(--color-text-muted); }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 32px;
}
.footer-logo { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.footer-col h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: var(--color-text); font-size: 15px; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
