/*
Theme Name: LittleCreek DE
Theme URI: https://littlecreek.fr
Description: GeneratePress-Child-Theme für LittleCreek (deutsche Ausgabe) - unabhängiger Vergleich von Forex-Brokern und Krypto-Plattformen für Deutschland, Österreich und die Schweiz.
Author: LittleCreek
Author URI: https://littlecreek.fr
Template: generatepress
Version: 1.0.3
Text Domain: littlecreek-de
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, finance, comparator, dark, glassmorphism
*/

/* Import du design system + composants + pages */
@import url('design-system.css');
@import url('components.css');

/* Reset minimal anti-conflit GeneratePress */
:root {
  --gp-override: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--lc-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--lc-text);
  background-color: var(--lc-dark-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container override */
.site-content,
.inside-article,
.entry-content {
  max-width: 100%;
}

/* Fix GeneratePress header conflicts */
.site-header {
  background: transparent !important;
}

.main-navigation {
  background: transparent !important;
}

/* ==========================================================================
   GENERATEPRESS PARENT NEUTRALIZATION
   Neutralise les wrappers/contraintes du theme parent qui cassent
   les sections full-bleed et les images cover (height:auto force).
   ========================================================================== */

/* Parent grid container ne doit pas contraindre nos sections full-width */
.lcf3-theme .site-content,
.lcf3-theme .inside-article,
.lcf3-theme .entry-content,
.lcf3-theme .site-main,
.lcf3-theme .content-area,
.lcf3-theme .grid-container,
.lcf3-theme #primary {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lcf3-theme .inside-article {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Hero & card images : forcer cover (GP applique height:auto !important) */
.lc-single__hero img,
.lc-card__media img,
.lc-card__media > img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Contenu d'article : les images inline doivent rester naturelles */
.lc-single__content img,
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--lc-sp-6) auto;
  border-radius: var(--lc-radius);
}

/* ==========================================================================
   COOKIE RE-CONSENT BUTTON - override plugin logo with neutral cookie icon
   ========================================================================== */
.cookieadmin_re_consent {
  background: rgba(11, 20, 55, 0.85) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.cookieadmin_re_consent:hover { transform: scale(1.06); }
.cookieadmin_re_consent .cookieadmin_reconsent_img {
  display: none !important;
}
.cookieadmin_re_consent::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21.5 12.5A9.5 9.5 0 1 1 11.5 2.5a5 5 0 0 0 5 5 5 5 0 0 0 5 5z'/><circle cx='7' cy='14' r='1'/><circle cx='11' cy='17' r='1'/><circle cx='14' cy='10' r='1'/><circle cx='17' cy='15' r='1'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ==========================================================================
   COOKIE BANNER MOBILE — non bloquant (Wave 19)
   Fix Pascal audit P0 : couvre 64% du viewport 375 sans dimmer/croix.
   Strategie : bottom bar 38vh max + dimmer + bouton croix.
   ========================================================================== */

@media (max-width: 640px) {
  .cookieadmin_law_container.cookieadmin_box {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    max-height: 38vh !important;
    overflow-y: auto !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 28px rgba(0,0,0,0.18) !important;
    z-index: 9999 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cookieadmin_law_container.cookieadmin_box::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(11,20,55,0.55);
    z-index: -1;
    pointer-events: none;
  }

  .cookieadmin_consent_inside {
    padding: 18px 16px 16px !important;
    background: #fff !important;
    border-radius: 16px 16px 0 0 !important;
    position: relative;
  }

  .cookieadmin_consent_inside::after {
    content: "\00d7";
    position: absolute;
    top: 8px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #1B2A4A;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    z-index: 2;
    pointer-events: none;
  }

  #cookieadmin_notice_title {
    font-size: 15px !important;
    margin: 0 0 6px !important;
    font-weight: 700;
    padding-right: 32px;
  }
  #cookieadmin_notice {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    margin: 0 0 12px !important;
    max-height: 110px;
    overflow-y: auto;
  }

  .cookieadmin_consent_btns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  .cookieadmin_consent_btns .cookieadmin_btn {
    min-height: 44px !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
  }
  .cookieadmin_customize_btn, .cookieadmin_reject_btn {
    flex: 1 1 calc(50% - 4px) !important;
  }
  .cookieadmin_accept_btn {
    flex: 1 1 100% !important;
    order: -1;
    background: linear-gradient(135deg, #7B5CF0, #4DA6FF) !important;
    color: #fff !important;
    border: none !important;
  }

  .cookieadmin-poweredby { display: none !important; }
}
