/**
 * SEVY CRÉATIONS BOIS — ACCUEIL CSS
 * Dernière modification : 2026-04-29 17:40
 * Version: 1.0.0
 * Page d'accueil complète avec hero, best-sellers, univers, avis, galerie
 * Optimisé pour performance et SEO
 */

/* ============================================================
  VARIABLES & RESET
============================================================ */
:root {
  --bois: #8B5E3C;
  --bois-sombre: #5C3D20;
  --bois-clair: #C4945A;
  --beige: #F5F0E8;
  --beige-sombre: #EDE5D5;
  --blanc: #FDFAF6;
  --noir-doux: #2C2420;
  --gris-texte: #6B5D52;
  --gris-leger: #D6CFC5;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;

  --rayon: 8px;
  --rayon-lg: 16px;
  --max-width: 1160px;
  --gap-section: 100px;

  --ombre: 0 2px 20px rgba(92, 61, 32, 0.08);
  --ombre-forte: 0 8px 40px rgba(92, 61, 32, 0.15);
  --transition: all 0.25s ease;
}

/* Wrapper reset Astra */
.sevy-accueil-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: block;
  clear: both;
}

/* Fix iOS: évite le contenu "coupé" (scroll/clipping) */
.page-template-template-accueil-php #content,
.page-template-page-templates-template-accueil-php #content,
.page-template-template-accueil-php .site-content,
.page-template-page-templates-template-accueil-php .site-content,
.page-template-template-accueil-php .ast-container,
.page-template-page-templates-template-accueil-php .ast-container {
  overflow: visible !important;
}

.sevy-accueil-wrapper * {
  box-sizing: border-box;
}

/* Reset de base */
.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;
}

/* ============================================================
  TYPOGRAPHIE
============================================================ */
.section-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bois-pale);
  margin-bottom: 14px;
}

.section-titre {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--bois-sombre);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-sous-titre {
  font-size: 17px;
  color: var(--gris-texte);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================================================
  BOUTONS
============================================================ */
.btn-groupe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--rayon);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.btn-primaire {
  background: var(--bois-sombre);
  color: var(--beige);
  border-color: var(--bois-sombre);
}

.btn-primaire:hover {
  background: var(--bois);
  border-color: var(--bois);
  transform: translateY(-1px);
  box-shadow: var(--ombre);
}

.btn-secondaire {
  background: transparent;
  color: var(--bois-sombre);
  border-color: var(--bois-sombre);
}

.btn-secondaire:hover {
  background: var(--bois-sombre);
  color: var(--beige);
  transform: translateY(-1px);
}

.btn-blanc {
  background: var(--blanc);
  color: var(--bois-sombre);
  border-color: var(--blanc);
}

.btn-blanc:hover {
  background: var(--beige);
  transform: translateY(-1px);
}

.btn-outline-blanc {
  background: transparent;
  color: var(--blanc);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-blanc:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-orange {
  background: var(--bois-clair);
  color: var(--blanc);
  border-color: var(--bois-pale);
  font-size: 15px;
  padding: 16px 32px;
}

.btn-orange:hover {
  background: var(--bois);
  border-color: var(--bois);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 94, 60, 0.3);
}

/* ============================================================
  HERO
============================================================ */
.hero {
  min-height: 82vh;
  min-height: 82svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 0;
}

.hero-fond {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.33);
  transform: scale(1.03);
  transition: transform 10s ease;
  will-change: transform;
}

.hero:hover .hero-fond {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,32,0.78) 0%, rgba(92,61,32,0.2) 50%, transparent 100%);
}

.hero-contenu {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 72px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253, 250, 246, 0.86);
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(253, 250, 246, 0.7);
}

.hero-titre {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 400;
  color: #FDFAF6;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 700px;
}

.hero-sous-titre {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(253,250,246,0.68);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
  
}

.hero-bestsellers {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-bs-item {
  background: rgba(253, 250, 246, 0.95);
  border-radius: var(--rayon-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  min-width: 280px;
  text-decoration: none;
}

.hero-bs-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-forte);
}

.hero-bs-img {
  width: 64px;
  height: 64px;
  border-radius: var(--rayon);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-bs-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--bois-sombre);
  margin-bottom: 4px;
}

.hero-bs-prix {
  font-size: 18px;
  font-weight: 700;
  color: var(--bois-pale);
  font-family: var(--font-serif);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(253, 248, 242, 0.5);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(253, 248, 242, 0.3);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ============================================================
  PREUVES SOCIALES
============================================================ */
.preuves-section {
  background: var(--blanc);
  padding: 60px 24px;
  border-bottom: 1px solid var(--gris-leger);
}

.preuves-grille {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.preuve-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preuve-icone {
  font-size: 32px;
  margin-bottom: 8px;
}

.preuve-chiffre {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--bois-sombre);
  line-height: 1;
}

.preuve-texte {
  font-size: 14px;
  color: var(--gris-texte);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
  BEST-SELLERS
============================================================ */
.bestsellers-section {
  padding: var(--gap-section) 24px;
  background: var(--beige);
}

.bestsellers-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.bestsellers-grille {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.bestseller-carte {
  background: var(--blanc);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  border: 1px solid var(--gris-leger);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.bestseller-carte:hover {
  transform: translateY(-8px);
  box-shadow: var(--ombre-forte);
  border-color: var(--bois-pale);
}

.bestseller-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--blanc);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.03em;
}

.bestseller-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--beige);
}

.bestseller-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: scale(1.03);
  transition: transform 10s ease;
  will-change: transform;
}

.bestseller-carte:hover .bestseller-img {
  transform: scale(1.05);
}

.bestseller-contenu {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bestseller-nom {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--bois-sombre);
  margin-bottom: 8px;
  line-height: 1.3;
}

.bestseller-desc {
  font-size: 13px;
  color: var(--gris-texte);
  margin-bottom: 16px;
  line-height: 1.6;
}

.bestseller-avis {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gris-texte);
}

.bestseller-avis::before {
  content: '⭐';
  font-size: 16px;
}

.bestseller-prix-ligne {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.bestseller-prix {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--bois-pale);
}

.bestseller-prix-barre {
  font-size: 18px;
  color: var(--gris-texte);
  text-decoration: line-through;
  opacity: 0.6;
}

.bestseller-stock {
  font-size: 12px;
  font-weight: 700;
  color: var(--bois-pale);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bestseller-stock::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--bois-sombre);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.bestseller-delai {
  font-size: 13px;
  color: var(--gris-texte);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bestseller-delai::before {
  content: '📦';
  font-size: 14px;
}

.bestseller-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.bestseller-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
  UNIVERS PRODUITS
============================================================ */
.univers-section {
  padding: var(--gap-section) 24px;
  background: var(--blanc);
}

.univers-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.univers-grille {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.univers-carte {
  border: 1px solid var(--gris-leger);
  border-radius: var(--rayon-lg);
  padding: 36px 28px;
  background: var(--beige);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.univers-carte::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--bois-clair);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.univers-carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-forte);
  border-color: var(--bois-pale);
}

.univers-carte:hover::before {
  transform: scaleX(1);
}

.univers-header-carte {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.univers-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bois-pale);
}

.univers-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bois-pale);
  background: rgba(196, 148, 90, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.univers-titre {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--bois-sombre);
  margin-bottom: 12px;
}

.univers-desc {
  font-size: 14px;
  color: var(--gris-texte);
  line-height: 1.6;
  margin-bottom: 16px;
}

.univers-prix {
  font-size: 13px;
  color: var(--gris-texte);
  margin-bottom: 16px;
}

.univers-prix strong {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--bois-sombre);
  font-weight: 400;
}

.univers-modeles {
  font-size: 12px;
  color: var(--gris-texte);
  margin-bottom: 20px;
  font-weight: 500;
}

.univers-lien {
  font-size: 13px;
  font-weight: 700;
  color: var(--bois-pale);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  margin-top: auto;
}

.univers-carte:hover .univers-lien {
  gap: 10px;
}

/* ============================================================
  AVIS CLIENTS
============================================================ */
.avis-section {
  padding: var(--gap-section) 24px;
  background: var(--beige);
}

.avis-header {
  text-align: center;
  margin-bottom: 42px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.avis-google-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--blanc);
  border: 1px solid var(--gris-leger);
  border-radius: var(--rayon-lg);
  padding: 24px;
  box-shadow: var(--ombre);
  overflow: hidden;
}

.avis-widget-desktop {
  display: block;
}

.avis-widget-mobile {
  display: none;
}

/* ============================================================
  RÉASSURANCE
============================================================ */
.reassurance-section {
  padding: var(--gap-section) 24px;
  background: var(--blanc);
  border-top: 1px solid var(--gris-leger);
  border-bottom: 1px solid var(--gris-leger);
}

.reassurance-grille {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.reassurance-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reassurance-icone {
  font-size: 24px;
  color: var(--bois-pale);
  display: block;
  margin-bottom: 6px;
}

.reassurance-titre {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--bois-sombre);
}

.reassurance-texte {
  font-size: 14px;
  color: var(--gris-texte);
  line-height: 1.65;
}

/* ============================================================
  GALERIE
============================================================ */
.galerie-section {
  padding: var(--gap-section) 24px;
  background: var(--beige-sombre);
}

.galerie-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.galerie-grille {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.galerie-item {
  border-radius: var(--rayon-lg);
  overflow: hidden;
  position: relative;
}

.galerie-item:first-child {
  grid-row: span 2;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: scale(1.03);
  transition: transform 10s ease;
  will-change: transform;
}

.galerie-item:hover img {
  transform: scale(1.05);
}

.galerie-footer {
  text-align: center;
  margin-top: 40px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
  RESPONSIVE — TABLETTE
============================================================ */
@media (max-width: 900px) {
  .preuves-grille {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

  .univers-grille {
    grid-template-columns: 1fr;
  }

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

  .galerie-item:first-child {
    grid-row: span 1;
  }

  .reassurance-grille {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero-bestsellers {
    flex-direction: column;
  }

  .hero-bs-item {
    width: 100%;
  }
  
  .avis-google-wrap {
    padding: 16px;
  }
  
  .avis-widget-desktop {
    display: none;
  }
  
  .avis-widget-mobile {
    display: block;
  }
}

/* ============================================================
  RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 560px) {
  :root {
    --gap-section: 60px;
  }

  .preuves-section {
    padding: 40px 16px;
  }

  .preuves-grille {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bestsellers-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bestseller-carte {
    max-width: none;
    margin: 0;
  }

  .bestseller-contenu {
    padding: 16px;
  }

  .bestseller-nom {
    font-size: 18px;
  }

  .bestseller-prix {
    font-size: 26px;
  }

  .bestseller-actions {
    gap: 10px;
  }

  .galerie-grille {
    grid-template-columns: 1fr;
  }

  .galerie-item {
    grid-row: span 1 !important;
  }

  .reassurance-grille {
    grid-template-columns: 1fr;
  }

  .hero-contenu {
    padding: calc(24px + env(safe-area-inset-top, 0px)) 28px 72px;
  }

  .hero-titre {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-fond {
    background-position: 65% center;
  }

  .btn-groupe {
    flex-direction: column;
    width: 100%;
  }

  .btn-groupe .btn {
    width: 100%;
  }

  .btn {
    padding: 16px 32px;
    min-height: 48px;
  }
}

/* Très petits écrans: repasse en 1 colonne pour garder la lisibilité */
@media (max-width: 420px) {
  .bestsellers-grille {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
  OPTIMISATIONS PERFORMANCE
============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bois-clair);
  outline-offset: 2px;
}