/*
Theme Name:  Logistic Events
Theme URI:   https://logistic-events.fr
Author:      Agence
Description: Thème custom Logistic Events — prestataire technique audiovisuel. WooCommerce + ACF Pro.
Version:     1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License:     Proprietary
Text Domain: logistic-events
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --c-dark:        #050810;
  --c-dark2:       #080d1a;
  --c-dark3:       #0d1628;
  --c-dark4:       #111e35;
  --c-gold:        #c8a44a;
  --c-gold-light:  #e8c86a;
  --c-gold-dim:    rgba(200, 164, 74, 0.15);
  --c-purple:      #6c3bbf;
  --c-purple2:     #8b54e0;

  /* Text */
  --t-primary:   rgba(255, 255, 255, 0.92);
  --t-secondary: rgba(255, 255, 255, 0.50);
  --t-muted:     rgba(255, 255, 255, 0.25);

  /* Borders */
  --b-subtle:  rgba(255, 255, 255, 0.06);
  --b-mid:     rgba(255, 255, 255, 0.12);
  --b-gold:    rgba(200, 164, 74, 0.25);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: 80px;
  --container:  1240px;
  --gutter:     48px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--t-primary);
  background: var(--c-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-py);
}

.section--alt   { background: var(--c-dark2); }
.section--dark3 { background: var(--c-dark3); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-gold);
  margin-bottom: 14px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}

.section-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--t-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.section-title--xl {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -2px;
}

.section-title .gold  { color: var(--c-gold); }
.section-title .ghost { color: transparent; -webkit-text-stroke: 1px rgba(200, 164, 74, 0.5); }

.section-sub {
  font-size: 16px;
  color: var(--t-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: opacity .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.btn:hover, .btn:focus, .btn:visited { text-decoration: none; }

.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.98); }

.btn--gold {
  background: var(--c-gold);
  color: #0a0a0a;
}

.btn--outline {
  background: transparent;
  color: var(--t-secondary);
  border: 0.5px solid var(--b-mid);
}

.btn--outline:hover { color: var(--t-primary); border-color: var(--b-mid); }

.btn--purple {
  background: var(--c-purple);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--c-gold);
  padding-inline: 0;
  gap: 6px;
}

.btn--ghost:hover { opacity: 1; gap: 10px; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
}

.badge--gold   { background: var(--c-gold); color: #0a0a0a; }
.badge--purple { background: var(--c-purple); color: #fff; }
.badge--dim    { background: var(--c-gold-dim); color: var(--c-gold); border: 0.5px solid var(--b-gold); }

/* ============================================================
   CARDS BASE
   ============================================================ */
.card {
  background: var(--c-dark3);
  border: 0.5px solid var(--b-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}

.card:hover { border-color: var(--b-mid); }

.card--gold:hover { border-color: rgba(200, 164, 74, 0.35); }

/* ============================================================
   FORMS
   ============================================================ */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--t-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--c-dark2);
  border: 0.5px solid var(--b-subtle);
  border-radius: var(--r-md);
  padding: 11px 14px;
  color: var(--t-primary);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--c-purple2);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--t-muted);
}

/* ============================================================
   DIVIDERS & DECORATIVE
   ============================================================ */
.divider {
  width: 100%;
  height: 0.5px;
  background: var(--b-subtle);
}

.gold-line {
  width: 40px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 1px;
  margin-block: 16px;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES (base)
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--c-dark3) !important;
  border-top-color: var(--c-gold) !important;
  color: var(--t-secondary) !important;
}

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

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-py: 60px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-py: 48px;
  }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .section-title--xl { letter-spacing: -1px; }
}
