/********** Template CSS **********/
:root {
    --primary: rgb(218, 135, 2);
    --light: #F8F8F8;
    --dark: #252525;
     --bg: #0f1115;
            --panel: #141823;
            --muted: #9aa4b2;
            --text: #e8ecf1;
            --brand: #21c17a;
            --brand-2: #13b88a;
            --accent: #3a7afe;
            --danger: #ff4d4f;
            --radius: 14px;
            --shadow: 0 10px 30px rgba(0, 0, 0, .25);
            --shadow-soft: 0 8px 20px rgba(0, 0, 0, .18);
            --maxw: 1200px;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
    border-radius: 20px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: #da8702;
    border-color: #777777;
}

.btn-outline-body:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    /* /*background: rgba(0, 0, 0, .5);* */
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    /* /*background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/foire_internationale_de_sfax_cover.jpg) center center no-repeat;* */
     background: url(../img/foire_internationale_de_sfax_cover.jpg) center center no-repeat;
    background-size: cover;
    height:50vh;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}


/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--dark);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}


/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}


/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

.service-item * {
    transition: .5;
}

.service-item:hover * {
    color: #FFFFFF;
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--primary);;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* ===== Modern Partners Styles ===== */

/* Section background (dégradé subtil + support dark) */
.section-partners.is-gradient {
  position: relative;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13,110,253,.08), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(32,201,151,.09), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.01));
}
@media (prefers-color-scheme: dark) {
  .section-partners.is-gradient {
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(13,110,253,.12), transparent 60%),
      radial-gradient(800px 400px at 90% 10%, rgba(32,201,151,.12), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.00), rgba(255,255,255,.02));
  }
}

/* Eyebrow/section label */
.section-eyebrow {
  display:inline-block;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.9rem;
  padding:.35rem .75rem;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(13,110,253,.12), rgba(32,201,151,.12));
  color:#0d6efd;
}
@media (prefers-color-scheme: dark) {
  .section-eyebrow { color:#a3c6ff; }
}

/* Partner card (glassmorphism) */
.partner-card {
  display:flex;
  align-items:center;
  justify-content:center;
  height:110px;
  padding:22px 28px;
  border-radius:16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease, background .28s ease, border-color .28s ease;
  filter: grayscale(100%) contrast(105%) brightness(97%);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  text-decoration:none;
}
.partner-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
  filter: none;
  background: rgba(255,255,255,0.9);
  border-color: rgba(13,110,253,.25);
}

/* Media style variant */
.partner-card.is-media {
  border-style: dashed;
  border-color: rgba(13,110,253,.35);
  background: rgba(255,255,255,0.6);
}
.partner-card.is-media:hover {
  border-color: rgba(32,201,151,.45);
}

/* Images homogènes + rétina ok */
.partner-card img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* Owl spacing ajusté */
.owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}
.owl-carousel .owl-item {
  padding: 2px; /* petite gouttière interne */
}

/* Réduction motion pour accessibilité */
@media (prefers-reduced-motion: reduce) {
  .partner-card,
  .partner-card:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* Mode sombre (si ton site en a un) */
@media (prefers-color-scheme: dark) {
  .partner-card {
    background: rgba(18,18,18,0.55);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    filter: grayscale(100%) contrast(110%) brightness(110%);
  }
  .partner-card:hover {
    background: rgba(24,24,24,0.7);
    border-color: rgba(13,110,253,.35);
  }
}


/* Topbar */
.topbar-modern { position: relative; }
.topbar-modern::after {
  content:""; position:absolute; inset:auto 0 0 0; height:1px;
  background: linear-gradient(90deg, var(--bs-primary), rgba(255,255,255,.15), var(--bs-primary));
  opacity:.5;
}
.link-light-75 { color: rgba(255,255,255,.75); }
.link-light-75:hover { color:#fff; }

/* Icônes rondes (compatibles avec le footer) */
.btn-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  color:#fff; text-decoration:none; transition:transform .2s, background .2s, border-color .2s;
}
.btn-icon:hover { transform:translateY(-2px); background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.25); }
.btn-icon-sm { width:36px; height:36px; }

/* Navbar moderne */
.modern-navbar { transition: box-shadow .25s ease, background-color .25s ease; }
.modern-navbar.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.08); }

/* Lien souligné moderne */
.nav-underline {
  position:relative; padding:.75rem 1rem; font-weight:500;
}
.nav-underline::after {
  content:""; position:absolute; left:1rem; right:1rem; bottom:.2rem; height:2px;
  background: transparent; transform: scaleX(0); transform-origin: left; transition: transform .25s ease, background .25s ease;
}
.nav-underline:hover::after,
.nav-underline.active::after {
  background: var(--bs-primary);
  transform: scaleX(1);
}
/* État actif plus lisible */
.navbar .nav-link.active { color: var(--bs-primary); }

.modern-navbar {
    padding-top: 0.02rem;  /* diminue l’espace en haut */
    padding-bottom: 0.02rem; /* diminue l’espace en bas */
}
/* Meilleure densité sur mobile */
@media (max-width: 991.98px) {
  .navbar .nav-link { padding: .75rem 0; }
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.news-card img {
    transition: transform 0.4s ease;
}
.news-card:hover img {
    transform: scale(1.05);
}

.contact-card {
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.icon-box {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}
.whatsapp-btn {
    position: fixed;
    bottom: 100px; /* juste au-dessus du back-to-top */
    right: 30px;
    z-index: 1000;
     border-radius: 50%;
}
/* galery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  cursor: zoom-in;
  aspect-ratio: 4/3;               /* garde un rendu homogène */
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-item .title {
  font-weight: 600;
}
.gallery-item .hint {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover figcaption { opacity: 1; }

.cta-tile{
  position:relative; overflow:hidden; border-radius:16px; min-height:260px;
  box-shadow:0 6px 24px rgba(0,0,0,.08);
}
.cta-tile .bg-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .6s ease; filter:saturate(105%);
}
.cta-tile::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05));
}
.cta-tile .overlay{
  position:relative; z-index:2; color:#fff; height:100%;
  display:flex; flex-direction:column; justify-content:flex-end; padding:24px;
}
.cta-tile:hover .bg-img{ transform:scale(1.06); }

.gallery-prev, .gallery-next {
  background: rgba(0,0,0,0.5);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: background .3s;
}
.gallery-prev:hover, .gallery-next:hover {
  background: rgba(0,0,0,0.8);
}


/*nos foire*/
:root{
    --card-radius: 1.25rem;
    --card-shadow: 0 10px 30px rgba(0,0,0,.12);
    --overlay-from: rgba(3, 7, 18, 0.15);
    --overlay-to: rgba(3, 7, 18, 0.60);
  }
  .section-expos{
    background: radial-gradient(1200px 600px at 10% -10%, rgba(13, 110, 253, .08), transparent 100%), radial-gradient(800px 400px at 90% 10%, rgba(32, 201, 151, .09), transparent 60%), linear-gradient(180deg, rgba(0, 0, 0, .00), rgba(0, 0, 0, .01));
  }
  .section-expos .subtitle{
    display:inline-block;
    padding:.35rem .75rem;
    border-radius:999px;
    font-weight:600;
    letter-spacing:.04em;
    background:rgba(13,110,253,.12);
    color:#0d6efd;
  }
  .expo-card{
    position:relative;
    border:0;
    border-radius:var(--card-radius);
    overflow:hidden;
    height:100%;
    box-shadow:var(--card-shadow);
    transition:transform .35s ease, box-shadow .35s ease;
    background:#0b1220;
  }
  .expo-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 40px rgba(0,0,0,.18);
  }
  .expo-bg, .expo-overlay{
    position:absolute; inset:0;
  }
  .expo-bg{
    width:100%; height:100%; object-fit:cover;
    filter:brightness(.85) saturate(1.05);
    transform:scale(1.02);
    transition:transform .6s ease, filter .6s ease;
  }
  .expo-card:hover .expo-bg{ transform:scale(1.08); filter:brightness(.9) saturate(1.1); }
  .expo-overlay{
    background:linear-gradient(180deg, var(--overlay-from) 0%, var(--overlay-to) 100%);
    pointer-events:none;
  }
  .expo-body{
    position:relative; z-index:2; color:#fff;
    padding:2rem;
    display:flex; flex-direction:column; justify-content:flex-end; min-height:340px;
    text-align:left;
  }
  .expo-icon{
    width:64px; height:64px; border-radius:18px; background:rgba(255,255,255,.12);
    display:grid; place-items:center; backdrop-filter: blur(8px);
    margin-bottom:1rem;
  }
  .expo-title{ margin:0 0 .5rem; font-weight:800; letter-spacing:.2px; }
  .expo-desc{ color:rgba(255,255,255,.85); margin-bottom:1rem; }
  .btn-glass{
    --bs-btn-padding-y: .5rem; --bs-btn-padding-x: .9rem; --bs-btn-font-weight: 600;
    backdrop-filter: blur(8px); border:1px solid rgba(255,255,255,.25);
    color:#fff; background:rgba(255,255,255,.12);
  }
  .btn-glass:hover{ color:#fff; background:rgba(13,110,253,.9); border-color:rgba(13,110,253,1); }
  @media (prefers-color-scheme: light){
    .expo-card{ background:#fff; }
    .expo-desc{ color:rgba(255,255,255,.92); }
  }

  .image-fader {
margin-top: 50px;
  position: relative;
  width: 100%;
  height: 400px; /* ajuste selon ton design */
  overflow: hidden;
}

.image-fader img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 12s infinite;
}

.image-fader img:nth-child(1) {
  animation-delay: 0s;
}
.image-fader img:nth-child(2) {
  animation-delay: 4s;
}
.image-fader img:nth-child(3) {
  animation-delay: 8s;
}

@keyframes fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}

  /* Hauteur viewport fiable (iOS/Android/desktop) */
  .hero-viewport { min-height: 100vh; }
  @supports (height: 100svh) {
    .hero-viewport { min-height: 100svh; }
  }

  /* Vidéo fond couvrante */
  .hero-video {
    position: absolute;
    inset: 0;            /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;   /* couvre sans déformer */
    object-position: center;
  }

  /* Voile et contenu */
  .hero-overlay {
    position: absolute;
    inset: 0;
  }

  

  /*detail article*/
  
 /* Variables seulement dans la page */
.tae-article {
  --bg: #0f1115;
  --panel: #141823;
  --muted: #ffffff;
  --text: #ffffff;
  --brand: #21c17a;
  --brand-2: #13b88a;
  --accent: #3a7afe;
  --danger: #ff4d4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, .18);
  --maxw: 1200px;

  background: var(--text);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.tae-article * { box-sizing: border-box; }

.tae-article a { color: #e8ecf1; text-decoration: none; }
.tae-article img { max-width: 100%; display: block; }

/* Layout */
.tae-article .wrap { max-width: var(--maxw); margin: auto; padding: 24px; }

.tae-article header.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(150%) blur(8px); background: linear-gradient(180deg, rgba(20, 24, 35, .9), rgba(20, 24, 35, .6)); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tae-article .nav__inner { display: flex; align-items: center; gap: 16px; justify-content: space-between; max-width: var(--maxw); margin: auto; padding: 14px 24px; }
.tae-article .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.tae-article .brand__logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px rgba(33, 193, 122, .35); }

.tae-article .nav__links { display: flex; gap: 18px; flex-wrap: wrap; }
.tae-article .pill { padding: 8px 12px; border-radius: 999px; background: #0e121a; border: 1px solid rgba(255, 255, 255, .06); color: #cfd6df; }
.tae-article .pill:hover { border-color: rgba(255, 255, 255, .16); }
.tae-article .cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0a0d12; font-weight: 700; }
.tae-article .cta:hover { filter: brightness(1.06); }

.tae-article .grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 24px; }
@media (max-width: 980px) { .tae-article .grid { grid-template-columns: 1fr; } }

/* Card blocks */
.tae-article .card { background: radial-gradient(1200px 1200px at 10% -10%, rgba(58, 122, 254, .10), transparent 40%), radial-gradient(900px 800px at 110% 10%, rgba(33, 193, 122, .10), transparent 30%), var(--text); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tae-article .card__pad { padding: 22px; }

.tae-article .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.tae-article .meta .dot { width: 6px; height: 6px; background: rgba(255, 255, 255, .25); border-radius: 50%; }

.tae-article .title { color: #000000; margin: .4rem 0 1rem; font-size: 1.8rem; line-height: 1.2; }
.tae-article .lead { color: #000000; }

/* Hero image */
.tae-article .hero { aspect-ratio: 16/9; background: #0c0f16; position: relative; overflow: hidden; }
.tae-article .hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(105%) contrast(105%); }
.tae-article .hero__badge { position: absolute; left: 18px; top: 18px; background: rgba(10, 13, 18, .6); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 10px; border-radius: 999px; font-size: .85rem; color: #dfe6ee; backdrop-filter: blur(6px); }

/* Article content */
.tae-article .content { display: grid; gap: 1rem; color: #000000; }
.tae-article .content p { margin: 0 0 .6rem; }
.tae-article .content h2 { font-size: 1.3rem; margin: 1rem 0 .5rem; }

.tae-article .taglist { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tae-article .tag { background: #0b0f15; border: 1px solid rgba(255, 255, 255, .08); color: #b8c3cf; padding: 6px 10px; border-radius: 999px; font-size: .85rem; }

.tae-article .sharebar { display: flex; gap: 10px; flex-wrap: wrap; }
.tae-article .share { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #0b0f15; border: 1px solid rgba(255, 255, 255, .08); color: #dfe6ee; transition: transform .15s ease, background .2s ease; }
.tae-article .share:hover { transform: translateY(-2px); background: #0f131c; }
.tae-article .share svg { width: 18px; height: 18px; }

/* Sidebar */
.tae-article .side .widget { display: grid; gap: 14px; margin-top: 20px; }
.tae-article .side .widget h3 { margin: 0; font-size: 1.1rem; color: rgb(218, 135, 2); }

.tae-article .newslist { display: grid; gap: 14px; }
.tae-article .newsitem { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: #052a7f; }
.tae-article .newsitem__thumb { width: 100%; height: 66px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-soft); }
.tae-article .newsitem__title { margin: 0 0 6px; font-size: .98rem; line-height: 1.25; }
.tae-article .newsitem__meta { font-size: .85rem; color: var(--muted); }

/* Comments */
.tae-article .comments .item { padding: 14px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: #1a429d; }
.tae-article .comments .item+.item { margin-top: 10px; }
.tae-article .comments .author { font-weight: 700; }
.tae-article .comments .time { color: var(--muted); font-size: .9rem; }

/* Form */
.tae-article .form { display: grid; gap: 12px; }
.tae-article .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width:700px) { .tae-article .row { grid-template-columns: 1fr; } }

.tae-article label { font-size: .95rem; color: #cfd6df; }

.tae-article input,
.tae-article textarea { width: 100%; padding: 12px 14px; border-radius: 12px; background: #d8dbe2; color: var(--text); border: 1px solid rgba(255, 255, 255, .08); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }

.tae-article input:focus,
.tae-article textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(33, 193, 122, .18); }

.tae-article .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 14px; border: none; cursor: pointer; font-weight: 700; }

.tae-article .btn--brand { background: linear-gradient(135deg, rgb(218, 135, 2), rgb(235, 179, 89)); color: #0c0f16; }
.tae-article .btn--brand:hover { filter: brightness(1.06); }

.tae-article .btn--ghost { background: #0b0f15; color: #eaf2ff; border: 1px solid rgba(255, 255, 255, .1); }
.tae-article .btn--ghost:hover { background: #0f131c; }


/*end detail article*/

.pager {
  display:flex; justify-content:center; align-items:center; gap:.4rem;
  margin-top:2.5rem; flex-wrap:wrap;
  --bg:#fff; --fg:#0d6efd; --fg-muted:#6c757d; --bd:#e9ecef; --shadow:0 6px 20px rgba(0,0,0,.06);
}
.pager__btn, .pager__num {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:42px; height:42px; padding:0 .9rem; border-radius:999px;
  background:var(--bg); border:1px solid var(--bd); box-shadow:var(--shadow);
  color:var(--fg); font-weight:600; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pager__btn:hover, .pager__num:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.08); }
.pager__num.is-active {
  background:linear-gradient(135deg, #0d6efd, #6f9dff);
  border-color:transparent; color:#fff; cursor:default; transform:none;
}
.pager__btn.is-disabled, .pager__btn.is-disabled:hover {
  background:#f8f9fa; color:var(--fg-muted); border-color:var(--bd); box-shadow:none; transform:none; cursor:not-allowed;
}
.pager__dots { padding:0 .4rem; color:var(--fg-muted); user-select:none; }
@media (prefers-color-scheme: dark) {
  .pager { --bg:#111827; --fg:#93c5fd; --fg-muted:#9ca3af; --bd:#1f2937; --shadow:0 6px 20px rgba(0,0,0,.35); }
  .pager__num.is-active { background:linear-gradient(135deg, #2563eb, #60a5fa); }
}
/* HERO */
.about-hero { min-height: 60vh; }
.about-hero__bg {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:brightness(.65);
}
.about-hero__overlay {
  position:absolute; inset:0;
  background: radial-gradient(80% 80% at 20% 10%, rgba(13,110,253,.45), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.6));
}
.about-hero__wave { display:block; width:100%; height:90px; fill:#fff; margin-top:-40px; }

/* Kicker */
.kicker {
  letter-spacing: .18em;
  font-size: .85rem;
  color: #d89200;
  font-weight: 800;
}

/* Gradient blob */
.blur-blob {
  position: absolute;
  right: -10%;
  top: -80px;
  width: 420px;
  height: 420px;
  z-index: 0;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(13,110,253,.6), transparent 70%),
              radial-gradient(closest-side, rgba(136,58,234,.4), transparent 70%);
}

#institutionnel .row {
  position: relative;
  z-index: 1;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  background: #ffffff;
  border: 1px solid #e9eef6;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.metric__value {
  color: #0d6efd;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.metric__label {
  color: #6c757d;
}

/* Gallery moderne */
.gallery-modern {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 180px 180px;
}
.gallery-modern figure {
  margin: 0;
}
.gallery-modern figure:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}
.gallery-modern figure:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.gallery-modern figure:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.gallery-modern figure:nth-child(4) {
  display: none;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Glass cards */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.glass {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}
.glass__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: .6rem;
  background: linear-gradient(135deg, rgba(13,110,253,.14), rgba(13,110,253,.28));
  color: #0d6efd;
  font-size: 1.1rem;
}

/* Timeline verticale */
.timeline-v {
  position: relative;
  margin-left: 8px;
}
.timeline-v::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#e9eef6,#cfe2ff,#e9eef6);
}
.tl-item {
  position: relative;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.tl-dot {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0d6efd;
  box-shadow: 0 0 0 6px rgba(13,110,253,.18);
}
.tl-card {
  background: #ffffff;
  border: 1px solid #e9eef6;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.tl-card h6 {
  font-weight: 800;
  color: #0d6efd;
}

/* CTA */
.cta-line {
  border: 1px solid #e9eef6;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Responsive */
@media (max-width: 991.98px) {
  .gallery-modern {
    grid-template-rows: 160px 160px;
  }
  .glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .gallery-modern {
    grid-template-columns: 1fr;
    grid-template-rows: 180px 160px 160px;
  }
  .gallery-modern figure:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .gallery-modern figure:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .gallery-modern figure:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .glass-grid {
    grid-template-columns: 1fr;
  }
  .cta-line {
    flex-direction: column;
    align-items: flex-start;
  }
}



.hero-video{width:100%; height:100%; object-fit:cover}
.hero-overlay.gradient{position:absolute; inset:0;
    background:linear-gradient(180deg,rgba(207, 209, 254, 0.25),rgba(0, 22, 185, 0.55));}
.hero-overlay-content{position:absolute; inset:0; z-index:2; padding: clamp(16px, 4vh, 48px) 0}

.container-degrade{
  background: radial-gradient(1200px 600px at 10% -10%, rgba(13, 110, 253, .08), transparent 100%), radial-gradient(800px 400px at 90% 10%, rgba(32, 201, 151, .09), transparent 60%), linear-gradient(180deg, rgba(0, 0, 0, .00), rgba(0, 0, 0, .01));
}


      
  .hero-title-v2 {
        text-align: center;
        color: #f9fafb;
        margin-bottom: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }

    /* Petit badge "Association des" */
  

    /* Ligne principale avec dégradé orange → bleu */
    .hero-main-word {
        font-size: clamp(2rem, 3.6vw + 0.5rem, 3rem);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        background: linear-gradient(90deg, #f97316, #0ea5e9);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
       
        white-space: normal;
    }

  


    /* Mobile */
    @media (max-width: 576px) {
        .hero-main-word {
            font-size: 1.7rem;
            letter-spacing: 0.04em;
        }

        .hero-subline {
            font-size: 0.85rem;
            letter-spacing: 0.18em;
        }
    }

 
    .home-gallery-highlight {
        background: #1c3772; /* gris très foncé */
        color: #f9fafb;
    }

    .home-gallery-highlight .section-title {
        color: #93c5fd;
    }

    .home-gallery-highlight-wrapper {
        position: relative;
    }

    .home-gallery-carousel .home-gallery-slide {
        background: #020617;
        border-radius: 1.5rem;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
        border: 1px solid rgba(148, 163, 184, 0.35);
    }

    .home-gallery-slide img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease, filter 0.6s ease;
    }

    .home-gallery-slide:hover img {
        transform: scale(1.04);
        filter: brightness(1.03);
    }

    .home-gallery-caption {
        padding: 0.75rem 1.25rem 1rem;
        font-size: 0.95rem;
        color: #e5e7eb;
        background: radial-gradient(circle at top,
                rgba(15, 23, 42, 0.9),
                rgba(15, 23, 42, 0.98));
        border-top: 1px solid rgba(31, 41, 55, 0.9);
    }

    /* Adapter un peu le titre sur fond sombre */
    .home-gallery-highlight h1,
    .home-gallery-highlight h4 {
        color: #f9fafb;
    }

    @media (max-width: 768px) {
        .home-gallery-slide img {
            height: 260px;
        }
    }

  


   
