/*
Theme Name: KIAMIS Child
Theme URI: https://ofkiamisco.ofkiamis.fr
Description: Thème enfant Hello Elementor — OF KIAMIS / Liceria & Co. Transport & Logistique
Author: OF KIAMIS
Author URI: https://ofkiamisco.ofkiamis.fr
Template: hello-elementor
Version: 1.0.0
Text Domain: kiamis-child
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — OF KIAMIS
   Toutes les variables CSS globales
═══════════════════════════════════════════════════════════════ */
:root {
  --navy:        #0d1b3e;
  --navy-mid:    #1a2f5e;
  --red:         #c0001e;
  --red-dk:      #8c0015;
  --gold:        #e8a020;
  --green:       #1a7a4a;
  --off:         #f4f3f0;
  --white:       #ffffff;
  --text:        #333344;
  --text-light:  #666677;
  --border:      #e8e8e6;
  --shadow-sm:   0 2px 12px rgba(13,27,62,.07);
  --shadow-md:   0 4px 24px rgba(13,27,62,.11);
  --shadow-lg:   0 12px 48px rgba(13,27,62,.15);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Lora', Georgia, serif;
  --max-w:       1200px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* Supprimer les marges par défaut Hello Elementor qui cassent les sections */
.elementor-section,
.e-con,
.elementor-container {
  max-width: 100% !important;
}

/* Titre de page masqué (on utilise notre hero) */
h1.entry-title { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHIE GLOBALE
═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

p { margin: 0 0 .9rem; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--red-dk); }

/* ═══════════════════════════════════════════════════════════════
   CONTENEUR GLOBAL
═══════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
@media(max-width: 580px) { .container { padding: 0 20px; } }

/* ═══════════════════════════════════════════════════════════════
   BOUTONS GLOBAUX
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red-dk); color: #fff; }

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

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-mid); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   HEADER — Navigation principale
═══════════════════════════════════════════════════════════════ */
#site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  padding: 0;
  width: 100%;
}

.header-inner {
  max-width: var(--max-w) !important;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-branding .custom-logo {
  max-height: 44px;
  width: auto;
}

.site-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.site-title a {
  color: #fff;
  text-decoration: none;
}
.site-description { display: none; }

/* Nav menu */
.site-navigation {
  display: flex;
  align-items: center;
}

.site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-navigation ul li a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  padding: 8px 14px;
  border-radius: 7px;
  text-decoration: none;
  transition: color .2s, background .2s;
  display: block;
}
.site-navigation ul li a:hover,
.site-navigation ul li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* CTA dans le nav */
.site-navigation ul li.menu-cta a {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
}
.site-navigation ul li.menu-cta a:hover {
  background: var(--red-dk);
}

/* Sous-menus */
.site-navigation ul li {
  position: relative;
}
.site-navigation ul ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  flex-direction: column;
  gap: 2px;
  display: none;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.site-navigation ul li:hover > ul { display: flex; }
.site-navigation ul ul li a { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#site-footer,
.site-footer {
  background: #060f22;
  padding: 0;
  margin: 0;
}

/* Masquer le footer Hello par défaut — on utilise le nôtre */
#site-footer nav.site-navigation { display: none; }

/* ─── Notre footer custom ─── */
.main-footer {
  background: #060f22;
  font-family: var(--font-body);
}

.footer-main {
  padding: 52px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
  gap: 48px;
  padding-bottom: 44px;
}

/* Marque */
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.75;
  margin: 12px 0 16px;
  max-width: 240px;
}

.fb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-logo-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--red-dk));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-name {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 900; color: #fff;
}
.fb-sub {
  font-family: var(--font-head);
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}

.social-row {
  display: flex; gap: 7px; margin-top: 16px;
}
.social-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.social-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Colonnes footer */
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.footer-col ul li a {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.45);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .18s;
}
.footer-col ul li a::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  transition: background .18s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a:hover::before { background: var(--red); }

/* Contact items */
.footer-contact-item {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 12px;
}
.fci-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-contact-item span {
  font-size: 12.5px; color: rgba(255,255,255,.45);
  line-height: 1.4;
}
.footer-contact-item strong {
  display: block; color: rgba(255,255,255,.7);
  font-size: 12.5px;
}

/* Footer bottom */
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-bottom p {
  font-size: 11.5px;
  color: rgba(255,255,255,.2);
  margin: 0;
}
.legal-links {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.legal-links a {
  font-size: 11.5px;
  color: rgba(255,255,255,.2);
  text-decoration: none;
  transition: color .18s;
}
.legal-links a:hover { color: rgba(255,255,255,.55); }

/* ═══════════════════════════════════════════════════════════════
   ANTI-CONFLITS ELEMENTOR
   Empêche Elementor d'écraser nos styles
═══════════════════════════════════════════════════════════════ */

/* Neutraliser la couleur de lien par défaut d'Elementor */
.elementor a { color: inherit; }

/* Supprimer le padding Elementor sur les widgets HTML */
.elementor-widget-html { padding: 0 !important; }

/* Éviter les marges bottom automatiques entre widgets */
.elementor-widget:not(:last-child) {
  margin-bottom: 0 !important;
}

/* Forcer la largeur max sur les containers Elementor */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con { max-width: 100% !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE HEADER
═══════════════════════════════════════════════════════════════ */
.header-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.header-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: all .3s;
}

@media(max-width: 900px) {
  .header-hamburger { display: flex; }
  .site-navigation {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 20px 24px;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    z-index: 999;
  }
  .site-navigation.open { transform: translateY(0); }
  .site-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-navigation ul ul {
    position: static;
    display: flex !important;
    padding-left: 16px;
    border: none;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    margin-top: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE FOOTER
═══════════════════════════════════════════════════════════════ */
@media(max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITAIRES
═══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
