/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.28.0
Description: Child theme — mobile header redesign for agenceweb-olivier.fr
*/

@media (max-width:767px) {
  /* === Cache complet du container header Elementor sur mobile === */
  .elementor-location-header > .elementor-element-79f9e15 {
    display: none !important;
  }

  /* === Push le contenu de la page sous notre header fixed (hauteur exacte 64px) === */
  body {
    padding-top: 64px !important;
  }

  /* === Nouveau header mobile fixe (hauteur exacte: 64px) === */
  .awo-mheader {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 9998;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px;
    background: #b8d6e5;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    height: 64px;
    box-sizing: border-box;
  }
  .awo-mheader__logo img { display:block; height: 48px; width:auto; }
  .awo-mheader__actions { display: flex; align-items: center; gap: 14px; }
  .awo-mheader__icon {
    display: inline-flex; align-items:center; justify-content:center;
    width: 38px; height: 38px;
    background: #1a2a3a; color: #fff;
    border-radius: 50%;
    text-decoration: none;
  }
  .awo-mheader__icon svg { width: 18px; height: 18px; fill: currentColor; }
  .awo-mheader__burger {
    display: inline-flex; align-items:center; justify-content:center;
    width: 38px; height: 38px;
    background: transparent; border: 0; cursor: pointer;
    color: #1a2a3a;
    padding: 0;
  }
  .awo-mheader__burger svg { width: 28px; height: 28px; fill: currentColor; }
  .awo-mheader__burger .icon-close { display: none; }
  body.awo-drawer-open .awo-mheader__burger .icon-open { display: none; }
  body.awo-drawer-open .awo-mheader__burger .icon-close { display: inline-block; }

  /* === Drawer === */
  .awo-drawer {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    z-index: 9997;
    background: #1a2a3a; color: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease-out;
    visibility: hidden;
  }
  body.awo-drawer-open .awo-drawer {
    transform: translateX(0);
    visibility: visible;
  }
  body.awo-drawer-open { overflow: hidden; }

  .awo-drawer__nav { padding: 12px 0; list-style: none; margin: 0; }
  .awo-drawer__nav > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .awo-drawer__nav a,
  .awo-drawer__sub-toggle {
    display: block; padding: 16px 22px;
    color: #fff; text-decoration: none;
    font-size: 17px; font-weight: 500;
    background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer;
    font-family: inherit;
  }
  .awo-drawer__sub-toggle {
    display: flex; justify-content: space-between; align-items: center;
  }
  .awo-drawer__sub-toggle::after {
    content: "+"; font-size: 22px; line-height: 1; transition: transform .2s;
  }
  .awo-drawer__sub-toggle[aria-expanded="true"]::after {
    content: "−";
  }
  .awo-drawer__sub {
    list-style: none; margin: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease-out;
    background: rgba(0,0,0,.2);
  }
  .awo-drawer__sub.open { max-height: 500px; }
  .awo-drawer__sub a {
    padding: 12px 22px 12px 38px;
    font-size: 15px; font-weight: 400;
  }

  .awo-drawer__cta {
    display: block; margin: 22px 22px 0;
    background: #FF5722; color: #fff;
    text-align: center; padding: 14px 18px;
    border-radius: 6px; text-decoration: none;
    font-weight: 600; font-size: 16px;
  }

  .awo-drawer__social {
    display: flex; justify-content: center; gap: 18px;
    padding: 28px 0 32px;
  }
  .awo-drawer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
    color: #fff; text-decoration: none;
  }
  .awo-drawer__social svg { width: 18px; height: 18px; fill: currentColor; }
}

/* Hide our mobile header on desktop */
@media (min-width:768px) {
  .awo-mheader, .awo-drawer { display: none !important; }
}


/* Override Elementor Kit heading violet color */
.elementor-widget-heading h2.elementor-heading-title,
.elementor-widget-heading h3.elementor-heading-title {
  color: inherit !important;
}


/* Override Elementor Kit violet color on bold text */
.elementor-widget-text-editor strong,
.elementor-widget-text-editor b,
.elementor-widget-text-editor ul li strong,
.elementor-widget-text-editor ul li b {
  color: inherit !important;
}


/* Home only: H3 en blanc */
body.home .elementor-widget-heading h3.elementor-heading-title {
  color: #fff !important;
}


/* Footer all text 12px */
.elementor-location-footer,
.elementor-location-footer * {
  font-size: 12px !important;
}




/* Drawer items: blue tap/hover/active state instead of red/pink default */
@media (max-width: 767px) {
  .awo-drawer__nav a,
  .awo-drawer__sub-toggle,
  .awo-drawer__sub a {
    -webkit-tap-highlight-color: transparent;
  }
  .awo-drawer__nav > li > a:hover,
  .awo-drawer__nav > li > a:focus,
  .awo-drawer__nav > li > a:active,
  .awo-drawer__sub-toggle:hover,
  .awo-drawer__sub-toggle:focus,
  .awo-drawer__sub-toggle:active,
  .awo-drawer__sub-toggle[aria-expanded="true"],
  .awo-drawer__sub a:hover,
  .awo-drawer__sub a:focus,
  .awo-drawer__sub a:active {
    background: #4A90D9 !important;
    color: #fff !important;
  }
}


/* Burger button: blue background on hover/active/focus instead of red iOS default */
@media (max-width: 767px) {
  .awo-mheader__burger {
    -webkit-tap-highlight-color: transparent;
  }
  .awo-mheader__burger:hover,
  .awo-mheader__burger:focus,
  .awo-mheader__burger:active {
    background: #4A90D9 !important;
    color: #fff !important;
    border-radius: 4px;
  }
}


/* Home: hide French flag background behind Trustindex on mobile (keep rating only) */
@media (max-width: 767px) {
  .elementor-29 .elementor-element.elementor-element-0d5b297 {
    background: transparent !important;
    max-height: none !important;
  }
}


/* Pointer cursor for obfuscated links */
[data-url] {
  cursor: pointer;
}


/* /blog mobile fixes (max-width:767px) */
@media (max-width: 767px) {
  /* 1. CTA + 1er article: 1 colonne au lieu de 2 */
  .blog-cta-row {
    grid-template-columns: 1fr !important;
  }
  /* 2. Articles grid: 2 colonnes au lieu de 3 (widget 91b52dc) */
  body .elementor-2258 .elementor-element.elementor-element-91b52dc .elementor-posts-container {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 20px !important;
  }
  /* 3. Sidebar Ereferer + Freebe.me: 2 images cote a cote, centrees (vrai parent = 5be6302) */
  body .elementor-2258 .elementor-element.elementor-element-5be6302 {
    --display: flex !important;
    --flex-direction: row !important;
    --justify-content: center !important;
    --align-items: flex-start !important;
    --gap: 12px !important;
    --width: 100% !important;
    --max-width: 100% !important;
    --flex-wrap: wrap !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body .elementor-element-2axxa9yk,
  body .elementor-element-b7b2l4th {
    flex: 0 1 45% !important;
    max-width: 45% !important;
    width: 45% !important;
    margin: 0 !important;
  }
  body .elementor-element-2axxa9yk img,
  body .elementor-element-b7b2l4th img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
  /* 5. Center grid: kill margin-right:100px du container grand-parent + force width 100% */
  body .elementor-2258 .elementor-element.elementor-element-5c41821 {
    --margin-left: 0 !important;
    --margin-right: 0 !important;
    --padding-left: 0 !important;
    --padding-right: 0 !important;
    --width: 100% !important;
  }
  body .elementor-2258 .elementor-element.elementor-element-91b52dc {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body .elementor-2258 .elementor-element.elementor-element-91b52dc .elementor-posts-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* Button 521cef2 (Je veux plus de visites): vertical alignment of icon + text */
.elementor-element-521cef2 .elementor-button-content-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
}
.elementor-element-521cef2 .elementor-button-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.elementor-element-521cef2 .elementor-button-icon svg {
  vertical-align: middle;
}


/* Home: align "Dernieres actualites" heading style on "News les plus lues"
   (high specificity to beat inline style loaded after our link) */
body .elementor-29 .elementor-element.elementor-element-4225bc6 .elementor-heading-title.elementor-size-default {
  text-transform: uppercase !important;
  font-weight: 800 !important;
}


/* Reduce spacing above/below both home titles */
body .elementor-29 .elementor-element.elementor-element-4225bc6,
body .elementor-29 .elementor-element.elementor-element-bd4d49e {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}
body .elementor-29 .elementor-element.elementor-element-4225bc6 .elementor-heading-title,
body .elementor-29 .elementor-element.elementor-element-bd4d49e .elementor-heading-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* Home: equal width cards in both 'Dernieres actualites' & 'News les plus lues' (mobile) */
@media (max-width: 767px) {
  body .elementor-29 .elementor-element.elementor-element-e76247b,
  body .elementor-29 .elementor-element.elementor-element-3ec431e {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body .elementor-29 .elementor-element-3ec431e .elementor-element {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
