/* ============================================================
   ICARUS PICTURES — icarus_custom.css v10.3
   FIXES : cacher barre Elementor dupliquée, topbar transparente
   ============================================================ */

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden !important; margin: 0 !important; padding: 0 !important; }

body {
  background-image: url(https://icaruspictures.com/wp-content/uploads/2025/04/photographe-picture.png) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  padding-top: 70px !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.88) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.wp-site-blocks,
.site,
#page,
.elementor,
[data-elementor-type] {
  position: relative !important;
  z-index: 1 !important;
}

.wp-site-blocks { padding-top: 0 !important; }

/* ── CACHER FOOTER WORDPRESS ── */
.site-footer,
footer.site-footer,
#colophon,
.wp-site-blocks > footer,
[class*="elementor-location-footer"] { display: none !important; }

/* ══════════════════════════════════════
   CACHER LA BARRE ELEMENTOR DUPLIQUÉE
   (celle avec la maison + hamburger d'Elementor)
   ══════════════════════════════════════ */

/* Cacher par type de section sticky/header Elementor */
.elementor-location-header,
[data-elementor-type="header"],
.e-con[data-element_type="container"].elementor-sticky,
.elementor-section.elementor-sticky { display: none !important; }

/* Cacher la section Elementor qui contient les icônes maison/hamburger dupliquées */
/* Ces sélecteurs ciblent les widgets image contenant les icônes réseaux dans le corps de page */
.elementor-widget:has(img[src*="257670f9"]),
.elementor-widget:has(img[src*="instagram-svgrepo-com-4"]),
.elementor-widget:has(img[src*="favpng_302b3e"]),
.elementor-widget:has(img[src*="whatsapp-svgrepo-com"]) { display: none !important; }

/* Cacher les sections Elementor connues inutiles */
[data-id="88a1cc5"],[data-id="70c67c4"],[data-id="68980e0"],[data-id="f719af8"],
[data-id="8e3441e"],[data-id="586ecaf"],[data-id="37028c2"],[data-id="d972341"],
[data-id="70d00bd"],[data-id="1d7d511"],[data-id="78bbccd"],[data-id="3866153"],
[data-id="cff3e82"],[data-id="96b99ee"],[data-id="b1aa41b"],[data-id="96990a1"],
[data-id="6b4a9a4"],[data-id="f59b7ba"],[data-id="55bce9d"] { display: none !important; }

/* ── BARRE DUPLIQUÉE ELEMENTOR — icône maison + hamburger ── */
[data-id="99fd51e"],
[data-id="1ed70e5"],
[data-id="0f4d2d4"] { display: none !important; }

/* Cibler directement la barre avec la maison Elementor en haut de page —
   c'est une section/conteneur qui contient un nav-menu ET un hamburger Elementor */
.elementor-nav-menu--indicator-chevron,
.elementor-nav-menu--toggle,
.elementor-menu-toggle,
.elementor-nav-menu__toggle { display: none !important; }

/* Cacher le premier conteneur Elementor s'il contient navigation + home icon */
.elementor > .elementor-inner > .elementor-section-wrap > .elementor-section:first-child:has(.elementor-nav-menu),
.e-con-full:first-of-type:has(.elementor-nav-menu) { display: none !important; }

/* Fallback plus large — cacher toute nav Elementor inline dans la page */
.elementor-widget-nav-menu { display: none !important; }

/* ══════════════════════════════════════
   BARRE NAVIGATION FIXE (MON CODE)
   ══════════════════════════════════════ */
#icarus-topbar { display: none !important; }

#icarus-icon-bar {
  position: fixed !important;
  top: 0 !important; left: 20px !important;
  height: 70px !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  pointer-events: all !important;
}

#icarus-icon-bar a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  text-decoration: none !important;
  transition: transform 0.2s, filter 0.2s !important;
  line-height: 1 !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}
#icarus-icon-bar a:hover,
#icarus-icon-bar a:active {
  transform: scale(1.15) !important;
  filter: drop-shadow(0 0 8px #DD5398) !important;
}
#icarus-icon-bar a img,
#icarus-icon-bar a svg {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 0 !important;
}

/* ── HAMBURGER ── */
#icarus-hamburger {
  position: fixed !important;
  top: 0 !important; right: 20px !important;
  height: 70px !important;
  z-index: 100000 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: 44px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}
#icarus-hamburger span {
  display: block !important;
  width: 28px !important; height: 2.5px !important;
  background: #fff !important;
  border-radius: 2px !important;
  transition: transform 0.3s, opacity 0.3s !important;
}
#icarus-hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg) !important; }
#icarus-hamburger.open span:nth-child(2) { opacity: 0 !important; }
#icarus-hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg) !important; }
#icarus-hamburger:hover { filter: drop-shadow(0 0 8px #DD5398) !important; }

/* ── MENU OVERLAY ── */
#icarus-menu-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99998 !important;
  background: rgba(5,5,15,0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s !important;
}
#icarus-menu-overlay.open { opacity: 1 !important; pointer-events: all !important; }
#icarus-menu-overlay a {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 50px !important;
  border-radius: 50px !important;
  transition: color 0.2s, background 0.2s !important;
  -webkit-tap-highlight-color: transparent !important;
}
#icarus-menu-overlay a:hover,
#icarus-menu-overlay a:active { color: #DD5398 !important; background: rgba(221,83,152,0.1) !important; }

/* ── ADMIN BAR ── */
body.admin-bar #icarus-topbar,
body.admin-bar #icarus-icon-bar,
body.admin-bar #icarus-hamburger { top: 32px !important; }
body.admin-bar { padding-top: calc(70px + 32px) !important; }

/* ══════════════════════════════════════
   TEXTES DÉGRADÉS
   ══════════════════════════════════════ */
.texte        { background: linear-gradient(90deg,#4D2772,#DD5398,#4D2772); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.texte-grade  { background: linear-gradient(to right,#5f2c82,#49a09d) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade2 { background: linear-gradient(to left,#DD5398,#4D2772) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade3 { background: linear-gradient(to right,#DD5398,#4D2772) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade4 { background: linear-gradient(to right,#DD5398,#49a09d) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade5 { background: linear-gradient(to right,#DD5398,#5f2c82) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade6 { background: linear-gradient(to right,#DD5398,#49a09d) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade7 { background: linear-gradient(to right,#DD5398,#ffcc99) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade8 { background: linear-gradient(to right,#4D2772,#49a09d) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade9 { background: linear-gradient(to right,#4D2772,#ffcc99) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }
.texte-grade10{ background: linear-gradient(to right,#49a09d,#ffcc99) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: bold !important; }

/* ══════════════════════════════════════
   POPUP THÈMES
   ══════════════════════════════════════ */
#icarus-popup {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
#icarus-popup.open { opacity: 1; pointer-events: all; }
.ip-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer;
}
.ip-box {
  position: relative; z-index: 1;
  background: #0e0e1a;
  border: 1px solid rgba(221,83,152,.3);
  border-radius: 16px;
  width: 92%; max-width: 860px; max-height: 90vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 28px 24px;
  transform: translateY(20px); transition: transform .3s;
  box-sizing: border-box;
}
#icarus-popup.open .ip-box { transform: translateY(0); }
.ip-close {
  position: sticky; top: 0; float: right;
  background: rgba(221,83,152,.2); border: 1px solid rgba(221,83,152,.5);
  color: #fff; font-size: 1.6rem; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; margin-bottom: 8px; z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.ip-close:hover { background: rgba(221,83,152,.6); }
.ip-titre {
  font-size: clamp(1.5rem,5vw,2.4rem);
  background: linear-gradient(90deg,#DD5398,#4D2772);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0 0 12px; text-align: center; clear: both;
}
.ip-desc { color: #ccc; font-size: .95rem; line-height: 1.7; text-align: center; max-width: 640px; margin: 0 auto 20px; }
.ip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 24px; }
.ip-grid-item { aspect-ratio: 1/1; overflow: hidden; border-radius: 5px; cursor: zoom-in; }
.ip-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s,filter .3s; }
.ip-grid-item:hover img { transform: scale(1.05); filter: brightness(.85); }
.ip-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-bottom: 8px; }
.ip-btn {
  display: inline-block; padding: 14px 22px; border-radius: 30px;
  font-size: .95rem; font-weight: 700; text-decoration: none;
  background: linear-gradient(90deg,#DD5398,#4D2772); color: #fff !important;
  text-align: center; border: none; font-family: inherit; cursor: pointer;
  transition: opacity .2s, transform .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ip-btn:hover { opacity: .85; transform: translateY(-2px); }
.ip-btn-tel   { background: linear-gradient(90deg,#4D2772,#49a09d); }
.ip-btn-wa    { background: linear-gradient(90deg,#25D366,#128C7E); }
.ip-btn-devis { background: linear-gradient(to right,#fc606a,#fcb7c0,#ffe0cc); }
.ip-btn-contact { background: linear-gradient(90deg,#25a05c,#128C7E); }

/* ── FORMULAIRE DEVIS INLINE ── */
.ip-devis-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.ip-devis-form h3 { font-size: 1rem; color: #fff; font-weight: 700; margin: 0 0 14px; text-align: center; }
.ip-devis-form h3 span { background: linear-gradient(90deg,#DD5398,#4D2772); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ip-df-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ip-df-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.ip-df-group label { font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #888; }
.ip-df-group input,
.ip-df-group textarea {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: #fff; padding: 10px 12px;
  font-family: inherit; font-size: .88rem; outline: none;
  width: 100%; box-sizing: border-box;
  -webkit-appearance: none;
}
.ip-df-group input:focus,
.ip-df-group textarea:focus { border-color: #DD5398; }
.ip-df-group textarea { height: 76px; resize: vertical; }
.ip-df-submit {
  width: 100%; margin-top: 6px; padding: 13px; border-radius: 30px;
  background: linear-gradient(90deg,#DD5398,#4D2772); color: #fff;
  border: none; font-family: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ip-df-submit:disabled { opacity: .45; cursor: not-allowed; }
.ip-df-success {
  display: none; margin-top: 12px; padding: 12px;
  background: rgba(73,160,157,.1); border: 1px solid #49a09d;
  border-radius: 8px; color: #49a09d; font-weight: 600; font-size: .85rem; text-align: center;
}

/* ── LIGHTBOX ── */
#ip-lightbox {
  position: fixed; inset: 0; z-index: 9999999;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
#ip-lightbox.open { opacity: 1; pointer-events: all; }
#ip-lightbox img { max-width: 95vw; max-height: 92vh; object-fit: contain; border-radius: 8px; pointer-events: none; }
#ip-lb-close {
  position: absolute; top: 16px; right: 20px; color: #fff; font-size: 2.2rem;
  cursor: pointer; background: rgba(221,83,152,.3); border: none;
  border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ── POPUP REMERCIEMENTS ── */
#ip-remerciements {
  position: fixed; inset: 0; z-index: 9999998;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
#ip-remerciements.open { opacity: 1; pointer-events: all; }
#ip-remerciements .ip-box { max-width: 600px; text-align: center; }
.ip-rem-titre {
  font-size: clamp(1.6rem,5vw,2.4rem);
  background: linear-gradient(90deg,#DD5398,#4D2772);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0 0 16px; font-weight: 800;
}
.ip-rem-texte { color: #ccc; font-size: 1rem; line-height: 1.8; margin-bottom: 24px; }
.ip-rem-texte strong { color: #fff; }
.ip-rem-close {
  background: linear-gradient(90deg,#DD5398,#4D2772); color: #fff; border: none;
  padding: 13px 32px; border-radius: 30px; font-size: .95rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}

/* ══════════════════════════════════════
   FOOTER CONTACT
   ══════════════════════════════════════ */
#icarus-footer {
  width: 100%;
  background: rgba(5,5,15,0.97);
  border-top: 1px solid rgba(221,83,152,0.2);
  padding: 60px 20px 50px;
  box-sizing: border-box;
  position: relative; z-index: 1;
}
#icarus-footer .icf-inner { max-width: 680px; margin: 0 auto; }
#icarus-footer h2 { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; color: #fff; margin: 0 0 8px; text-align: center; }
#icarus-footer .icf-sub { color: #666; text-align: center; margin: 0 0 32px; font-size: .95rem; }
#icarus-footer .icf-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(221,83,152,.2);
  border-radius: 20px; padding: 32px 24px; box-sizing: border-box;
}
.icf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.icf-group label { font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #888; }
.icf-group input,
.icf-group textarea,
.icf-group select {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #fff; padding: 13px 15px; font-size: .95rem;
  font-family: inherit; outline: none; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.icf-group input:focus,
.icf-group textarea:focus,
.icf-group select:focus { border-color: #DD5398; background: rgba(221,83,152,.06); }
.icf-group textarea { height: 120px; resize: vertical; }
.icf-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23DD5398' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
  background-color: rgba(255,255,255,.06);
}
.icf-group select option { background: #1c1d22; color: #fff; }
#icf-submit {
  width: 100%; padding: 16px; border-radius: 30px; border: none;
  background: linear-gradient(90deg,#DD5398,#4D2772); color: #fff;
  font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit;
  margin-top: 8px; box-shadow: 0 8px 24px rgba(221,83,152,.3);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#icf-submit:disabled { opacity: .5; cursor: not-allowed; }
#icf-success {
  display: none; margin-top: 14px; padding: 14px;
  background: rgba(73,160,157,.1); border: 1px solid #49a09d;
  border-radius: 10px; color: #49a09d; font-weight: 600; text-align: center; font-size: .9rem;
}
.icf-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.icf-btn-devis {
  display: inline-block; padding: 16px 36px; border-radius: 50px; border: none;
  background: linear-gradient(to right,#fc606a,#fcb7c0,#ffe0cc);
  color: #fff; font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px rgba(252,96,106,.3);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.icf-btn-rem {
  display: inline-block; padding: 16px 36px; border-radius: 50px; border: none;
  background: linear-gradient(90deg,#4D2772,#DD5398);
  color: #fff; font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}

/* ── BUTTONIZER ── */
[class*="buttonizer"] { z-index: 100010 !important; }

/* ══════════════════════════════════════
   RESPONSIVE MOBILE
   ══════════════════════════════════════ */
@media (max-width: 600px) {
  body { padding-top: 60px !important; }
  #icarus-topbar { height: 60px !important; }
  #icarus-icon-bar { height: 60px !important; left: 10px !important; gap: 10px !important; }
  #icarus-icon-bar a img, #icarus-icon-bar a svg { width: 28px !important; height: 28px !important; }
  #icarus-hamburger { height: 60px !important; right: 10px !important; }
  #icarus-menu-overlay a { font-size: 1.6rem !important; padding: 12px 30px !important; }
  .ip-grid { grid-template-columns: repeat(2,1fr); }
  .ip-cta { flex-direction: column; align-items: center; }
  .ip-btn { width: 100%; max-width: 280px; }
  .ip-df-row { grid-template-columns: 1fr; }
  .ip-box { padding: 20px 14px; }
  .icf-btns { flex-direction: column; align-items: center; }
  #icarus-footer .icf-card { padding: 20px 16px; }
}

@media (min-width: 601px) and (max-width: 1023px) {
  body { padding-top: 65px !important; }
  #icarus-topbar, #icarus-icon-bar, #icarus-hamburger { height: 65px !important; }
}