/* CDS Platform 4.2.8 — finitions mobiles et parcours événement. */
.cds-mobile-event-summary{display:none}

@media (max-width:700px){
  /* Le haut de page libère la lecture au défilement, sans disparaître au repos. */
  .cdspel-header{
    transition:transform .24s cubic-bezier(.22,.61,.36,1)!important;
    will-change:transform;
  }
  body.cds-mobile-header-hidden:not(.cds-mobile-menu-open):not(.cds-mobile-quick-open) .cdspel-header{
    transform:translateY(calc(-100% - 3px))!important;
  }

  /* Fiche événement : titre, affiche et informations essentielles sans longueur inutile. */
  body.single-cdsd_event .cdspel-content{padding-top:9px!important;padding-bottom:16px!important}
  body.single-cdsd_event .cdspel-pagehero{
    min-height:210px!important;
    padding:18px!important;
    background-position:center!important;
  }
  body.single-cdsd_event .cdspel-pagehero h1{
    margin:4px 0!important;
    font-size:clamp(28px,9vw,38px)!important;
    line-height:.98!important;
  }
  body.single-cdsd_event .cdspel-pagehero span{font-size:9px!important;letter-spacing:.12em}
  body.single-cdsd_event .cdspel-pagehero p{margin:7px 0 0!important;font-size:12px!important}
  body.single-cdsd_event .cdspel-page-aside{display:none!important}
  body.single-cdsd_event .cdspel-prose>img.cdspel-featured{margin-bottom:10px!important}

  .cds-mobile-event-summary{
    display:block;
    margin:0 0 12px;
    padding:14px;
    border:1px solid rgba(255,116,23,.48);
    border-radius:13px;
    background:linear-gradient(145deg,#17120f,#0a0a0b 58%);
    color:#f4efe5;
    box-shadow:0 12px 28px rgba(0,0,0,.22);
  }
  .cds-mobile-event-summary>header{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:10px}
  .cds-mobile-event-summary>header small{color:#ff8b31;font-size:8px;font-weight:900;letter-spacing:.16em}
  .cds-mobile-event-summary>header h2{margin:0;color:#fff;font-size:21px;line-height:1}
  .cds-mobile-event-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .cds-mobile-event-meta>div{
    display:grid;
    grid-template-columns:27px minmax(0,1fr);
    grid-template-rows:auto auto;
    min-width:0;
    min-height:57px;
    padding:8px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:9px;
    background:rgba(255,255,255,.035);
  }
  .cds-mobile-event-meta .dashicons{
    grid-row:1/3;
    align-self:center;
    width:22px;
    height:22px;
    color:#ff8126;
    font-size:21px;
    line-height:22px;
  }
  .cds-mobile-event-meta small{align-self:end;color:#999;font-size:7px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
  .cds-mobile-event-meta strong{
    align-self:start;
    overflow:hidden;
    color:#f7f3ec;
    font-size:10px;
    line-height:1.25;
    text-overflow:ellipsis;
  }
  .cds-mobile-event-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
  .cds-mobile-event-actions>a,
  .cds-mobile-event-actions>button{
    display:flex;
    min-width:0;
    min-height:43px;
    margin:0;
    padding:8px 9px;
    align-items:center;
    justify-content:center;
    gap:6px;
    border:1px solid #3b3938;
    border-radius:9px;
    background:#181819;
    color:#fff;
    font:800 10px/1 Arial,sans-serif;
    text-decoration:none;
    text-transform:uppercase;
    cursor:pointer;
  }
  .cds-mobile-event-actions .primary{border-color:#ff7417;background:#ff7417;color:#120a05}
  .cds-mobile-event-actions .dashicons{width:18px;height:18px;font-size:18px;line-height:18px}
  .cds-mobile-share-feedback{min-height:0;margin:0;color:#69df78;font-size:9px;text-align:center}
  .cds-mobile-share-feedback:not(:empty){margin-top:7px}

  /* Pied de page condensé : les cinq accès restent visibles sans cinq grands étages. */
  .cdspel-footer{margin-top:14px!important}
  .cdspel-services{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:1px!important;
    width:100%!important;
  }
  .cdspel-services>a{
    display:grid!important;
    grid-template-columns:27px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-content:center!important;
    min-width:0!important;
    min-height:70px!important;
    padding:9px 10px!important;
    border:1px solid #252526!important;
  }
  .cdspel-services>a>span{grid-row:1/3;align-self:center;font-size:19px;line-height:1}
  .cdspel-services>a>b{align-self:end;overflow:hidden;font-size:10px!important;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
  .cdspel-services>a>small{align-self:start;overflow:hidden;margin-top:3px;color:#aaa;font-size:8px!important;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
  .cdspel-services>a:last-child{grid-column:1/-1;min-height:58px!important}
  .cdspel-footbottom{gap:6px!important;padding:9px 0!important;font-size:8px!important;line-height:1.35}
  .cdspel-footbottom p{margin:0!important}
  .cdspel-footbottom ul{flex-wrap:wrap!important;gap:7px!important;margin:0!important;padding:0!important}

  /* La barre basse se retire lorsqu’un clavier ou un paiement exige tout l’écran. */
  .cds-mobile-bottom-nav{transition:transform .22s ease,opacity .18s ease!important}
  body.cds-mobile-input-active .cds-mobile-bottom-nav{
    opacity:0!important;
    pointer-events:none!important;
    transform:translateY(calc(100% + 5px))!important;
  }
  body.woocommerce-checkout .cds-mobile-bottom-nav,
  body.woocommerce-order-pay .cds-mobile-bottom-nav{display:none!important}
  body.woocommerce-checkout,
  body.woocommerce-order-pay{padding-bottom:0!important}
}

@media (max-width:370px){
  .cds-mobile-event-summary{padding:11px}
  .cds-mobile-event-meta>div{grid-template-columns:24px minmax(0,1fr);padding:7px}
  .cds-mobile-event-actions>a,.cds-mobile-event-actions>button{font-size:9px}
}

@media (max-width:700px) and (orientation:landscape){
  body.single-cdsd_event .cdspel-pagehero{min-height:150px!important}
  .cds-mobile-event-meta{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cds-mobile-event-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){
  .cdspel-header,.cds-mobile-bottom-nav{transition:none!important}
}
