/*
Theme Name:   Kadence Child Nexorde
Theme URI:    https://nexorde.fr
Description:  Thème enfant Kadence personnalisé pour Nexorde — palette marine/crème/terre, typographie Fraunces+Manrope, header et footer Nexorde intégrés sur toutes les pages.
Author:       Nexorde
Author URI:   https://nexorde.fr
Template:     kadence
Version:      2.3.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  kadence-child-nexorde
*/

/* ============================================================
   NEXORDE — Thème enfant Kadence V2
   Inclut : Header custom + Footer custom + Typographie
   Palette : marine deep + crème ivoire + terre orange
   Typo : Fraunces (display) + Manrope (body) + JetBrains Mono (accents)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --nexorde-marine: #1B2D4A;
  --nexorde-marine-deep: #131F35;
  --nexorde-creme: #F4EFE5;
  --nexorde-creme-light: #FAF6EE;
  --nexorde-terre: #C97C4D;
  --nexorde-terre-hover: #A56640;
  --nexorde-terre-light: #E0A079;
  --nexorde-noir: #1A1A1A;
  --nexorde-gris: #6B6660;
  --nexorde-gris-light: #B8B3AB;
  --nexorde-border: rgba(27, 45, 74, 0.12);
}

/* ============================================================
   MASQUER LE HEADER ET FOOTER KADENCE PAR DÉFAUT
   ============================================================ */

.site-header,
header.site-header,
.site-footer,
footer.site-footer {
  display: none !important;
}

/* Supprimer padding top auto ajouté par certains thèmes */
body.kadence-child-nexorde-active .site {
  padding-top: 0 !important;
}

/* ============================================================
   HEADER NEXORDE CUSTOM
   ============================================================ */

.nexorde-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(244, 239, 229, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27, 45, 74, 0.12);
  width: 100%;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.nexorde-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nexorde-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #131F35;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nexorde-logo:hover {
  color: #C97C4D;
}

.nexorde-logo-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #C97C4D;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Logo image (header) */
.nexorde-logo-img {
  display: block;
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.nexorde-logo-text {
  display: inline-block;
  line-height: 1;
}

/* Mobile : réduire un peu le logo */
@media (max-width: 480px) {
  .nexorde-logo-img {
    height: 30px;
  }
  .nexorde-logo {
    font-size: 1.3rem;
  }
}

.nexorde-nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nexorde-nav-menu li {
  margin: 0;
  padding: 0;
}

.nexorde-nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1B2D4A;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'Manrope', system-ui, sans-serif;
}

.nexorde-nav-menu a:hover {
  color: #C97C4D;
}

/* Bouton CTA S'abonner dans le header */
.nexorde-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background-color: #131F35;
  color: #F4EFE5 !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: 'Manrope', system-ui, sans-serif;
  border: 1px solid #131F35;
}

.nexorde-nav-btn:hover {
  background-color: #C97C4D;
  border-color: #C97C4D;
  color: #F4EFE5 !important;
  transform: translateY(-1px);
}

/* Menu hamburger mobile */
.nexorde-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #131F35;
}

.nexorde-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Responsive header */
@media (max-width: 768px) {
  .nexorde-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #F4EFE5;
    flex-direction: column;
    padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
    gap: 1rem;
    border-bottom: 1px solid rgba(27, 45, 74, 0.12);
    box-shadow: 0 8px 20px -8px rgba(27, 45, 74, 0.2);
  }

  .nexorde-nav-menu.nexorde-nav-open {
    display: flex;
  }

  .nexorde-nav-menu li {
    width: 100%;
    text-align: left;
  }

  .nexorde-nav-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .nexorde-mobile-toggle {
    display: block;
  }
}

/* ============================================================
   FOOTER NEXORDE CUSTOM
   ============================================================ */

.nexorde-footer {
  background-color: #131F35;
  color: rgba(244, 239, 229, 0.6);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(244, 239, 229, 0.08);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.nexorde-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.nexorde-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .nexorde-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .nexorde-footer-grid {
    grid-template-columns: 1fr;
  }
}

.nexorde-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nexorde-footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F4EFE5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.nexorde-footer-logo:hover {
  color: #C97C4D;
}

.nexorde-footer-logo-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #C97C4D;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Logo image footer (sur fond marine deep) */
.nexorde-footer-logo-img {
  display: block;
  height: 36px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

.nexorde-footer-logo-text {
  display: inline-block;
  line-height: 1;
}

.nexorde-footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(244, 239, 229, 0.7);
  max-width: 320px;
  margin: 0;
}

.nexorde-footer-col h4 {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E0A079;
  margin: 0 0 1.25rem 0;
  font-weight: 500;
}

.nexorde-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nexorde-footer-col li {
  margin-bottom: 0.6rem;
}

.nexorde-footer-col a {
  font-size: 0.9rem;
  color: rgba(244, 239, 229, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nexorde-footer-col a:hover {
  color: #C97C4D;
}

.nexorde-footer-btn {
  display: inline-block;
  background-color: #C97C4D;
  color: #131F35 !important;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 0.75rem;
}

.nexorde-footer-btn:hover {
  background-color: #F4EFE5;
  color: #131F35 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(201, 124, 77, 0.5);
}

.nexorde-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 239, 229, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(244, 239, 229, 0.5);
}

.nexorde-footer-bottom a {
  color: rgba(244, 239, 229, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nexorde-footer-bottom a:hover {
  color: #C97C4D;
}

.nexorde-footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .nexorde-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ============================================================
   UTILITAIRES GLOBAUX (à utiliser sur toutes les pages)
   ============================================================ */

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  color: #1A1A1A;
  background: #F4EFE5;
}

/* Headings Nexorde par défaut */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif !important;
  color: #131F35;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-variation-settings: "opsz" 144;
}
