/*
Theme Name: Heli Air
Theme URI: https://juliendauphin.fr
Author: JulienD
Author URI: https://juliendauphin.fr
Description: Thème sur mesure pour Heli Air Events & Solutions
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heli-air
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --navy:       #0D2B45;
  --teal:       #1A8B9B;
  --teal-light: #2BBFCF;
  --white:      #FFFFFF;
  --gray:       #6B7A8D;

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-script:  'Dancing Script', cursive;

  --radius-pill: 9999px;
  --radius-sm:   6px;
  --radius-md:   12px;

  --t: .25s ease;
  --header-h: 200px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font-body); color: var(--navy); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; margin: 0; padding: 0; }

/* ============================================================
   ACCESSIBILITE
   ============================================================ */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ============================================================
   HEADER
   Transparent + liens navy par défaut
   Fond navy + liens blancs au scroll
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--header-h);
  background: transparent;
  transition: background var(--t), box-shadow var(--t), top var(--t);
}

#site-header.scrolled {
  background: rgba(13, 43, 69, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Barre admin WP */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

#site-header .header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  gap: 24px;
}

/* Logo */
#site-header .site-logo { flex-shrink: 0; }
#site-header .site-logo img { height: 56px; width: auto; }
#site-header .site-logo a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  transition: color var(--t);
}
#site-header.scrolled .site-logo a { color: var(--white); }

/* Nav centrale */
#site-header #primary-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#site-header #primary-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-header #primary-nav ul li {
  display: block;
  position: relative;
}

#site-header #primary-nav ul li a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  color: var(--navy);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--t);
  white-space: nowrap;
  text-decoration: none;
}

#site-header #primary-nav ul li a:hover,
#site-header #primary-nav ul .current-menu-item > a {
  color: var(--teal);
}

/* Au scroll : liens blancs */
#site-header.scrolled #primary-nav ul li a {
  color: var(--white);
}
#site-header.scrolled #primary-nav ul li a:hover,
#site-header.scrolled #primary-nav ul .current-menu-item > a {
  color: var(--teal-light);
}

/* Sous-menus desktop */
#site-header #primary-nav ul li ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  flex-direction: column;
  min-width: 200px;
  background: rgba(13, 43, 69, 0.97);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  padding: 8px;
  gap: 0;
  display: none;
}
#site-header #primary-nav ul li:hover > ul,
#site-header #primary-nav ul li:focus-within > ul {
  display: flex;
}
#site-header #primary-nav ul li ul li a {
  color: var(--white);
  padding: 10px 14px;
  font-size: .85rem;
  border-radius: var(--radius-sm);
}
#site-header #primary-nav ul li ul li a:hover {
  background: rgba(43,191,207,.15);
  color: var(--teal-light);
}

/* Droite : téléphone + CTA */
#site-header .header-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

#site-header .header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .82rem;
  color: var(--navy);
  white-space: nowrap;
  transition: color var(--t);
}
#site-header .header-phone .dashicons { color: var(--teal); font-size: 1rem; }
#site-header .header-phone a { color: inherit; }

#site-header.scrolled .header-phone { color: rgba(255,255,255,.85); }
#site-header.scrolled .header-phone .dashicons { color: var(--teal-light); }

#site-header .btn-devis {
  display: inline-block;
  padding: 10px 22px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .82rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--navy);
  white-space: nowrap;
  transition: background var(--t), border-color var(--t);
}
#site-header .btn-devis:hover {
  background: var(--teal);
  border-color: var(--teal);
}
#site-header.scrolled .btn-devis {
  background: transparent;
  border-color: rgba(255,255,255,.4);
}
#site-header.scrolled .btn-devis:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* Burger */
#site-header .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
#site-header .menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--t);
}
#site-header.scrolled .menu-toggle span { background: var(--white); }
#site-header .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-header .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
#site-header .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   Fond navy, 3 infos centrées sur une ligne
   ============================================================ */
#site-footer {
  background: var(--navy);
  padding-block: 28px;
}

#site-footer .footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

#site-footer .footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: color var(--t);
  text-decoration: none;
}
#site-footer .footer-item:hover { color: var(--teal-light); }
#site-footer .footer-item .dashicons { color: var(--teal-light); font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE HEADER
   ============================================================ */
@media (max-width: 960px) {
  #site-header .header-phone { display: none; }
  #site-header .btn-devis    { display: none; }
  #site-header .menu-toggle  { display: flex; }

  #site-header #primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(13, 43, 69, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  #site-header #primary-nav.is-open { transform: translateX(0); }

  #site-header #primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #site-header #primary-nav ul li a {
    color: var(--white);
    font-size: 1rem;
    padding: 14px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  /* Sous-menus mobile */
  #site-header #primary-nav ul li ul {
    position: static;
    display: none;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius-md);
    box-shadow: none;
    padding: 4px 0;
    margin-top: 4px;
    flex-direction: column;
  }
  #site-header #primary-nav ul li.submenu-open > ul { display: flex; }
  #site-header #primary-nav ul li ul li a { padding: 10px 20px; border: none; }
}

@media (max-width: 480px) {
  #site-footer .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================================
   WORDPRESS UTILS
   ============================================================ */
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide  { max-width: 1400px; margin-inline: auto; }
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }