@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url("../../cassiopeia/css/template.css");


h1{
  color: #2461d0
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f4fb;
    color: #495057;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}

/* Styles de base */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -40px;
}

.header .logo {
    margin-right: 60px;
}

.header .logo img {
    height: auto; 
    max-height: 80px; 
    width: auto;
}

/* Media queries pour le responsive design */
@media screen and (max-width: 768px) {
    .header-inner {
        justify-content: flex-start;
        margin: -10px;
        padding: 0 10px;
        display: contents;
    }

    .header .logo {
        margin-right: 10px;
    }

    .header .logo img {
        max-height: 60px;
    }
}

h1 {
    font-weight: bold; /* Met le texte en gras */
}

.header-image {
    /* Ajustement pour aligner l'image à droite */
    margin-left: 500px; /* Déplace l'image complètement vers la droite */
}

.header-image img {
    max-width: 100%; /* Assure que l'image est responsive */
    height: auto; /* Garde le ratio hauteur-largeur */
}

/* Désactiver les transitions sur .main-bottom */
.main-bottom, .main-bottom * {
    transition: none !important;
}

/* Désactiver les effets de survol sur .main-bottom */
.main-bottom:hover {
    transform: none !important;
}

.main-bottom {
    display: none;
    position: fixed;
    top: 3%;
    left: 0;
    right: 0;
    margin: auto;
    background-color: white;
    padding: 20px;
    z-index: 1000;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: none !important; /* Désactiver les transitions */
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Couleur de fond semi-transparente */
    z-index: 900; /* Doit être inférieur à z-index de .main-bottom */
}

@keyframes pop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3); /* Échelle ajustée pour moins de chevauchement */
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.newsletter-container {
    position: fixed;
    bottom: 80px; /* Ajuste cette valeur selon la position désirée */
    right: 10px;
    z-index: 1100;
    text-align: center;
    background-color: black;
    color: white;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 20px;
    animation: fadeIn 2s ease-in-out 0s forwards, pop 0.35s ease-in-out 1s; /* Ajoute fadeIn suivi de pop */
}

.custom-btn {
    position: fixed;
    bottom: 20px;
    right: 110px;
    z-index: 1100;
    padding: 10px 20px;
    background-color: #007bff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    animation: fadeIn 2s ease-in-out 0s forwards, pop 0.35s ease-in-out 1.5s; /* Ajoute fadeIn suivi de pop */
}

.custom-btn:hover {
    transform: scale(1.05); /* Grossissement léger */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
    background-color: #0056b3; /* Couleur de fond légèrement plus foncée pour surbrillance */
}

.custom-btn img {
    display: none; /* Masquez l'icône si elle n'est pas nécessaire avec le texte */
}


.brand-logo {
    display: none;
}

/* Header */
.header {
    background-image: linear-gradient(to right, #000000, #000000, #000000, #000000);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-links {
    background-color: #fff000;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-item {
    display: inline-block;
    margin-right: 15px;
}

a {
    transition: color 0.3s ease;
}

.nav-item a {
    color: #0000;
    text-decoration: none;
    padding: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item a:hover {
    background-color: #0000;
    color: #0000;
    border-radius: 4px;
    transform: scale(1.05);
}

.navbar-brand {
    display: none;
}

.container-header {
    background-color: #007bff;
    color: #fff;
    text-align: center;
}

.container-component {
    margin-top: 20px;
}

.main-top, .main-bottom {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-top:hover, .main-bottom:hover {
    transform: translateY(-5px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Évite le dépassement horizontal globalement */
}

.com-content-article__body {
    padding: 20px;
    border-radius: 5px;
    transition: transform 0.3s ease;
    max-width: 100%; /* Limite la largeur du conteneur à 100% de l'écran */
    margin: 0 auto; /* Centre le conteneur */
}

.com-content-article__body img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.com-content-article__body h1 {
    font-size: 2em;
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}

.com-content-article__body h2 {
    font-size: 1.5em;
    color: #333;
}

.com-content-article__body h2 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.com-content-article__body h2 a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.com-content-article__body p {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
    color: #333;
    transition: color 0.3s ease;
}

table {
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
}

table td, table th {
    padding: 8px;
}

table tr {
    width: 100%;
}

/* Styles spécifiques pour les écrans d'iPhone */
@media screen and (max-width: 812px) { /* iPhone X, 11 Pro */
    .com-content-article__body {
        padding: 15px;
    }

    .com-content-article__body h1 {
        font-size: 1.8em;
        margin-bottom: 18px;
    }

    .com-content-article__body h2 {
        font-size: 1.4em;
    }

    .com-content-article__body p {
        font-size: 0.95em;
        line-height: 1.5;
    }

    table td, table th {
        padding: 6px; /* Ajustement du padding pour les cellules de tableau sur les petits écrans */
    }

    table tr {
        display: block;
        width: auto; /* Retourne à la largeur automatique pour les lignes de tableau */
    }

    span {
        display: block; /* Passe en bloc pour s'adapter à la largeur disponible */
        max-width: 100%; /* Limite la largeur maximale à 100% de son conteneur */
        word-wrap: break-word; /* Gère le débordement du contenu sur plusieurs lignes si nécessaire */
    }
}

@media screen and (max-width: 736px) { /* iPhone 6/7/8 Plus */
    .com-content-article__body {
        padding: 12px;
    }

    .com-content-article__body h1 {
        font-size: 1.7em;
        margin-bottom: 16px;
    }

    .com-content-article__body h2 {
        font-size: 1.3em;
    }

    .com-content-article__body p {
        font-size: 0.9em;
        line-height: 1.45;
    }

    table td, table th {
        padding: 5px; /* Ajustement du padding pour les cellules de tableau sur les petits écrans */
    }

    table tr {
        display: block;
        width: auto; /* Retourne à la largeur automatique pour les lignes de tableau */
    }

    span {
        display: block; /* Passe en bloc pour s'adapter à la largeur disponible */
        max-width: 100%; /* Limite la largeur maximale à 100% de son conteneur */
        word-wrap: break-word; /* Gère le débordement du contenu sur plusieurs lignes si nécessaire */
    }
}

@media screen and (max-width: 667px) { /* iPhone 6/7/8, iPhone SE (2nd generation) */
    .com-content-article__body {
        padding: 10px;
    }

    .com-content-article__body h1 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .com-content-article__body h2 {
        font-size: 1.2em;
    }

    .com-content-article__body p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    table td, table th {
        padding: 4px; /* Ajustement du padding pour les cellules de tableau sur les petits écrans */
    }

    table tr {
        display: block;
        width: auto; /* Retourne à la largeur automatique pour les lignes de tableau */
    }

    span {
        display: block; /* Passe en bloc pour s'adapter à la largeur disponible */
        max-width: 100%; /* Limite la largeur maximale à 100% de son conteneur */
        word-wrap: break-word; /* Gère le débordement du contenu sur plusieurs lignes si nécessaire */
    }
}

@media screen and (max-width: 568px) { /* iPhone 5/SE */
    .com-content-article__body {
        padding: 8px;
    }

    .com-content-article__body h1 {
        font-size: 1.5em;
        margin-bottom: 14px;
    }

    .com-content-article__body h2 {
        font-size: 1.1em;
    }

    .com-content-article__body p {
        font-size: 0.8em;
        line-height: 1.35;
    }

    table td, table th {
        padding: 3px; /* Ajustement du padding pour les cellules de tableau sur les petits écrans */
    }

    table tr {
        display: block;
        width: auto; /* Retourne à la largeur automatique pour les lignes de tableau */
    }

    span {
        display: block; /* Passe en bloc pour s'adapter à la largeur disponible */
        max-width: 100%; /* Limite la largeur maximale à 100% de son conteneur */
        word-wrap: break-word; /* Gère le débordement du contenu sur plusieurs lignes si nécessaire */
    }
}


/* Sidebar */
.container-sidebar-right {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 300px;
    z-index: 1300;
    transition: transform 0.3s ease, width 0.3s ease;
    transform: translateX(100%);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateZ(-50%);
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 0 0 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.sidebar-toggle-btn::before {
    content: '\2190';
    font-size: 20px;
    margin-right: 5px;
}

.container-sidebar-right.active {
    display: block;
    transform: translateX(0);
    width: 350px;
}

.sidebar-right {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-right.card {
    z-index: 1500; /* Augmenter le z-index pour être au-dessus des autres éléments */
  overflow-y: auto; /* Activation du défilement vertical si nécessaire */
}


/* Card */
.card {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card-header {
    background-color: #20478d;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 10px;
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.card-body ul {
    padding-left: 20px;
    list-style-type: square;
}

/* Footer */
.footer {
    background-color: #001B4C;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.container-bottom-b {
    margin-bottom: 20px;
}

.bottom-b {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.bottom-b:hover {
    transform: translateY(-5px);
}

.bottom-b .card-header {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.bottom-b .card-body {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

/* Newsletter Form */
.pas-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pas-text-container {
    text-align: center;
    margin: 20px 0;
}

.pas-input {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.pas-input label {
    margin-right: 10px;
}

.pas-input-input,
.pas-input-text {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.pas-input-input:focus,
.pas-input-text:focus {
    border-color: #007bff;
    outline: none;
}

.pas-optin-text {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

.pas-optin-text a {
    color: #007bff;
    text-decoration: none;
}

.pas-optin-text a:hover {
    text-decoration: underline;
}

.pas-optin {
    margin: 10px 0;
}

/* Slider */
.djslider {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.pagenavigation {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pagination a:hover {
    text-decoration: underline;
    color: #0056b3;
}
