/* =====================================================
   GRACE IVOIRE — mobile.css
   Couleurs : Orange #ff7a00 | Blanc #fff | Vert #00c853
   Or : #d4af37
===================================================== */

/* =====================================================
   HEADER MOBILE
===================================================== */
@media (max-width: 991px) {

  /* Cache le desktop */
  .gi-desktop-header { display: none !important; }
  .gi-nav            { display: none !important; }

  /* Le header ENTIER (barre annonce + nav) est sticky */
  .gi-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    background: #000;
    /* Permet au search panel absolute de se positionner par rapport au header */
    overflow: visible !important;
  }

  /* Mobile header simple, PAS sticky (le gi-header parent l'est déjà) */
  .gi-mobile-header {
    display: block !important;
    background: #000;
    border-bottom: 1px solid rgba(212, 175, 55, .6);
  }

  /* Grille symétrique — logo vraiment centré */
  .gi-mobile-bar {
    height: 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 14px;
  }

  .gi-mobile-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .gi-mobile-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
  }

  .gi-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gi-mobile-logo img {
    height: 56px !important;
    max-height: 56px !important;
    width: auto;
    object-fit: contain;
    display: block;
  }

  .gi-mobile-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
  }

  /* Icônes droite */
  .gi-mobile-right a,
  .gi-mobile-right button {
    background: none;
    border: none;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .gi-search-toggle i { color: #ff7a00; }
  .gi-cart-link i     { color: #ffffff; }
  .gi-account-link i  { color: #00c853; }

  .gi-mobile-right a:hover i,
  .gi-mobile-right button:hover i {
    transform: scale(1.1);
    transition: transform .2s ease;
  }

  /* Badge panier mobile */
.gi-mobile-right .gi-badge,
.gi-mobile-right .gi-cart-badge {
    top: -6px;
    right: -8px;
    font-size: 10px;
    min-width: 17px;
    height: 17px;
  }
}

/* =====================================================
   BURGER
===================================================== */
@media (max-width: 991px) {

  .gi-burger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
  }

  .gi-burger span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
    transition: transform .3s ease, opacity .3s ease;
  }

  .gi-burger:hover {
    background: rgba(212, 175, 55, .1);
    border-color: rgba(212, 175, 55, .4);
  }

  .gi-burger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
  .gi-burger.active span:nth-child(2) { opacity: 0; }
  .gi-burger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }
}

/* =====================================================
   SEARCH PANEL MOBILE
===================================================== */
@media (max-width: 991px) {

  .gi-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid rgba(212, 175, 55, .2);
    border-top: 1px solid rgba(212, 175, 55, .1);
    padding: 14px 16px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .gi-search-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .gi-search-box {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .gi-search-input {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: #111;
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
  }

  .gi-search-input:focus {
    border-color: #d4af37;
  }

  .gi-search-close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    position: static;
    transform: none;
  }

  .gi-live-results {
    width: 100%;
    margin-top: 4px;
    max-height: 55vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  }
}

/* =====================================================
   OVERLAY
===================================================== */
@media (max-width: 991px) {

  .gi-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }

  .gi-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* =====================================================
   DRAWER
===================================================== */
@media (max-width: 991px) {

  .gi-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 82vw);
    height: 100vh;
    height: 100dvh;
    background: #000;
    border-right: 1px solid rgba(212, 175, 55, .2);
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .gi-mobile-drawer.active {
    transform: translateX(0);
  }

  .gi-drawer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    flex-shrink: 0;
    position: relative;
  }

  .gi-drawer-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
  }

  .gi-drawer-close {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: border-color .2s, background .2s;
  }

  .gi-drawer-close:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, .08);
  }

  .gi-drawer-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
  }

  .gi-drawer-menu,
  .gi-drawer-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .gi-drawer-menu li { list-style: none !important; }

  .gi-drawer-menu li::marker,
  .gi-drawer-menu li::before {
    content: none !important;
    display: none !important;
  }

  .gi-drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
  }

  .gi-drawer-menu li a:hover,
  .gi-drawer-menu li.current-menu-item > a {
    color: #d4af37;
    border-left-color: #d4af37;
    background: rgba(212, 175, 55, .04);
  }

  .gi-drawer-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .gi-drawer-menu .fa-house,
  .gi-drawer-menu .fa-home      { color: #ff7a00 !important; }
  .gi-drawer-menu .fa-bag-shopping { color: #ffffff !important; }
  .gi-drawer-menu .fa-scissors  { color: #00c853 !important; }
  .gi-drawer-menu .fa-images,
  .gi-drawer-menu .fa-image     { color: #ff7a00 !important; }
  .gi-drawer-menu .fa-phone     { color: #00c853 !important; }
  .gi-drawer-menu .fa-circle-info { color: #ff7a00 !important; }
  .gi-drawer-menu .fa-blog      { color: #ffffff !important; }

  .gi-drawer-cta {
    padding: 10px 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .gi-drawer-rdv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000 !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 14px rgba(212, 175, 55, .25);
  }

  .gi-drawer-rdv:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 175, 55, .4);
  }

  .gi-drawer-contacts {
    display: flex;
    gap: 8px;
  }

  .gi-drawer-contacts a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #bbb;
    text-decoration: none;
    transition: border-color .2s, color .2s;
  }

  .gi-drawer-contacts a:first-child i { color: #00c853; }
  .gi-drawer-contacts a:last-child i  { color: #25D366; }

  .gi-drawer-contacts a:hover {
    border-color: #d4af37;
    color: #fff;
  }
}

/* =====================================================
   SECTIONS GÉNÉRIQUES MOBILE
===================================================== */
@media (max-width: 991px) {
  .gi-section { padding: 60px 20px; }
}

/* =====================================================
   GALERIE RÉALISATIONS MOBILE
===================================================== */
@media (max-width: 767px) {
  .gi-real-grid,
  .home-galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gi-real-title { font-size: 28px; }
}

/* =====================================================
   PRESTATIONS MOBILE
===================================================== */
@media (max-width: 600px) {
  .prestations-hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .soin-card { height: 320px; }
}

/* =====================================================
   TRESSES MOBILE
===================================================== */
@media (max-width: 767px) {
  .tresses-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tresse-body h3 { font-size: 14px; }
  .tresse-meta    { font-size: 11px; }
}

@media (max-width: 400px) {
  .tresses-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   BLOG MOBILE
===================================================== */
@media (max-width: 768px) {
  .gi-blog-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   CONTACT MOBILE
===================================================== */
@media (max-width: 900px) {
  .gi-contact-container { grid-template-columns: 1fr; }
}

/* =====================================================
   RDV PAGE MOBILE
===================================================== */
@media (max-width: 768px) {
  .rdv-options        { flex-direction: column; align-items: center; }
  .rdv-card           { width: min(340px, 100%); }
  .rdv-form           { grid-template-columns: 1fr; }
  .rdv-submit         { grid-column: span 1; }
  .rdv-form-container { padding: 28px 18px; }
  .rdv-title          { font-size: clamp(24px, 6vw, 36px); flex-direction: column; gap: 12px; }
}

/* =====================================================
   LIGHTBOX MOBILE
===================================================== */
@media (max-width: 768px) {
  .lightbox-swiper  { max-width: 95%; height: 75vh; }
  .swiper-slide img,
  .swiper-slide video { max-height: 70vh; }
  .swiper-button-next,
  .swiper-button-prev { display: none; }
}

/* =====================================================
   TYPOGRAPHIE MOBILE
===================================================== */
@media (max-width: 640px) {
  h1 { font-size: clamp(28px, 8vw, 48px); }
  h2 { font-size: clamp(22px, 6vw, 36px); }
}

/* =====================================================
   SAFE AREA IPHONE
===================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .gi-mobile-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .gi-whatsapp {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}