/* ========================================
   SISTEMA VISUAL SMA - VERSIÓN FINAL REFORZADA
   ======================================== */

:root {
    --sma-blue: #054487;
    --sma-darkblue: #05376d;
    --sma-orange: #f1a117;
    --text-main: #747475;
    --text-title: #054487;
}

/* ========================================
   1. TIPOGRAFÍA (Forzado para SP Page Builder)
   ======================================== */

body, .sppb-addon, .sppb-addon-title, .sppb-addon-content {
    font-family: 'Inter', sans-serif !important;
}

/* Títulos */

h1, .sppb-addon-title h1, .sppb-addon h1 { 
    font-size: 48px !important; 
    color: var(--text-title);
    font-weight: 700;
}

h2, .sppb-addon-title h2, .sppb-addon h2 { 
    font-size: 36px !important; 
    color: var(--text-title);
    font-weight: 700;
}

h3, .sppb-addon-title h3, .sppb-addon h3 { 
    font-size: 26px !important; 
    color: var(--text-title);
    font-weight: 700; 
}

/* Texto */

p, .sppb-addon p, .sppb-addon-content { 
    font-size: 18px !important; 
    color: var(--text-main); 
}


/* ========================================
   2. BOTONES
   ======================================== */

.btn-taronja, 
.btn-blau, 
.btn-oscur,
.btn-blanc,
.btn-transparent {

    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 6px;
    display: inline-block;

    cursor: pointer;
    text-decoration: none !important;
    border: none !important;

    transition: all 0.25s ease;
}

/* Botón naranja */

.btn-taronja { 
    background: var(--sma-orange) !important; 
    color: white !important; 
}

/*Botón azul sin borde */
.btn-oscur {
    background: var(--sma-darkblue);
    color: white;
}

/*Botón blanco */
.btn-blanc {
    background: white;
    color: var(--sma-blue);
    border: 1px solid #e0e0e0;
}

/* Botón azul */

.btn-blau { 
    background: var(--sma-blue) !important; 
    color: white !important; 
    box-shadow: inset 0 0 0 2px #ffffff !important; 
}

/* Botón transparente */

.btn-transparent { 
    background: transparent !important; 
    color: white !important; 
    box-shadow: inset 0 0 0 2px #ffffff !important; 
}

/* Hover general (solo sombra) */

.btn-taronja:hover, 
.btn-blau:hover, 
.btn-oscur:hover,
.btn-blanc:hover,
.btn-transparent:hover {

    box-shadow: 0 12px 24px rgba(0,0,0,0.35) !important;
    color: white !important;
}

/* Mantener borde interior en botón azul */

.btn-blau:hover { 
    box-shadow: 
        0 12px 24px rgba(0,0,0,0.35),
        inset 0 0 0 2px #ffffff !important;
}

/* Movimiento opcional del botón */

.btn-up:hover {
    transform: scale(1.02);
}

.btn-noticies {
    background: red;
    border: 2px solid var(--text-dark);
    color: var(--sma-darkblue);
    font-size: 14px;
    text-transform: lowercase;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

/* ========================================
   3. HELPERS DE COLOR
   ======================================== */

/* Texto blanco para Hero y banners */

.text-white h1,
.text-white h2,
.text-white h3,
.text-white p,
.text-white .sppb-addon-title,
.text-white .sppb-addon-content {
    color: white !important;
}


/* ========================================
   4. HELPERS VISUALES
   ======================================== */

/* Sombra opcional para títulos */

.text-shadow h1,
.text-shadow h2,
.text-shadow h3,
.text-shadow p {
    text-shadow: 0 4px 4px rgba(0,0,0,1);
}

/* Centrado vertical para Hero */

.flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column;
    min-height: 200px;
}


/* ========================================
   5. SISTEMA BOXED LAYOUT
   ======================================== */

/* Fondo exterior */

body {
    background-color: #2b2f36 !important;
}

/* Caja central */

#sp-main-body,
.body-innerwrapper,
section#sp-main-body {

    background-color: #fcfcfb !important;

    max-width: 1400px;
    margin: 0 auto;

    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

/* Limpieza SP Page Builder */

.sppb-section {
    background-color: transparent;
}

.sma-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sma-title {
  text-align: left;
  margin-bottom: 15px;
}

/* PRESIDENT */
.sma-president {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sma-president img {
  width: 220px;
  border-radius: 12px;
}

.sma-president-info h2 {
  margin: 0;
}

.sma-role {
  font-weight: bold;
  color: var(--sma-blue);
  margin-bottom: 10px;
}

/* CÀRRECS PRINCIPALS */
.sma-core {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.instruments-core {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.sma-core-item {
  background: #f5f7fa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.item-instrument {
  background: var(--sma-darkblue);
  color: white;
  padding: 0px;
  border-radius: 12px;
  text-align: center;
}

.item-instrument:hover {
  background: var(--sma-orange);
  color: var(--sma-darkblue);
  font-weight: bold;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* BLOCS LLARGS */
.sma-block {
  margin-bottom: 30px;
}

.sma-block h3 {
  margin-bottom: 10px;
  color: var(--sma-darkblue);
}

.sma-block p {
  line-height: 1.6;
}

/* ========================================
   HISTÒRIA SMA - ESTILOS INTEGRADOS
   ======================================== */

.sma-historia {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sma-historia p {
  text-align: justify;
  line-height: 1.6;
}

/* INTRO */
.sma-intro {
  text-align: center;
  margin-bottom: 50px;
}

.sma-intro h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-title, #054487);
}

.sma-intro p {
  font-size: 18px;
  color: var(--text-main, #747475);
  text-align: center;
}

/* TIMELINE */
.sma-timeline {
  border-left: 3px solid var(--sma-blue, #054487);
  padding-left: 25px;
  margin-bottom: 60px;
}

.sma-timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.sma-timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--sma-blue, #054487);
  border-radius: 50%;
}

.sma-timeline-item.highlight::before {
  background: #f1a117;
}

.year {
  font-weight: bold;
  color: var(--sma-blue, #054487);
  font-size: 18px;
}

/* BLOCS - Versión mejorada */
.sma-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
}

.sma-block img {
  width: 45%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sma-block .text {
  width: 55%;
}

.sma-block .text h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-title, #054487);
}

/* Alternancia izquierda/derecha en escritorio */
.sma-block.img-right {
  flex-direction: row-reverse;
}

/* DANA */
.sma-dana {
  display: flex;
  gap: 30px;
  background: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  margin: 60px 0;
}

.sma-dana img {
  width: 50%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.sma-dana-content {
  width: 50%;
  color: #ffffff;
}

.sma-dana-content h2 {
  color: #f1a117;
  margin-top: 0;
  margin-bottom: 20px;
}

.sma-dana-content p {
  color: #f0f0f0;
  text-align: left;
}

/* FINAL */
.sma-final {
  text-align: center;
  margin-top: 50px;
  padding: 40px 20px;
  background: #f5f7fa;
  border-radius: 12px;
}

.sma-final p {
  font-size: 1.2rem;
  text-align: center;
  font-style: italic;
}

/* ANIMACIONES (opcional) */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE MÓVIL
   ======================================== */

@media (max-width: 768px) {
  .sma-historia {
    padding: 20px 15px;
  }

  .sma-intro h1 {
    font-size: 32px;
  }

  .sma-intro p {
    font-size: 16px;
  }

  /* CRUCIAL: Todos los bloques en columna y siempre imagen arriba */
  .sma-block {
    flex-direction: column !important;
    gap: 20px;
    margin-bottom: 40px;
  }

  .sma-block .text {
    width: 100%;
    order: 2; /* Texto abajo */
  }

  .sma-block img {
    width: 100%;
    height: 200px;
    order: 1; /* Imagen arriba */
  }

  /* DANA también en columna */
  .sma-dana {
    flex-direction: column !important;
    padding: 20px;
    gap: 20px;
  }

  .sma-dana-content {
    width: 100%;
    order: 2;
  }

  .sma-dana img {
    width: 100%;
    height: 200px;
    order: 1;
  }

  /* Timeline más compacto */
  .sma-timeline {
    margin-bottom: 40px;
  }

  .sma-timeline-item {
    margin-bottom: 20px;
  }

  .sma-final {
    margin-top: 30px;
    padding: 30px 15px;
  }

  .sma-final p {
    font-size: 16px;
  }
}

/* Tablet (opcional) */
@media (min-width: 769px) and (max-width: 1024px) {
  .sma-block {
    gap: 20px;
  }

  .sma-block img {
    height: 250px;
  }
}

.sma-core-item i {
  color: var(--sma-blue);
  margin-bottom: 10px;
}

.sma-core-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.sma-fullwidth {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.sma-soci .sma-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sma-soci .sma-core {
  grid-template-columns: repeat(3, 1fr);
}

/* LANDINGS SMA - NETEJA TOTAL */
body:has(.sma-landing) .article-header,
body:has(.sma-landing) .article-ratings-social-share,
body:has(.sma-landing) .article-can-edit,
body:has(.sma-landing) .pagenavigation {
  display: none !important;
}

/* Eliminar espais del contenidor Joomla */
body:has(.sma-landing) .article-details {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ajust superior */
body:has(.sma-landing) #sp-main-body {
  padding-top: 0 !important;
}

/* Opcional (per si algun dia molesta) */
body:has(.sma-landing) .container {
  padding-top: 0 !important;
}

/* TEXT JUSTIFICAT reutilitzable */
.text-justify {
  text-align: justify;
}

/* DIRECTOR */
.sma-director {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.sma-director img {
  width: 100%;
  border-radius: 12px;
}

/* DISCOGRAFIA */
.sma-discografia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.sma-discografia img {
  width: 100%;
  border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .sma-director,
  .sma-discografia {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .sma-text-grid {
    grid-template-columns: 1fr !important;
  }
}

  .sma-hover-img img {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.sma-hover-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
}


/* =========================
   SUBMENU STICKY SMA PRO
   ========================= */

.sma-submenu {
  position: sticky;
  top: 0px;
  z-index: 999;
  background: white;
  box-ssshadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 10px 0;
}

/* Centrat interior */
.sma-submenu .sppb-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Links base */
.sma-submenu .sppb-nav li a {
  color: var(--sma-blue) !important;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

/* Hover */
.sma-submenu .sppb-nav li a:hover {
  color: var(--sma-orange) !important;
}


/* Separació visual subtil */
.sma-submenu .sppb-nav li {
  list-style: none;
}

.sma-submenu-item a {
  position: relative;
}

.sma-submenu-item a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sma-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.sma-submenu-item a:hover::after {
  width: 80%;
}

/* ========================================
   FORMULARIOS SMA - VERSIÓN CORREGIDA
   ======================================== */

/* CONTENEDOR GENERAL DE FORMULARIOS (sin romper checkboxes) */
.sma-form-box {
  background: #f5f7fa;
  padding: 30px;
  border-radius: 16px;
  max-width: 1000px;
  margin: 20px auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Solo inputs de texto, email, etc. (NO checkboxes ni radios) */
.sma-form-box input:not([type="checkbox"]):not([type="radio"]),
.sma-form-box select,
.sma-form-box textarea {
  background: white;
  color: #333;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: all 0.2s ease;
}

/* Focus para estos inputs */
.sma-form-box input:not([type="checkbox"]):not([type="radio"]):focus,
.sma-form-box select:focus,
.sma-form-box textarea:focus {
  border-color: var(--sma-blue);
  box-shadow: 0 0 0 2px rgba(5, 68, 135, 0.15);
  outline: none;
}

/* Checkboxes y radios NORMALES (sin width:100%) */
.sma-form-box input[type="checkbox"],
.sma-form-box input[type="radio"] {
  width: auto !important;
  min-width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: var(--sma-orange);
  cursor: pointer;
  display: inline-block;
}

/* Labels de checkboxes/radios en línea */
.sma-form-box .rsform-block-politicaprivacitat label,
.sma-form-box .rsform-block-opcions-us-imatge label {
  /*display: inline-flex !important;*/
  align-items: center;
  font-weight: normal;
  gap: 8px;
}

/* Contenedor de grupos de checkboxes */
.sma-form-box .rsfp-fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botones de submit (normales, no anchos) */
.sma-form-box input[type="submit"],
.sma-form-box button[type="submit"] {
  width: auto !important;
  min-width: 180px;
  display: inline-block;
  background: var(--sma-orange);
  color: var(--sma-darkblue);
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 40px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sma-form-box input[type="submit"]:hover,
.sma-form-box button[type="submit"]:hover {
  background: var(--sma-blue);
  color: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* Botones de paginación (Anterior/Siguiente) */
.sma-form-box .formControls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sma-form-box .formControls button,
.sma-form-box .formControls input[type="button"] {
  width: auto !important;
  min-width: 140px;
  background: var(--sma-orange);
  color: var(--sma-darkblue);
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.sma-form-box .formControls button:hover,
.sma-form-box .formControls input[type="button"]:hover {
  background: white;
  color: var(--sma-blue);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* Textos intro (corregir color blanco problemático) */
.sma-form-box .rsform-type-freetext {
  background: rgba(5, 68, 135, 0.08);
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.sma-form-box .rsform-type-freetext p {
  color: var(--text-main) !important;
  margin: 0;
}

/* LABELS */
.rsform label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sma-blue);
  margin-bottom: 4px;
}

/* Labels horizontales (responsive) */
.sma-form-box .uk-form-horizontal .uk-form-label {
  text-align: right;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .sma-form-box .uk-form-horizontal .uk-form-label {
    text-align: left;
    margin-bottom: 5px;
  }
  
  .sma-form-box {
    padding: 25px 20px;
    margin: 30px auto;
  }
}

/* BARRA PROGRÉS CONTENIDOR */
.rsformProgressContainer {
  width: 100%;
  height: 6px;
  background: var(--sma-darkblue);
  border: solid 1px var(--sma-darkblue);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

/* BARRA PROGRÉS */
.rsformProgressBar {
  height: 100%;
  background: var(--sma-orange);
  transition: width 0.4s ease;
}

/* RESET CHECKBOX I RADIO 
.sma-form-box input[type="checkbox"],
.sma-form-box input[type="radio"] {
  accent-color: var(--sma-orange);
  transform: scale(1.2);
  cursor: pointer;
}*/

.sma-preu-box {
  background: rgba(43,47,54,0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--sma-blue);
}

.sma-preu-box .preu {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sma-blue);
}

.sma-preu-box .gratis {
  color: var(--sma-orange);
  font-weight: 600;
}

.sma-preu-box .nota {
  font-size: 0.9rem;
  opacity: 0.7;
}

.sma-footer {
    text-align: center;
    font-size: 14px;
}

.sma-footer a,
.sma-copyright {
    color: #a2a2a2;
    text-decoration: none;
    font-weight: 500;
}

.sma-footer a:hover {
    color: #054487;
    text-decoration: underline;
}

.separator {
    margin: 0 12px;
    color: #ccc;
}

/* =========================
   MENÚ PRINCIPAL SMA (estil submenu)
========================= */

/* Links base */
.sp-megamenu-parent > li > a {
  color: var(--sma-blue) !important;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

/* LÍNIA DES DEL CENTRE */
.sp-megamenu-parent > li > a::before {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sma-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Hover */
.sp-megamenu-parent > li:hover > a::before {
  width: 80%;
}

.sp-megamenu-parent > li:hover > a {
  font-weight: 500;
}

/* Actiu */
.sp-megamenu-parent > li.active > a::before {
  width: 80%;
}

.sp-megamenu-parent > li.active > a {
  font-weight: 500;
}


/* =========================
   TIMELINE HORITZONTAL SMA
========================= */

.sma-presidents {
  margin: 10px 0;
}

.sma-presidents-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 10px;

  scroll-snap-type: x mandatory;
}

/* Scroll més bonic */
.sma-presidents-scroll::-webkit-scrollbar {
  height: 8px;
}

.sma-presidents-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* CARD */
.sma-president-card {
  min-width: 220px;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 15px;
  text-align: center;

  flex-shrink: 0;
  scroll-snap-align: start;

  transition: all 0.3s ease;
}

/* Hover (reutilitza estil SMA) */
.sma-president-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Imatge */
.sma-president-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Nom en dues línies */
.sma-president-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
  line-height: 1.3;
}

.sma-president-card .first-name {
  display: block;
}

.sma-president-card .last-name {
  display: block;
  font-size: 0.90em;
}

/* Any */
.sma-president-card .year {
  color: var(--sma-blue);
  font-weight: bold;
  font-size: 14px;

}


/* =========================
   DRAG AMB RATOLÍ (DESKTOP)
========================= */

.sma-presidents-scroll {
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
}

.sma-presidents-scroll:active {
  cursor: grabbing;
}

/* Evitar selecció de text dins */
.sma-presidents-scroll * {
  user-select: none;
}

.sma-presidents-scroll img {
  pointer-events: none;
}

/* IMPORTANT: permetre clics en cas que en el futur hi haja links */
.sma-presidents-scroll a {
  pointer-events: auto;
}

/*IMATGES NOTICIES */
@media (min-width: 992px) {
  .com-content-category-blog .article-intro-image {
    display: none;
  }
}

@media (max-width: 991px) {
  .com-content-category-blog .article-intro-image {
    display: block;
    margin-bottom: 15px;
  }

  .com-content-category-blog .article-body {
    display: flex;
    flex-direction: column;
  }

  .com-content-category-blog .article-header {
    order: 1 !important;
  }

  .com-content-category-blog .article-intro-image {
    order: 2 !important;
  }

  .com-content-category-blog .article-introtext {
    order: 3 !important;
  }
}

.com-content-category-blog .article-header h2 a {
  color: var(--sma-darkblue) !important; 
  transition: color 0.3s ease;
  text-decoration: none;
}

.com-content-category-blog .article-header h2 a:hover {
  color: #3970ab !important; 
}

@media (max-width: 991px) {
  .img-noticia {
    display: none !important;
  }
}

.img-noticia {
  margin-right: 10px; 
  margin-bottom: 10px; 
  float: left;
  width: 210px;
  height: 100%;
  }

.com-content-category-blog .article {
  margin-bottom: 40px;
}

.com-content-category-blog .article-introtext {
  font-size: 15px;
  line-height: 1.6;
}

/*PROFESSORAT*/

.sma-professors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

@media (max-width: 992px) {
  .sma-professors {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .sma-professors {
    grid-template-columns: 1fr;
  }
}

.prof-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0s ease;
}

.prof-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.prof-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}

.prof-card h3 {
  margin-top: 10px;
  color: var(--sma-darkblue);
}

.prof-card p {
  font-size: 14px;
}

.sma-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 30px;
}

.filtre-btn {
  padding: 0px 5px;
  border-radius: 50px;
  border: 1px solid var(--sma-darkblue);
  background: transparent;
  color: var(--sma-darkblue);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filtre-btn:hover {
  background: var(--sma-darkblue);
  color: #fff;
}

.filtre-btn.active {
  background: var(--sma-orange);
  border-color: var(--sma-orange);
  color: #fff;
}

.prof-card {
  opacity: 1;
  transform: scale(1);
}

.prof-card.hide {
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  position: absolute;
}

