/*
 Theme Name:   Hiit Center Child
 Theme URI:    https://hiit-center.com
 Description:  Theme enfant OceanWP pour hiit-center.com - Refonte UI/UX sport/performance
 Author:       Regis
 Author URI:   https://hiit-center.com
 Template:     oceanwp
 Version:      1.0.0
 License:      GNU General Public License v2.0 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hiit-center-child
 Tags:         one-column, right-sidebar, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   DESIGN SYSTEM - VARIABLES CSS
   ========================================================================== */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #22c55e;
  --urgency: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --transition: .2s ease;

  --silo-team: #2563eb;
  --silo-train: #16a34a;
  --silo-equip: #d97706;
  --silo-goal: #9333ea;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
/* C4: reset global `*` retire - cassait les blocs Gutenberg/Spectra/UAGB.
   Les remises a zero sont desormais scopees sous .hiit-center-child. */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

/* C4: `ul { list-style:none }` global retire - cassait les listes
   Gutenberg/Spectra/UAGB et du contenu. Scope sous .hiit-center-child. */
.hiit-center-child .main-nav ul {
  list-style: none;
}

/* ==========================================================================
   CONTAINER & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

.btn-sm {
  padding: 8px 20px;
  font-size: .85rem;
}

.stars {
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   OCEANWP OVERRIDES - Remove default styling conflicts
   ========================================================================== */
.owp-nav-links {
  display: none;
}

#main {
  padding: 0;
}

/* ==========================================================================
   M1 (2026-09-02 LOGOFIX) - LOGO HEADER : taille maitrisee
   Cause racine : custom_logo imbrique dans une ancre -> structure cassee.
   Correction : selecteur robuste .custom-logo-link + header compact.
   Desktop 100x36 | Mobile <=768px 80x28
   ========================================================================== */
.site-header .custom-logo-link {
  display: inline-block;
  line-height: 1;
}
.site-header .custom-logo-link img.custom-logo,
.site-header img.custom-logo {
  max-width: 100px !important;
  max-height: 36px !important;
  width: auto !important;
  height: auto !important;
}
@media (max-width: 1024px) and (min-width: 769px) {
  .site-header .custom-logo-link img.custom-logo,
  .site-header img.custom-logo {
    max-width: 80px !important;
    max-height: 28px !important;
  }
  .site-header { padding: 4px 0 !important; }
  .header-search { display: none; }
}
@media (max-width: 768px) {
  .site-header .custom-logo-link img.custom-logo,
  .site-header img.custom-logo {
    max-width: 72px !important;
    max-height: 26px !important;
  }
  .site-header { padding: 4px 0 !important; }
  .site-header .header-inner { min-height: 42px !important; }
  .header-search { display: none; }
}

}
