/* =========================================================
   MEGA-MENU — SOS OXYGÈNE DISTRIBUTION
========================================================= */

.header-dropdown-trigger{
  position:relative;
  white-space:nowrap;
  transition:color .2s ease;
}

.header-mega-menu-label{
  display:inline-block;
}

.header-arrow{
  width:12px;
  height:8px;
  flex:0 0 auto;
  transition:transform .25s ease;
}

.header-dropdown-trigger.is-active .header-arrow{
  transform:rotate(180deg);
}

/* =========================================================
   CONTENEUR DU MEGA-MENU
========================================================= */

.mega-menu{
  --bridge-left:50%;
  --bridge-width:120px;

  position:absolute;
  z-index:15;

  top:calc(var(--navbar-bottom, 0px) - 2px);
  left:50%;

  width:min(1480px,calc(100% - 100px));

  padding-top:14px;

  visibility:hidden;
  opacity:0;
  pointer-events:none;

  transform:translateX(-50%) translateY(-8px);

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;
}

.mega-menu.is-open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;

  transform:translateX(-50%) translateY(0);
}

/* =========================================================
   RACCORD ENTRE LA NAVBAR ET LE MEGA-MENU
========================================================= */
.mega-menu__junction{
  position:absolute;
  z-index:4;

  top:0;
  left:var(--bridge-left);

  width:var(--bridge-width);
  height:30px;

  transform:translateX(-50%);

  background:var(--white);

  pointer-events:none;
}

.mega-menu__junction::before,
.mega-menu__junction::after{
  content:"";

  position:absolute;
  bottom:0;

  width:28px;
  height:28px;

  background:transparent
}

.mega-menu__junction::before{
  right:100%;

  border-bottom-right-radius:28px;

  box-shadow:
    14px -14px 0 14px var(--white);
}

.mega-menu__junction::after{
  left:100%;

  border-bottom-left-radius:28px;

  box-shadow:
    -14px -14px 0 14px var(--white);
}
/* =========================================================
   PANNEAU PRINCIPAL
========================================================= */

.mega-menu__content{
  position:relative;
  z-index:2;

  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:50px;

  min-height:330px;

  padding:46px 54px;

  overflow:hidden;

  border-radius:36px;

  background:var(--white);

  box-shadow:
    0 18px 40px rgba(0,63,107,.09);
}

/* Dégradé uniquement dans la partie basse */
.mega-menu__content::after{
  content:"";

  position:absolute;
  z-index:0;

  left:0;
  right:0;
  bottom:0;

  height:45%;

  pointer-events:none;

  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(239,250,250,.20) 55%,
    rgba(216,240,242,.32) 100%
  );
}

.mega-menu__column,
.mega-menu__visual{
  position:relative;
  z-index:1;
}

/* =========================================================
   CONTENU
========================================================= */

.mega-menu__eyebrow{
  display:block;

  margin-bottom:8px;

  color:var(--sod-teal-dark);

  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.mega-menu__title{
  margin:0 0 28px;

  color:var(--sod-blue);

  font-size:32px;
  line-height:1.15;
}

.mega-menu__links{
  display:grid;
  gap:12px;
}

.mega-menu__link{
  display:grid;
  grid-template-columns:46px 1fr;
  align-items:center;
  gap:16px;

  padding:15px 18px;

  border:1px solid transparent;
  border-radius:18px;

  color:var(--sod-blue);
  text-decoration:none;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.mega-menu__link:hover{
  border-color:rgba(47,183,196,.28);

  background:var(--sod-very-light);

  transform:translateX(4px);
}

.mega-menu__icon{
  width:46px;
  height:46px;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:var(--sod-light);

  font-size:21px;
}

.mega-menu__link strong,
.mega-menu__link small{
  display:block;
}

.mega-menu__link strong{
  margin-bottom:3px;

  font-size:17px;
}

.mega-menu__link small{
  color:var(--muted);

  font-size:14px;
  line-height:1.4;
}

.mega-menu__visual{
  display:flex;
  align-items:stretch;
}

.mega-menu__visual-placeholder{
  width:100%;
  min-height:235px;

  display:grid;
  place-items:center;

  border-radius:24px;

  background:linear-gradient(
    145deg,
    var(--sod-light),
    var(--sod-very-light)
  );

  color:var(--sod-blue);

  font-size:17px;
  font-weight:700;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1050px){
  .mega-menu__content{
    grid-template-columns:1fr 280px;
    gap:30px;

    padding:40px;
  }
}

@media(max-width:900px){
  .mega-menu{
    display:none;
  }
}

/* =========================================================
   PANNEAUX DÉTAILLÉS — NOS OFFRES
   Réutilise la grille et les couleurs du mega-menu existant.
========================================================= */

.mega-menu__content--offers{
  grid-template-columns:minmax(360px,.9fr) minmax(480px,1.1fr);
}

.mega-menu__visual--offers{
  min-width:0;
}

.offer-panel{
  width:100%;
  min-height:100%;
  padding:26px;

  border:1px solid rgba(47,183,196,.18);
  border-radius:24px;

  background:linear-gradient(
    145deg,
    var(--sod-light),
    var(--sod-very-light)
  );

  animation:offer-panel-enter .22s ease both;
}

.offer-panel[hidden]{
  display:none;
}

.offer-panel__title{
  margin:0 0 22px;

  color:var(--sod-blue);

  font-size:25px;
  line-height:1.15;
}

.offer-panel__body{
  display:grid;
  grid-template-columns:145px minmax(0,1fr);
  gap:28px;
  align-items:start;
}

.offer-panel__media{
  min-height:245px;

  display:flex;
  align-items:flex-end;
  justify-content:center;

  overflow:hidden;

  border:1px solid rgba(0,63,107,.08);
  border-radius:18px;

  background:rgba(255,255,255,.72);
}

.offer-panel__media img{
  width:100%;
  height:245px;
  object-fit:cover;
}

.offer-panel__media--symbol{
  align-items:center;

  color:var(--sod-teal-dark);

  font-size:38px;
  font-weight:900;
}

.offer-panel__groups{
  display:grid;
  gap:18px;
}

.offer-panel__group h4{
  margin:0 0 9px;
  padding-bottom:8px;

  border-bottom:1px dashed rgba(0,63,107,.22);

  color:var(--sod-blue);

  font-size:16px;
  line-height:1.2;
  text-transform:uppercase;
}

.offer-panel__group a{
  display:block;

  padding:3px 0;

  color:var(--sod-muted);

  font-size:15px;
  line-height:1.35;

  transition:
    color .2s ease,
    transform .2s ease;
}

.offer-panel__group a:hover,
.offer-panel__group a:focus-visible{
  color:var(--sod-teal-dark);
  transform:translateX(3px);
}

.mega-menu__link.is-selected{
  border-color:rgba(47,183,196,.28);
  background:var(--sod-very-light);
}
/* =========================================================
   OXYGÈNE LIQUIDE — COLONNES EU / US
   Réutilise les composants existants du panneau d'offres.
========================================================= */

.offer-panel__liquid-content{
  min-width:0;

  display:grid;
  gap:22px;
}

.offer-panel__liquid-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:28px;
}
/* =========================================================
   OXYGÈNE LIQUIDE — PRODUIT + STANDARDS EU / US
   Réutilise les composants existants du mega-menu.
========================================================= */

.offer-panel__body--liquid{
  grid-template-columns:145px minmax(0,1fr);
}

.offer-panel__media--main-product{
  height:100%;
  min-height:320px;
}

.offer-panel__media--main-product img{
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:contain;
}

.offer-panel__liquid-content{
  min-width:0;

  display:flex;
  flex-direction:column;
  gap:22px;
}

.offer-panel__liquid-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:28px;
}

.offer-panel__liquid-column{
  min-width:0;

  display:flex;
  flex-direction:column;
  gap:12px;
}

.offer-panel__standard-image{
  width:100%;
  height:100px;

  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;

  border:1px solid rgba(0,63,107,.08);
  border-radius:16px;

  background:rgba(255,255,255,.72);
}

.offer-panel__standard-image img{
  width:100%;
  height:100%;
  padding:10px;

  object-fit:contain;
}

.offer-panel__common-services{
  width:100%;
  margin-top:auto;
  padding-top:18px;

  border-top:1px dashed rgba(0,63,107,.22);

  text-align:center;
}

.offer-panel__common-services .offer-panel__group h4{
  text-align:center;
}

.offer-panel__service-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 24px;
}

.offer-panel__service-links a{
  display:inline-block;
}

.offer-panel__common-services .offer-panel__group h4{
    border-bottom:none;
    padding-bottom:0;
    margin-bottom:12px;
}
.offer-panel__service-links{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
}

.offer-panel__service-links a{
    position:relative;
    display:block;

    padding-left:16px;

    color:var(--sod-muted);
}

.offer-panel__service-links a::before{
    content:"•";

    position:absolute;
    left:0;

    color:var(--sod-teal-dark);
    font-size:18px;
    line-height:1;
}
.offer-panel__common-services{
    width:100%;
    margin-top:12px;
    padding-top:0;
    text-align:center;

    border-top:none;
}

.offer-panel__common-services .offer-panel__group h4{
    border-bottom:none;
    margin:0 0 12px;
    padding:0;

    color:var(--sod-blue);
    font-size:16px;
    font-weight:700;
    text-transform:uppercase;
}

/* =========================================================
   ADAPTATION AUX ÉCRANS INTERMÉDIAIRES
========================================================= */

@media(max-width:1180px){
  .offer-panel__body--liquid{
    grid-template-columns:120px minmax(0,1fr);
  }

  .offer-panel__liquid-columns{
    gap:20px;
  }

  .offer-panel__standard-image{
    height:90px;
  }
}
/* Passage sur une seule colonne lorsque l'espace diminue */
@media(max-width:1180px){
  .offer-panel__liquid-columns{
    grid-template-columns:1fr;
    gap:18px;
  }
}
@keyframes offer-panel-enter{
  from{
    opacity:0;
    transform:translateY(8px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media(max-width:1180px){
  .mega-menu__content--offers{
    grid-template-columns:minmax(320px,.9fr) minmax(400px,1.1fr);
    gap:30px;
  }

  .offer-panel__body{
    grid-template-columns:120px minmax(0,1fr);
    gap:22px;
  }
}
