/* AADENA10 Actualités Manager — Front v0.2.2 */
.aad10-ed,
.aad10-ed * {
  box-sizing: border-box;
}

.aad10-ed {
  --aad10-ed-bg: #f7f8fa;
  --aad10-ed-panel: #ffffff;
  --aad10-ed-title: #071f3b;
  --aad10-ed-accent: #2995e8;
  --aad10-ed-deep: #0c355d;
  --aad10-ed-text: #465a70;
  --aad10-ed-soft: #f2f5f8;
  --aad10-ed-max: 3800px;
  --aad10-ed-side: 24px;
  --aad10-ed-pad: 18px;
  --aad10-ed-pad-mobile: 18px;
  --aad10-ed-gap: 12px;
  --aad10-ed-radius: 12px;
  --aad10-ed-left: 60fr;
  --aad10-ed-right: 40fr;
  --aad10-ed-image-position: center center;
  --aad10-ed-rss-plan: none;
  --aad10-ed-rss-plan-opacity: .14;
  --aad10-ed-rss-plan-size: 72%;
  --aad10-ed-rss-plan-x: 92%;
  --aad10-ed-rss-plan-y: 82%;

  position: relative;
  overflow: hidden;
  padding: var(--aad10-ed-pad) 0;
  color: var(--aad10-ed-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(41,149,232,.045), transparent 24%),
    linear-gradient(180deg, #fff 0%, var(--aad10-ed-bg) 100%);
  font-family: inherit;
}

.aad10-ed::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image:
    linear-gradient(rgba(7,31,59,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,31,59,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 76%, transparent 100%);
}

.aad10-ed-fullbleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.aad10-ed__frame {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--aad10-ed-side) * 2)), var(--aad10-ed-max));
  margin: 0 auto;
}

.aad10-ed__layout {
  display: grid;
  grid-template-columns: minmax(0, var(--aad10-ed-left)) minmax(360px, var(--aad10-ed-right));
  gap: var(--aad10-ed-gap);
  align-items: stretch;
}

.aad10-ed__layout--single {
  grid-template-columns: 1fr;
}

.aad10-ed__side {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--aad10-ed-gap);
}

.aad10-ed__side--1 {
  grid-template-rows: minmax(0, 1fr);
}

.aad10-ed-panel {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7,31,59,.11);
  border-radius: var(--aad10-ed-radius);
  background: rgba(255,255,255,.99);
  box-shadow: 0 12px 30px rgba(7,31,59,.06);
}

.aad10-ed-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.aad10-ed svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Colonne éditoriale gauche. */
.aad10-ed-news {
  height: 100%;
  padding: clamp(18px, 1.3vw, 25px);
  border-top: 3px solid var(--aad10-ed-accent);
  background:
    linear-gradient(90deg, rgba(41,149,232,.035), transparent 24%),
    var(--aad10-ed-panel);
}

.aad10-ed-news::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 3px;
  height: 56px;
  background: linear-gradient(180deg, var(--aad10-ed-accent), var(--aad10-ed-deep));
  border-radius: 0 4px 4px 0;
}

.aad10-ed-news__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 12px;
}

.aad10-ed-eyebrow {
  margin: 0 0 4px;
  color: var(--aad10-ed-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
  font-weight: 850;
}

.aad10-ed-news h2 {
  margin: 0;
  color: var(--aad10-ed-title);
  font-size: clamp(23px, 1.35vw, 32px);
  line-height: 1.05;
  letter-spacing: -.028em;
}

.aad10-ed-news__intro {
  max-width: 760px;
  margin: 6px 0 0;
  font-size: clamp(11px, .68vw, 13px);
  line-height: 1.45;
}

.aad10-ed-news__all,
.aad10-ed-readmore,
.aad10-ed-rss__head > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aad10-ed-accent);
  text-decoration: none;
  font-weight: 800;
}

.aad10-ed-news__all {
  min-height: 30px;
  padding: 0 2px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 8px;
}

.aad10-ed-news__all:hover,
.aad10-ed-readmore:hover {
  color: var(--aad10-ed-deep);
}

/* Article principal : image carrée conservée sans zoom ni déformation. */
.aad10-ed-featured {
  position: relative;
  min-height: clamp(210px, 13.5vw, 248px);
  overflow: hidden;
  border: 1px solid rgba(7,31,59,.105);
  border-radius: calc(var(--aad10-ed-radius) - 4px);
  background: linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: 0 7px 20px rgba(7,31,59,.04);
}

.aad10-ed-featured__image {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(46%, 430px);
  display: block;
  overflow: hidden;
  background: linear-gradient(90deg, #fff, #f5f7f9 42%, #eef2f5);
}

.aad10-ed-featured__image::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.97) 10%, rgba(255,255,255,.66) 28%, rgba(255,255,255,.12) 52%, transparent 70%),
    linear-gradient(0deg, rgba(7,31,59,.045), transparent 50%);
}

.aad10-ed-featured__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right center;
  transform: none !important;
}

.aad10-ed-featured__content {
  position: relative;
  z-index: 3;
  width: min(58%, 680px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 1.35vw, 26px);
}

.aad10-ed-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 7px;
  font-weight: 850;
}

.aad10-ed-badge--featured {
  color: #fff;
  border-left: 2px solid var(--aad10-ed-accent);
  background: var(--aad10-ed-title);
}

.aad10-ed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
  align-items: center;
  margin-top: 8px;
  color: #7b8997;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 7px;
  font-weight: 700;
}

.aad10-ed-meta span {
  position: relative;
  padding-left: 10px;
}

.aad10-ed-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--aad10-ed-accent);
  transform: translateY(-50%);
}

.aad10-ed-featured h3 {
  max-width: 620px;
  margin: 9px 0 0;
  font-size: clamp(21px, 1.38vw, 31px);
  line-height: 1.08;
  letter-spacing: -.027em;
}

.aad10-ed-featured h3 a,
.aad10-ed-story h3 a {
  color: var(--aad10-ed-title);
  text-decoration: none;
}

.aad10-ed-featured h3 a:hover,
.aad10-ed-story h3 a:hover {
  color: var(--aad10-ed-accent);
}

.aad10-ed-featured__content > p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--aad10-ed-text);
  font-size: clamp(10px, .64vw, 12px);
  line-height: 1.45;
}

.aad10-ed-readmore {
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 7px;
}

.aad10-ed-readmore svg,
.aad10-ed-news__all svg,
.aad10-ed-rss__head > a svg {
  width: 14px;
  height: 14px;
}

/* Deux articles secondaires avec vignettes carrées. */
.aad10-ed-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.aad10-ed-story {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(112px, 32%, 142px) minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(7,31,59,.095);
  border-radius: calc(var(--aad10-ed-radius) - 6px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(7,31,59,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}

.aad10-ed-story:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(7,31,59,.055);
}

.aad10-ed-story__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef2f5;
}

.aad10-ed-story__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--aad10-ed-image-position);
  transition: transform .28s ease;
}

.aad10-ed-story:hover .aad10-ed-story__image img {
  transform: scale(1.012);
}

.aad10-ed-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: rgba(7,31,59,.26);
  background: linear-gradient(135deg, rgba(41,149,232,.09), rgba(7,31,59,.03));
}

.aad10-ed-placeholder svg {
  width: 34px;
  height: 34px;
}

.aad10-ed-story__content {
  min-width: 0;
  padding: 11px 13px 10px;
}

.aad10-ed-story__content .aad10-ed-meta {
  margin-top: 0;
}

.aad10-ed-story h3 {
  margin: 6px 0 0;
  font-size: clamp(12px, .73vw, 15px);
  line-height: 1.22;
  letter-spacing: -.014em;
}

.aad10-ed-story__content > p {
  margin: 5px 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(9px, .56vw, 11px);
  line-height: 1.38;
}

.aad10-ed-story .aad10-ed-readmore {
  margin-top: 7px;
}

/* Veille réglementaire : bleu profond, filigrane de plan administrable. */
.aad10-ed-rss {
  min-height: 0;
  padding: clamp(17px, 1.05vw, 22px);
  color: rgba(255,255,255,.78);
  border-color: rgba(94,166,224,.2);
  border-top: 3px solid var(--aad10-ed-accent);
  background:
    linear-gradient(135deg, rgba(31,87,133,.22), transparent 48%),
    linear-gradient(135deg, #061a31 0%, var(--aad10-ed-deep) 100%);
  box-shadow: 0 13px 30px rgba(7,31,59,.14);
}

.aad10-ed-rss__watermark {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: var(--aad10-ed-rss-plan-opacity);
  background-image: var(--aad10-ed-rss-plan);
  background-repeat: no-repeat;
  background-size: var(--aad10-ed-rss-plan-size) auto;
  background-position: var(--aad10-ed-rss-plan-x) var(--aad10-ed-rss-plan-y);
  filter: grayscale(1) brightness(2.1) contrast(.8);
  mix-blend-mode: screen;
}

.aad10-ed-rss::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 0, #000 42%, #000 100%);
}

.aad10-ed-rss__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.aad10-ed-rss__head h3 {
  position: relative;
  margin: 0;
  padding-bottom: 7px;
  color: #fff;
  font-size: clamp(18px, 1.05vw, 23px);
  line-height: 1.06;
  letter-spacing: -.018em;
}

.aad10-ed-rss__head h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--aad10-ed-accent);
}

.aad10-ed-rss__head p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  line-height: 1.3;
}

.aad10-ed-rss__head > a {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #fff;
  white-space: nowrap;
  font-size: 9px;
}

.aad10-ed-rss__head > a:hover {
  color: #8fd0ff;
}

.aad10-ed-widget {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.aad10-ed-widget > :first-child {
  margin-top: 0 !important;
}

.aad10-ed-widget > :last-child {
  margin-bottom: 0 !important;
}

.aad10-ed-widget--rss .wp-rss-aggregator,
.aad10-ed-widget--rss ul,
.aad10-ed-widget--rss ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.aad10-ed-widget--rss .feed-item,
.aad10-ed-widget--rss li {
  position: relative;
  min-height: 0;
  margin: 0 !important;
  padding: 8px 0 7px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.11) !important;
  list-style: none !important;
}

.aad10-ed-widget--rss .feed-item:first-child,
.aad10-ed-widget--rss li:first-child {
  border-top: 0 !important;
}

.aad10-ed-widget--rss .feed-item::before,
.aad10-ed-widget--rss li::before {
  content: none !important;
  display: none !important;
}

.aad10-ed-widget--rss a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: clamp(11px, .66vw, 13px) !important;
  line-height: 1.26 !important;
  font-weight: 720 !important;
}

.aad10-ed-widget--rss a:hover {
  color: #8fd0ff !important;
}

.aad10-ed-widget--rss .feed-source,
.aad10-ed-widget--rss .source-title,
.aad10-ed-widget--rss .feed-date,
.aad10-ed-widget--rss time,
.aad10-ed-widget--rss small {
  display: inline-block;
  margin-top: 3px;
  margin-right: 7px;
  color: rgba(255,255,255,.53) !important;
  font-size: 8px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}

.aad10-ed-widget--rss .thumbnail,
.aad10-ed-widget--rss img {
  display: none !important;
}

/* Avis : rendu Trustindex naturel, simplement cadré comme une vraie troisième carte. */
.aad10-ed-reviews {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: clamp(8px, .7vw, 12px);
  border-top: 3px solid var(--aad10-ed-accent);
  background: #fff;
  box-shadow: 0 12px 30px rgba(7,31,59,.055);
}

.aad10-ed-widget--reviews {
  width: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.aad10-ed-widget--reviews .ti-widget,
.aad10-ed-widget--reviews [class*="trustindex"],
.aad10-ed-widget--reviews iframe {
  max-width: 100% !important;
}

.aad10-ed-widget--reviews .ti-widget {
  margin: 0 !important;
}

.aad10-ed-empty {
  padding: 16px;
  border: 1px dashed rgba(7,31,59,.18);
  border-radius: 8px;
  color: #6c7c8c;
  text-align: center;
  background: rgba(255,255,255,.68);
  font-size: 11px;
  line-height: 1.4;
}

.aad10-ed-rss .aad10-ed-empty {
  color: rgba(255,255,255,.68);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.045);
}

@media (max-width: 1380px) {
  .aad10-ed__layout {
    grid-template-columns: minmax(0, 58fr) minmax(360px, 42fr);
  }

  .aad10-ed-featured__content {
    width: 61%;
  }

  .aad10-ed-featured__image {
    width: 44%;
  }
}

@media (max-width: 1120px) {
  .aad10-ed__layout {
    grid-template-columns: 1fr;
  }

  .aad10-ed__side {
    height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
  }

  .aad10-ed-stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .aad10-ed {
    padding: var(--aad10-ed-pad-mobile) 0;
  }

  .aad10-ed__frame {
    width: min(calc(100% - 24px), var(--aad10-ed-max));
  }

  .aad10-ed__layout,
  .aad10-ed__side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .aad10-ed-panel,
  .aad10-ed-reviews {
    border-radius: min(var(--aad10-ed-radius), 12px);
  }

  .aad10-ed-news {
    padding: 18px 15px 16px;
  }

  .aad10-ed-news::before {
    top: 17px;
    height: 48px;
  }

  .aad10-ed-news__head {
    display: block;
    margin-bottom: 12px;
  }

  .aad10-ed-news__all {
    margin-top: 7px;
  }

  .aad10-ed-featured {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .aad10-ed-featured__image {
    position: relative;
    inset: auto;
    order: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 360px;
  }

  .aad10-ed-featured__image::before {
    background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.18) 38%, transparent 62%);
  }

  .aad10-ed-featured__image img {
    object-position: center center;
  }

  .aad10-ed-featured__content {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 16px;
    margin-top: -20px;
  }

  .aad10-ed-featured h3 {
    font-size: clamp(21px, 6.8vw, 29px);
  }

  .aad10-ed-stories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1px 0 7px;
    scrollbar-width: thin;
  }

  .aad10-ed-story {
    flex: 0 0 min(88%, 390px);
    grid-template-columns: 38% 62%;
    min-height: 128px;
    scroll-snap-align: start;
  }

  .aad10-ed-rss {
    padding: 17px 15px;
  }

  .aad10-ed-rss__head {
    gap: 9px;
  }

  .aad10-ed-rss__head > a span {
    display: none;
  }

  .aad10-ed-reviews {
    height: auto;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .aad10-ed-story {
    grid-template-columns: 1fr;
  }

  .aad10-ed-story__image {
    aspect-ratio: 1 / 1;
  }

  .aad10-ed-story__content {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aad10-ed *,
  .aad10-ed *::before,
  .aad10-ed *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.aad10-ed-featured--no-image .aad10-ed-featured__content,
.aad10-ed-story--no-image .aad10-ed-story__content {
  width: 100%;
}
