/* ==========================================================================
   0. VARIABLES GLOBALES DE COULEURS
   ========================================================================== */
:root {
  --text-primary: #333;
  --text-muted: #666666;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-transparent: transparent;
  --border-color-light: #eef0f2;
  --shadow-default: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   1. DESIGN SYSTEM & TYPOGRAPHIES
   ========================================================================== */
.autopromo-teaser-bg .autopromo_block_content_item_text_small {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.autopromo-teaser-bg .autopromo_block_content_item_text_big {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 auto 10px auto;
  max-width: 95%;
}

.autopromo-teaser-column .autopromo_block_content_item_text_big,
.autopromo-teaser-column .field--name-field-titre {
  font-size: 2.2rem !important;
  text-align: center;
  font-weight: bold;
  line-height: 1 !important;
  margin-bottom: 0 !important;
  transition: color 0.3s ease;
}

/* ==========================================================================
   2. COMPOSANTS COMMUNS & EFFETS AU SURVOL
   ========================================================================== */
.autopromo-teaser-bg,
.autopromo-teaser-column {
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.autopromo-teaser-bg:hover,
.autopromo-teaser-column:hover {
  transform: translateY(-6px);
}

.autopromo-teaser-bg .field--name-field-lien a,
.autopromo-teaser-column .field--name-field-lien a {
  cursor: pointer;
}

.autopromo-teaser-bg .autopromo_block_wrapper,
.autopromo-teaser-column .autopromo_block_wrapper {
  display: flex;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--shadow-default);
  transition: box-shadow 0.3s ease;
}

.autopromo-teaser-bg:hover .autopromo_block_wrapper,
.autopromo-teaser-column:hover .autopromo_block_wrapper {
  box-shadow: var(--shadow-hover);
}

.autopromo-teaser-bg .autopromo_block_content_item_link a,
.autopromo-teaser-column .autopromo_block_content_item_link a {
  display: block;
  font-family: "CircularStd-Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease-out;
}

.autopromo-teaser-bg .autopromo_block_content_item_link a:hover,
.autopromo-teaser-column .autopromo_block_content_item_link a:hover {
  color: var(--primary-color);
  background-color: var(--bg-light);
  cursor: pointer;
}

/* ==========================================================================
   3. THÉMATIQUE : DISPLAY MODE "TEASER-BG"
   ========================================================================== */
.autopromo-teaser-bg {
  margin-bottom: 25px;
}

.autopromo-teaser-bg .autopromo_block_wrapper {
  flex-direction: column;
  height: 410px;
  background-color: var(--bg-light);
  border-radius: 0;
  overflow: hidden;
  border: none;
}

.autopromo-teaser-bg:hover .field--name-field-titre,
.autopromo-teaser-bg:hover .autopromo_block_content_item_text_big {
  color: var(--text-primary) !important;
}

.autopromo-teaser-bg .autopromo_block_wrapper::before {
  content: "";
  width: 100%;
  height: 70%;
  background-image: var(--var-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: none;
  opacity: 1;
  border-radius: 0;
  border-bottom: 4px solid var(--primary-color);
  box-sizing: border-box;
}

.autopromo-teaser-bg .autopromo_block_content_wrapper {
  height: 30%;
  width: 100%;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  background-color: var(--bg-light);
}

.autopromo-teaser-bg .autopromo_block_content_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.autopromo-teaser-bg .field--name-field-lien {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 0;
  width: 100%;
}

.autopromo-teaser-bg .autopromo_block_content_item_link a {
  padding: 1.3rem 3rem;
  font-size: 1.4rem;
}

.autopromo-teaser-bg .autopromo_block_content_item_text_small,
.autopromo-teaser-bg .autopromo_block_content_item_text_big,
.autopromo-teaser-bg .autopromo_block_content_item_text_big * {
  background-color: var(--bg-transparent) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.autopromo-teaser-bg .autopromo_block_content_item_text_big {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.autopromo-teaser-bg .autopromo_block_content_item_text_big * {
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
}

.autopromo-teaser-bg .field--name-field-titre {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

/* ==========================================================================
   4. THÉMATIQUE : DISPLAY MODE "TEASER-COLUMN"
   ========================================================================== */
.autopromo-teaser-column {
  margin-top: 15px !important; /* Espacement modéré au-dessus */
  margin-bottom: 35px;
  clear: both;
}

.autopromo-teaser-column::before {
  content: "";
  display: block;
  height: 15px; /* Ajusté à 15px */
  width: 100%;
}

.layout-content .autopromo-teaser-column {
  padding: 0 !important;
}

.autopromo-teaser-column .autopromo_block_wrapper {
  background-color: var(--primary-color);
  height: 360px;
  position: relative;
  overflow: visible;
}

.page-full_right .autopromo-teaser-column .autopromo_block_wrapper {
  height: 200px;
}

.autopromo-teaser-column:hover .field--name-field-titre,
.autopromo-teaser-column:hover .autopromo_block_content_item_text_big {
  color: var(--text-primary) !important;
}

.autopromo-teaser-column .autopromo_block_content_wrapper,
.autopromo-teaser-column .autopromo_block_content_item_wrapper {
  width: 80%;
  background-color: var(--bg-light);
  margin: auto auto -1px auto;
  position: relative;
  z-index: 1;
}

.autopromo-teaser-column .autopromo_block_content_wrapper {
  padding: 30px 30px 0 30px;
  border-top: 3px solid var(--primary-color);
}

.autopromo-teaser-column .autopromo_block_content_item_wrapper {
  display: flex;
  justify-content: center;
}

.autopromo-teaser-column .autopromo_block_content_item_link {
  margin: 30px auto;
  position: relative;
  z-index: 10;
}

.autopromo-teaser-column .autopromo_block_content_item_link a {
  padding: 1.3rem 3rem;
  font-size: 1.4rem;
}

.page-press--full .autopromo-teaser-column .autopromo_block_content_wrapper {
  background-color: var(--bg-light);
}