/* ====================================
   HOLZEO - DESIGN PREMIUM
   Basé sur le screenshot du site holzeo.fr
   ==================================== */

/* ==================
   PAGES AVEC FOND IMAGE PLEINE PAGE
   ================== */

/* Page catégorie avec fond d'image complet */
.category-page-fullbg {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay blanc transparent sur toute la page */
.category-page-fullbg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.50);
  z-index: 0;
}

/* Contenu au dessus de l'overlay */
.category-page-fullbg > * {
  position: relative;
  z-index: 1;
}

/* ====================
   HEADER MODERNE HOLZEO
   ==================== */

.holzeo-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 93, 79, 0.1);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.holzeo-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.holzeo-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.holzeo-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.holzeo-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.holzeo-nav a:hover {
  color: var(--color-primary);
}

/* ====================
   CARDS MODERNES HOLZEO
   ==================== */

.holzeo-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(45, 93, 79, 0.08);
}

.holzeo-card:hover {
  box-shadow: 0 8px 30px rgba(45, 93, 79, 0.15);
  transform: translateY(-2px);
}

.holzeo-card-default {
  background: linear-gradient(135deg, #f8f6f3 0%, #ffffff 100%);
  border-left: 4px solid var(--color-primary);
}

/* ====================
   BOUTONS STYLE HOLZEO
   ==================== */

.btn-holzeo {
  background: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(45, 93, 79, 0.2);
}

.btn-holzeo:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 93, 79, 0.3);
}

.btn-holzeo-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-holzeo-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* ====================
   SECTION HERO
   ==================== */

.hero-section {
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-text-light);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ====================
   BREADCRUMB MODERNE
   ==================== */

.holzeo-breadcrumb {
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.holzeo-breadcrumb a {
  color: var(--color-text-light);
  transition: color 0.2s;
}

.holzeo-breadcrumb a:hover {
  color: var(--color-primary);
}

.holzeo-breadcrumb-separator {
  margin: 0 0.75rem;
  color: var(--color-text-light);
  opacity: 0.5;
}

/* ====================
   FORMULAIRES MODERNES
   ==================== */

.holzeo-input,
.holzeo-select,
.holzeo-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.holzeo-input:focus,
.holzeo-select:focus,
.holzeo-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(45, 93, 79, 0.08);
}

.holzeo-label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ====================
   BADGES / STATUTS
   ==================== */

.holzeo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.holzeo-badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.holzeo-badge-warning {
  background: #fff3e0;
  color: #e65100;
}

.holzeo-badge-info {
  background: #e3f2fd;
  color: #1976d2;
}

/* ====================
   PROGRESS BAR MODERNE
   ==================== */

.holzeo-progress {
  width: 100%;
  height: 12px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.holzeo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.holzeo-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ====================
   UPLOAD ZONE MODERNE
   ==================== */

.holzeo-upload-zone {
  border: 3px dashed #d0d0d0;
  border-radius: 16px;
  background: #fafafa;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.holzeo-upload-zone:hover,
.holzeo-upload-zone.drag-over {
  background: #f0f8f5;
  border-color: var(--color-primary);
  border-style: solid;
}

.holzeo-upload-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.holzeo-upload-text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ====================
   SECTION CONTENT
   ==================== */

.holzeo-section {
  margin-bottom: 3rem;
}

.holzeo-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
  letter-spacing: -0.02em;
}

/* ====================
   LOGIN PAGE PREMIUM
   ==================== */

.holzeo-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #2d5d4f 0%, #3d7d6f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.holzeo-login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -20px); }
}

.holzeo-login-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ====================
   RESPONSIVE
   ==================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .holzeo-card {
    padding: 1.5rem;
  }

  .holzeo-header {
    padding: 0.5rem 0;
  }

  .holzeo-header-content {
    padding: 0 0.5rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .holzeo-logo {
    flex-shrink: 0;
  }

  .holzeo-logo img {
    height: 40px !important;
    max-height: 40px !important;
  }

  .holzeo-nav {
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
  }

  .holzeo-nav > span,
  .holzeo-nav > div {
    display: none; /* Cacher le titre du projet sur mobile */
  }

  .holzeo-nav .btn-holzeo,
  .holzeo-nav .btn-holzeo-outline {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.7rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .holzeo-section-title {
    font-size: 1.5rem;
  }

  /* Hero section mobile */
  .hero-section .container {
    flex-direction: column !important;
    text-align: center !important;
  }

  .hero-section img {
    width: 100px !important;
    height: 100px !important;
  }

  /* Container padding mobile */
  .container {
    padding: 0 0.75rem !important;
  }
}

/* Mobile petit écran */
@media (max-width: 480px) {
  .holzeo-header-content {
    justify-content: space-between;
    padding: 0 0.5rem;
  }

  .holzeo-logo {
    flex-shrink: 0;
  }

  .holzeo-logo img {
    height: 35px !important;
    max-height: 35px !important;
  }

  .holzeo-nav {
    justify-content: flex-end;
    gap: 0.25rem;
  }

  /* Cacher "Contactez-nous" sur très petit écran pour gagner de la place */
  .holzeo-nav .btn-holzeo-outline,
  .holzeo-nav button.btn-holzeo-outline {
    display: none !important;
  }

  .holzeo-nav .btn-holzeo,
  .holzeo-nav button.btn-holzeo,
  .holzeo-nav button[data-action="logout"] {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  /* Réduire les tailles de texte sur très petit écran */
  .holzeo-section-title {
    font-size: 1.25rem;
  }
}

/* Mode paysage mobile - empêcher tout débordement */
@media (max-height: 500px) and (orientation: landscape) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .holzeo-header {
    position: fixed !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Ajouter du padding top au body pour compenser le header fixed */
  body {
    padding-top: 70px;
  }

  .holzeo-logo img {
    height: 40px !important;
    max-height: 40px !important;
  }

  .hero-section {
    padding: 1.5rem 0 !important;
  }

  .hero-title {
    font-size: 1.5rem !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }
}
