/*
Theme Name: OpSoft Apps
Theme URI: https://opsoft.ca
Author: Webit Interactive
Author URI: https://webit.ca
Description: Thème WordPress custom, léger et performant, conçu pour présenter un portfolio d'applications mobiles. Compatible Elementor (version gratuite). Style inspiré d'Apple : noir, blanc, couleur punch. Sections plein écran avec défilement type "Whatnot".
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: opsoft-apps
*/

/* =========================================================
   1. DESIGN TOKENS — palette Apple-like (noir / blanc / punch)
   ========================================================= */
:root {
  /* Couleurs de base */
  --c-black: #0a0a0a;
  --c-black-soft: #111113;
  --c-white: #ffffff;
  --c-off-white: #f5f5f7; /* gris très clair type Apple */
  --c-gray-100: #e8e8ed;
  --c-gray-300: #a1a1a6;
  --c-gray-600: #6e6e73;
  --c-gray-900: #1d1d1f;

  /* Couleur "punch" — à changer ici pour tout le site */
  --c-punch: #ff4c29;
  --c-punch-dark: #e03d1c;
  --c-punch-contrast: #ffffff;

  /* Sémantique */
  --bg-body: var(--c-white);
  --bg-inverse: var(--c-black);
  --text-body: var(--c-gray-900);
  --text-muted: var(--c-gray-600);
  --text-inverse: var(--c-white);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-subtle-inverse: rgba(255, 255, 255, 0.12);

  /* Typo — pile système type Apple, aucune requête réseau */
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  /* Rythme / espacements */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1200px;
  --header-height: 72px;

  /* Transitions douces, cohérentes partout */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 180ms;
  --speed-med: 400ms;
  --speed-slow: 700ms;
}

/* =========================================================
   2. RESET LÉGER
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-body);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

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

h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

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

/* =========================================================
   3. TYPOGRAPHIE — échelle type Apple (grands titres, gras)
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-punch);
  margin-bottom: 12px;
}

.display-1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
}

.display-2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 640px;
}

/* =========================================================
   4. BOUTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform var(--speed-fast) var(--ease),
    background var(--speed-fast) var(--ease),
    opacity var(--speed-fast) var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-punch {
  background: var(--c-punch);
  color: var(--c-punch-contrast);
}

.btn-punch:hover {
  background: var(--c-punch-dark);
}

.btn-light {
  background: var(--c-white);
  color: var(--c-black);
}

.btn-outline-inverse {
  background: transparent;
  border-color: var(--border-subtle-inverse);
  color: var(--text-inverse);
}

.btn-outline-inverse:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-link {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--c-punch);
  font-weight: 600;
}

.btn-link::after {
  content: "→";
  margin-left: 6px;
  display: inline-block;
  transition: transform var(--speed-fast) var(--ease);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   5. HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--speed-med) var(--ease),
    border-color var(--speed-med) var(--ease);
}

.site-header.is-dark {
  background: rgba(10, 10, 10, 0.72);
  border-bottom-color: var(--border-subtle-inverse);
}

.site-header.is-dark .site-branding,
.site-header.is-dark .main-nav a {
  color: var(--text-inverse);
}

.site-header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.site-branding img {
  height: 28px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--speed-fast) var(--ease);
}

.main-nav a:hover {
  color: var(--c-punch);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer {
  background: var(--c-black);
  color: var(--c-gray-300);
  padding: 64px 0 32px;
}

.site-footer a {
  color: var(--c-gray-300);
  transition: color var(--speed-fast) var(--ease);
}

.site-footer a:hover {
  color: var(--c-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle-inverse);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--c-gray-600);
}

.widget-title {
  color: var(--c-white);
  font-size: 14px;
  margin-bottom: 16px;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

/* =========================================================
   7. RESPONSIVE — nav mobile simple
   ========================================================= */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--c-white);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--speed-med) var(--ease),
      transform var(--speed-med) var(--ease);
    padding: 32px 24px;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 24px;
  }

  .main-nav a {
    font-size: 22px;
  }

  .menu-toggle {
    display: block;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
