/* Onews · corrections de mise en page (accueil Elementor et page Radio).
   Chargé sur tout le site par l'extension Onews Communauté. Les blocs Elementor
   sont visés par leur identifiant : s'ils sont recréés, les identifiants changent. */

/* ============ EN-TÊTE (toutes les pages) : le menu reste sur une ligne entre 1025 et 1400 px ============ */
@media (min-width:1025px){
  .elementor-element.elementor-element-1c5dcdd{width:auto!important;max-width:none!important;flex:0 0 auto!important;--container-widget-width:auto}
  .elementor-element-1c5dcdd .main-menu{flex-wrap:nowrap!important}
  .elementor-element-1c5dcdd .main-menu > li{white-space:nowrap}
}

/* ============ ACCUEIL : mêmes bords pour tous les blocs ============ */

/* Sections sans marge latérale ou plus étroites : alignées sur les autres (1200 px, 10 px de marge). */
body.home .elementor .elementor-element.elementor-element-d535484,
body.home .elementor .elementor-element.elementor-element-e98515d,
body.home .elementor .elementor-element.elementor-element-fcc8221,
body.home .elementor .elementor-element.elementor-element-5d8b1e6{
  --content-width:1200px;--padding-left:10px;--padding-right:10px;
  padding-left:10px!important;padding-right:10px!important}
body.home .elementor .elementor-element.elementor-element-d535484 > .e-con-inner,
body.home .elementor .elementor-element.elementor-element-e98515d > .e-con-inner,
body.home .elementor .elementor-element.elementor-element-fcc8221 > .e-con-inner,
body.home .elementor .elementor-element.elementor-element-5d8b1e6 > .e-con-inner{max-width:1200px!important}

/* Les colonnes internes n'ajoutent pas de retrait : le contenu touche les mêmes bords partout. */
body.home .elementor .e-parent > .e-con-inner > .e-con-full{
  --padding-left:0px;--padding-right:0px;padding-left:0!important;padding-right:0!important}

/* ============ ACCUEIL : bandeau du haut (vidéo, 2 articles, Live Radio) ============ */
/* Les trois colonnes partent du même haut et finissent au même bas. */
body.home .elementor-element-e81851a > .e-con-inner{align-items:stretch!important}
body.home .elementor-element-e81851a > .e-con-inner > .e-con-full{
  --padding-top:0px;--padding-bottom:0px;padding-top:0!important;padding-bottom:0!important;
  justify-content:flex-start!important;align-items:stretch!important}
body.home .elementor-element-aa364c3{flex-direction:column!important}
body.home .elementor-element-d43d413,
body.home .elementor-element-6178db5{width:100%!important;max-width:100%!important;--container-widget-width:100%}

/* Titres des deux articles du milieu : 3 lignes au plus, pour ne pas dépasser. */
body.home .elementor-element-6178db5 .entry-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Carte Live Radio : toute la largeur et toute la hauteur de sa colonne. */
body.home .elementor-element-82a0fcf{width:100%!important;max-width:100%!important;flex:1 1 auto!important;--container-widget-width:100%;--container-widget-flex-grow:1}
body.home .elementor-element-82a0fcf > .elementor-widget-container,
body.home .elementor-element-82a0fcf .w-banner{height:100%}
body.home .elementor-element-82a0fcf .w-banner{display:flex;flex-direction:column;justify-content:center;min-height:340px;padding:32px 24px!important}
body.home .elementor-element-82a0fcf .w-banner-content{min-height:0!important;width:100%;justify-content:center!important}
/* Texte et bouton centrés dans la carte, logo Onews Radio sous le bouton. */
body.home .elementor-element-82a0fcf .content-inner{display:flex;flex-direction:column;align-items:center;width:100%;max-width:340px;margin:0 auto;text-align:center}
body.home .elementor-element-82a0fcf .banner-btn{margin-top:28px!important}
body.home .elementor-element-82a0fcf .content-inner::after{content:"";display:block;width:112px;height:108px;margin-top:22px;
  background:url(logo-onews-radio.webp) center/contain no-repeat;filter:drop-shadow(0 6px 14px rgba(0,0,0,.28))}
body.home .elementor-element-82a0fcf .banner-bg img{width:100%;height:100%;object-fit:cover}

@media (max-width:767px){
  body.home .elementor-element-e81851a > .e-con-inner{row-gap:24px!important}
}

/* Tablette : la vidéo et Live Radio côte à côte, les deux articles en dessous sur toute la largeur. */
@media (min-width:768px) and (max-width:1024px){
  body.home .elementor-element-e81851a > .e-con-inner{flex-wrap:wrap!important;row-gap:28px!important;column-gap:20px!important}
  body.home .elementor-element-2d27325{order:1;--width:calc(58% - 10px);width:calc(58% - 10px)!important;max-width:calc(58% - 10px)!important}
  body.home .elementor-element-32d963e{order:2;--width:calc(42% - 10px);width:calc(42% - 10px)!important;max-width:calc(42% - 10px)!important}
  body.home .elementor-element-aa364c3{order:3;--width:100%;width:100%!important;max-width:100%!important}
  body.home .elementor-element-6178db5{width:100%!important}
  body.home .elementor-element-6178db5 .block-inner{flex-direction:row!important;flex-wrap:nowrap!important}
  body.home .elementor-element-6178db5 .block-inner > .p-wrap{flex:1 1 50%!important;width:50%!important;max-width:50%!important}
  body.home .elementor-element-82a0fcf .w-banner{min-height:0}
  body.home .elementor-element-82a0fcf .banner-btn{margin-top:20px!important}
  body.home .elementor-element-82a0fcf .content-inner::after{width:88px;height:85px;margin-top:16px}
}

/* ============ ACCUEIL : « L'Édito + Les + lus » et « Sport + Météo » ============ */
/* Elementor donnait des largeurs incohérentes (colonne à 251 %, liste bloquée à 305 px) :
   la colonne de droite débordait et la liste ne remplissait pas sa place. */
body.home .elementor-element-6d71fb9 > .e-con-inner,
body.home .elementor-element-c7cc978 > .e-con-inner{column-gap:40px!important;row-gap:28px!important;flex-wrap:nowrap!important}
body.home .elementor-element-3936793,
body.home .elementor-element-1874319{flex:1 1 0!important;min-width:0!important}
body.home .elementor-element-8ae0a76,
body.home .elementor-element-6b8c830{--width:340px;width:340px!important;max-width:340px!important;flex:0 0 340px!important}
body.home .elementor-element-2bc8e78,
body.home .elementor-element-10826e2{--width:100%;width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}
body.home .elementor-element-5e99dbd,
body.home .elementor-element-718f5b6,
body.home .elementor-element-52fbd31{width:100%!important;max-width:100%!important;--container-widget-width:100%}
@media (max-width:1024px){
  body.home .elementor-element-6d71fb9 > .e-con-inner,
  body.home .elementor-element-c7cc978 > .e-con-inner{flex-direction:column!important;flex-wrap:nowrap!important}
  body.home .elementor-element-3936793,
  body.home .elementor-element-1874319,
  body.home .elementor-element-8ae0a76,
  body.home .elementor-element-6b8c830{--width:100%;width:100%!important;max-width:100%!important;flex:0 0 auto!important}
}
/* Tablette : les 3 Éditos et les 3 vidéos Sport sur une seule ligne (au lieu de 2 + 1 orphelin), titres « Les + lus » lisibles. */
@media (min-width:768px) and (max-width:1024px){
  body.home .elementor-element-152d2a7 .block-inner > .p-wrap,
  body.home .elementor-element-0193b1e .block-inner > .p-wrap{flex:0 0 33.333%!important;width:33.333%!important;max-width:33.333%!important}
  body.home .elementor-element-718f5b6 .entry-title{font-size:17px!important;line-height:1.35!important}
}

/* ============ PAGE RADIO : colonne « Continuez avec Onews » plus compacte ============ */
body .orf .orf__cols{grid-template-columns:minmax(0,1fr) 320px}
@media (max-width:1180px){body .orf .orf__cols{grid-template-columns:minmax(0,1fr) 280px}}
body .orf .orf__cards{gap:14px}
body .orf a.orf__card{border-radius:12px}
body .orf .orf__media{height:120px}
body .orf .orf__pill{top:10px;left:10px}
body .orf .orf__body{gap:6px;padding:14px 16px 16px}
body .orf .orf__name{font-size:19px;letter-spacing:-.4px}
body .orf .orf__text{font-size:14px;line-height:1.45}
body .orf .orf__link{padding-top:2px;font-size:14px}
body .orf .orf__ad{margin-top:24px}

/* Tablette et mobile : cartes horizontales (image à gauche, texte à droite), deux par ligne si la place le permet. */
@media (max-width:900px){
  body .orf .orf__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
  body .orf a.orf__card{flex-direction:row;align-items:stretch}
  body .orf .orf__media{flex:0 0 112px;width:112px;height:auto;min-height:112px}
  body .orf .orf__pill{top:8px;left:8px;padding:3px 6px;font-size:10px;line-height:10px}
  body .orf .orf__body{justify-content:center;min-width:0;padding:12px 14px}
  body .orf .orf__name{font-size:17px}
  body .orf .orf__text{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body .orf .orf__ad{max-width:420px;margin-left:auto;margin-right:auto}
}

/* ============ « LE PLEIN EN OUTRE-MER » sur téléphone : un carburant par ligne ============ */
@media (max-width:600px){
  body .onc .onc__pp{flex-direction:column;gap:3px}
  body .onc .onc__pp span:nth-child(n){flex-direction:row;justify-content:space-between;align-items:baseline;gap:6px}
  body .onc .onc__pp small{white-space:nowrap}
  body .onc .onc__pp b{font-size:15px}
}

/* ============ PAGE COMMUNAUTÉ : sans publication validée, pas de fil ============ */
.onc--nofeed .onc__feedtop,
.onc--nofeed #onc-filters,
.onc--nofeed #onc-examples,
.onc--nofeed #onc-lead,
.onc--nofeed .onc__cols,
.onc--nofeed #onc-more{display:none!important}
.onc--nofeed .onc__feed:not(:has(.onc__pb:not([hidden]))){display:none}
.onc--nofeed .onc__grid:not(:has(.onc__pb:not([hidden]))){grid-template-columns:minmax(0,1fr)}
.onc--nofeed .onc__grid:not(:has(.onc__pb:not([hidden]))) .onc__side{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start;gap:24px}
