/* ======================
   RESET & BASE
====================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #212529;
    line-height: 1.6;
    font-size: 16px;
}
main {
    display: block;
    width: 100%;
    overflow-x: hidden;
    margin-bottom: 60px;
}
a {
    color: #C92A2A;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #A50D0D;
    text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
    color: #061948;
    margin-bottom: 0.75rem;
}
img {
    max-width: 100%;
    height: auto;
}


/* ======================
   HERO SECTION
====================== */
.hero {
    background: url('/images/home-hero.jpg') center/cover no-repeat;
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 25, 72, 0.2);
}
.hero .content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}
.hero p {
    max-width: 700px;
    margin: 0 auto 24px;
    font-size: 1.1rem;
}
.hero .btn {
    background: #C92A2A;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-block;
}
.hero .btn:hover {
    background: #A50D0D;
}


/* ======================
   GENERIC SECTION
====================== */
section {
    padding: 60px 20px;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #061948;
    margin-bottom: 20px;
}
.section-sub {
    text-align: center;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
}


/* ======================
   CARDS (Services + Technologies)
====================== */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    width: 280px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card-title {
    color: #061948;
    font-weight: 700;
    margin-bottom: 10px;
}
.card-text {
    color: #666;
    font-size: 0.95rem;
}


/* ======================
   CTA SECTION
====================== */
.cta {
    background: #061948;
    color: white;
    text-align: center;
    padding: 50px 20px;
}
.cta h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}
.cta p {
    margin-bottom: 20px;
    color: #ccc;
}
.cta .btn {
    background: #C92A2A;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
}
.cta .btn:hover {
    background: #A50D0D;
}

.why-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.why-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    flex: 1 1 220px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* ======================
   UTILITAIRES
====================== */
.text-center {
    text-align: center;
}
.text-muted {
    color: #888;
}
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }


/* ======================
   RESPONSIVE
====================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .cards .card {
        width: 100%;
    }
    .section-title {
        font-size: 1.7rem;
    }
    section {
        padding: 40px 15px;
    }
}


/* ======================
   ABOUT
====================== */
.about-section {
    padding: 80px 20px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2rem;
    color: #061948;
    margin-bottom: 16px;
}

.about-text h2 span {
    color: #C92A2A;
}

.about-text p {
    color: #555;
    margin-bottom: 10px;
}

.about-icons {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.icon-box {
    text-align: center;
    flex: 1;
}

.icon-box i {
    font-size: 32px;
    color: #061948;
    margin-bottom: 8px;
}

.icon-box h4 {
    font-size: 1rem;
    color: #061948;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* ======================
   EXABEAM
====================== */
.highlight-section {
    background: url('/images/bg-default.jpg') center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.highlight-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 25, 72, 0.4);
}

.highlight-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
}

.highlight-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.highlight-section p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #ddd;
}

.btn-highlight {
    background: #C92A2A;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-highlight:hover {
    background: #A50D0D;
}

.cta h2, .highlight-section h2, .highlight-section p {
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    color: #ddd;
}
/* ===================
   SECTION SERVICES
=================== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 16px;
    width: calc(33.333% - 16px);
    min-height: 160px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.service-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
}

.service-text h5 {
    margin: 0;
    font-size: 1.05rem;
    color: #061948;
    font-weight: 600;
}

.service-text p {
    margin: 4px 0 8px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-text a {
    font-size: 0.85rem;
    color: #C92A2A;
    font-weight: 500;
}

.service-text a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 1200px) {
    .service-card {
        width: calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .service-card {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }
    .service-card img {
        margin-bottom: 10px;
    }
    .service-text {
        align-items: center;
    }
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #061948;
    margin-bottom: 0.5rem;
}

.section-intro {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #061948;
    margin-bottom: 10px;
}

.section-divider {
    width: 40px;
    height: 3px;
    background-color: #C92A2A;
    margin: 0 auto 16px auto;
    border-radius: 2px;
}

.section-sub {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
}
.section-wrapper {
    padding: 60px 0;
}

/* === EVENTS CLEAN CENTERED === */

.event-table {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.event-row {
    display: grid;
    grid-template-columns: 100px 1fr 180px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eaeaea;
}

.event-date {
    text-align: center;
}

.event-date .month {
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
}

.event-date .day {
    font-size: 1.1rem;
    color: #FF6A00;
    font-weight: 700;
}

.event-details h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
}

.event-details h4 a {
    color: inherit;
    text-decoration: none;
}

.event-details h4 a:hover {
    text-decoration: underline;
}

.event-info {
    color: #777;
    font-size: 0.9rem;
    margin-top: 4px;
}

.event-contact {
    text-align: right;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.4;
}

.event-contact strong {
    display: block;
    font-weight: 700;
}

/* Ligne plus légère */
.event-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .event-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .event-contact {
        text-align: center;
    }
}

/* Grossir le titre */
.section-title {
    font-size: 2.2rem;
    color: #061948;
    margin-bottom: 0.8rem;
}

/* Supprimer le rouge de l’introduction */
.event-intro {
    color: #555; /* Couleur neutre, plus pro */
    font-weight: 400;
    margin-top: 2px;
}

/* Bonus : harmoniser le titre de l’événement */
.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #061948;
}

/* Harmonisation globale */
.event-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.event-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-date .month {
    font-weight: bold;
    font-size: 1.2rem;
    color: #666;
}

.event-date .day {
    color: #ff6a00;
    font-weight: bold;
    font-size: 1.2rem;
}

.event-info {
    display: flex;
    flex-direction: column;
}


.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animation image (slide gauche) */
.fade-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-slide-left.show {
    opacity: 1;
    transform: translateX(0);
}

/* Animation texte (slide droite) */
.fade-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-slide-right.show {
    opacity: 1;
    transform: translateX(0);
}


/* Supprimer le rouge de l’introduction */
.event-intro a {
    color: #555  !important; /* Couleur neutre, plus pro */
    font-weight: 400;
    margin-top: 2px;
}

/* Harmoniser le titre de l’événement */
.event-title a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555 !important;
}

/* Grossir le titre de la section */
.section-title a {
    font-size: 2.2rem;
    color: #061948  !important;
    margin-bottom: 0.8rem;

}

.event-title a:hover {
    text-decoration: underline;
    
}


/* ============================
   EVENT LIST PAGE (isolée)
============================ */
.eventlist-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.eventlist-title-page {
    text-align: center;
    font-size: 2.4rem;
    color: #061948;
    margin-bottom: 40px;
}

.eventlist-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #eaeaea;
}

.eventlist-date {
    min-width: 80px;
    text-align: center;
}

.eventlist-month {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
}

.eventlist-day {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF6A00;
}

.eventlist-info {
    flex: 1;
    margin-left: 20px;
}

.eventlist-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #061948;
    margin-bottom: 5px;
}

.eventlist-title a {
    color: #061948;
    text-decoration: none;
}

.eventlist-title a:hover {
    text-decoration: underline;
}

.eventlist-desc {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.eventlist-location {
    text-align: right;
    font-size: 0.85rem;
    color: #444;
}

.eventlist-ville {
    font-weight: 600;
    margin-bottom: 6px;
}

.eventlist-action a {
    color: #C92A2A;
    font-weight: 500;
    font-size: 0.9rem;
}

.eventlist-action a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .eventlist-line {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    .eventlist-location {
        text-align: center;
    }
}


.page-service-detail .hero-banner-services {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
                url('/images/bg-audit.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0;
}

.blog-content {
  font-size: 16px; /* taille plus raisonnable */
  line-height: 1.6;
  color: #333; /* un gris foncé plus doux que le noir */
}


/* ======================
   Blog content styling
====================== */

.blog-content {
  font-size: 10px; /* taille plus raisonnable */
  line-height: 1.3;
  color: #333; /* gris foncé doux */
  margin-top: 1.5rem;
}

/* Sidebar sticky */
.sticky-sidebar {
  position: sticky;
  top: 80px;
}

/* Bouton retour */
.return-blog-btn {
  font-weight: 600;
}

/* Tags badges */
.badge {
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.badge:hover,
.badge:focus {
  background-color: #A50D0D;
  text-decoration: none;
  outline: none;
}

/* Liens articles récents et liés */
.recent-post-link,
.related-post-link {
  color: #C92A2A;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}
.recent-post-link:hover,
.related-post-link:hover,
.recent-post-link:focus,
.related-post-link:focus {
  color: #A50D0D;
  text-decoration: underline;
  outline: none;
}

/* Responsive : sidebar non sticky sur petits écrans */
@media (max-width: 991px) {
  .sticky-sidebar {
    position: static;
    top: auto;
  }
}

.fade-in {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

article, aside {
  opacity: 0;
  transform: translateY(30px);
}