/* Variables CSS pour les couleurs et les polices */
:root {
    --primary-color: #1D3964; /* Bleu Finmag */
    --secondary-color: #6c757d; /* Gris pour les textes secondaires */
    --accent-color: #28a745; /* Vert pour les succès/CTA */
    --light-bg: #ebeff3; /* Arrière-plan léger */
    --dark-text: #182A45; /* Texte foncé */
    --light-text: #ffffff; /* Texte clair */
    --border-color: #365f9c; /* Couleur des bordures */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.tblx-top10 a:hover {text-decoration:none !important;}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    color: var(--dark-text);
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

/* Header */
.main-header {
    background-color: #182A45;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {margin:0 auto;text-align:center;}
.logo a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8em;
    color: var(--primary-color);
    text-decoration: none;
}
.logo img {
    width:100%;
    max-width:330px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--dark-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background-color: #1d3964;
    text-align: center;
    padding: 40px 0 50px 0;
    margin-bottom: 30px;
}


.hero-section h1 {
    color: var(--light-text);
    font-size: 3em;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2em;
    max-width: 850px;
    margin: 0 auto;
    color:#ffffff;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.content-area {
    flex: 3; /* Prend plus d'espace */
}

.sidebar {
    flex: 1; /* Prend moins d'espace */
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar .widget h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    margin-bottom: 10px;
}

.sidebar .widget ul li a {
    color: var(--dark-text);
    font-weight: 400;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.sidebar .widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Article Intro */
.intro-article {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.intro-article h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-article p {
    margin-bottom: 1em;
}

/* Comparison Table / Bank Cards */
.comparison-table {
    margin-bottom: 40px;
}

.comparison-table h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.comparison-table .table-intro {
    font-size: 1.1em;
        text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.bank-card {
    background-color: var(--light-text);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.bank-logo {
    max-width: 120px;
    height: auto;
}

.bank-rank {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.bank-card h3 {
    font-size: 1.8em;
    color: var(--dark-text);
}

.bank-features ul {
    list-style: none;
    margin-bottom: 15px;
}

.bank-features ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95em;
}

.bank-features ul li i {
    margin-right: 10px;
    font-size: 1.1em;
}

.bank-features ul li .fa-check-circle {
    color: var(--accent-color);
}

.bank-features ul li .fa-times-circle {
    color: #dc3545; /* Rouge pour les inconvénients */
}

.bank-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.bank-score {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
}

.bank-score span {
    color: var(--accent-color);
    font-size: 1.2em;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%); /* Nécessite un préprocesseur comme SASS pour darken() ou une couleur définie */
    background-color: #1D3964; /* Alternative directe */
    text-decoration: none;
}

.clear {clear:both;}


/* FAQ Section */
.faq-section {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.3em;
    color: var(--dark-text);
    cursor: pointer; /* Indique que c'est cliquable */
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.95em;
    color: var(--secondary-color);
    /* Pour un effet d'accordéon, vous pourriez cacher ceci par défaut avec JS */
}

/* Footer */
.main-footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links ul {
    list-style: none;
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Pour les petits écrans */
    justify-content: center;
}

.footer-links ul li {
    margin: 0 15px;
}

.footer-links ul li a {
    color: var(--light-text);
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright p {
    font-size: 0.8em;
    color: var(--secondary-color);
}



/* CARD */

    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');






.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
    margin: 10px 0;
}

.content {
    padding: 25px;
}

.offer-count {
    float:left;
    background-color: #e0f2f7;
    color: #1D3964;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.best-choice {
    float:right;
    align-items: center;
   margin-right: 20px;
    color: #4CAF50;
    font-weight: 700;
}

.header {
    height: 60px;
    padding: 15px 25px;
    background-color: #f7f9fc;
    border-bottom: 1px solid #e0e6ed;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.bank-info .bank-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.bank-info .logo {

    height: auto;
    margin-bottom: 10px;
}

.bank-info {
    
    margin-right: 20px;
        display: inline-block;
    vertical-align: middle;
    min-width: 200px;
    text-align: center;

}

.encart-box-mediabuy {text-align: center}
.encart-box-mediabuy img {width:100%;max-width:500px;}

.bank-info .score {
    font-size: 48px;
    font-weight: 700;
    color: #1D3964;
    line-height: 1;
}

.bank-info .note {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}



.discover-offer {
    background-color: #023582;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    width: 100%;
    justify-content: center;
}


.spacer-cat-top10bank i {font-size: 14px;font-style: italic;}
.spacer-cat-top10bank span {font-weight:800;}
.spacer-cat-top10bank {color:white;padding: 30px 0;text-align: center; border-radius: 8px;font-size: 25px; margin: 20px 0 26px 0;}

.spikes {
  position: relative;
  background: #FF7B00;
  /*height: 50vh;*/
}

.spikes::after {
  content: '';
  position: absolute;
  right: 0;
  left: -0%;
  top: 100%;
  z-index: 10;
  display: block;
  height: 35px;
  background-size: 10px 100%;
  background-image: linear-gradient(135deg, #FF7B00 25%, transparent 25%), linear-gradient(225deg, #FF7B00 25%, transparent 25%);
  background-position: 0 0;
}

.gradient-top10-bank {background-image: url("../img/bg-sep-top10-cat.png");background-size: cover;/*display:none*/}
.gradient-top10-assurance {background-image: url("../img/bg-sep-top10-cat.png");background-size: cover;}

.typeofcard {
    vertical-align: middle;
    padding: 0 50px 0 25px;
    min-width: 120px;

    margin: 0 auto;
    text-align: center;
    display: inline-block;
}
.typeofcard img { 
    width: 100%;
    max-width: 140px;
    transform: rotate(90deg);
}




.bank-info .rating {

    align-items: center;
    margin: 10px 0;
}
.features {
    margin-right: 20px;
    display: inline-block;
    vertical-align: middle;
    width: 320px;
}
.features ul {
    list-style: none;
    color:#E0F2F7;
    padding: 0;
    margin: 0;
}
.features li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}

.read-review {
    color: #1D3964;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    width: 100%;
}


.actions {
    display:inline-block;
    vertical-align: middle;
    min-width: 180px;
    margin-left: 40px;
        text-align: center;
}




.footer {
    background-color: #e0f2f7; /* Light blue background for footer */
    color: #1D3964;
    padding: 15px 25px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid #cce7ed;
}

.footer .heart-icon {
    margin-right: 8px;
    color: #e74c3c; /* Red heart */
    font-size: 16px;
}





/* DEBUT REVUE */
strong {font-weight: 800}
.revue-content-part {     background-color: #ffffff; max-width: 1200px; margin: 0 auto;padding: 0 15px;margin-bottom: 30px;  border-radius: 12px;box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);}
.revue-hr-1 {width:20%;margin:0 auto;text-align: center;border-bottom:1px solid #182A45;margin-bottom:12px;}
.revue-hr-2 {height:20px;}

.revue-title-center {margin:0 auto;text-align: center;margin:25px 0 20px;}
.revue-content-part-h1 {font-size:30px;font-weight:700;text-align: left;margin-bottom:15px;margin-left:12px;}
.revue-content-part-logo {display: inline-block;vertical-align: middle;font-size:20px;font-weight:600}
.revue-content-part-logo img {width:100%;max-width:150px;}
.revue-notre-part {display: inline-block;vertical-align: middle;font-size: 14px;font-weight: 800;margin-right: 15px;}
.revue-content-part h2 {font-size: 21px;font-weight:600;margin: 15px 0 7px 0;margin-left: 12px;}
.revue-content-part h3 {font-size: 18px;font-weight:600;margin: 15px 0 7px 0;margin-left: 12px;}
.revue-banner-top10-promo {margin: 15px 0;background: beige;padding: 40px;text-align: center}

.revue-content-part-ph1 {font-size:14px;margin-left: 12px;line-height: 22px;margin-bottom: 7px;}
.btn-top10-revue-part {width:100%;}

.revue-side-box {}
.revue-side-box-img {display:inline-block}
.revue-side-box-img img {width:100%;max-width:80px;vertical-align: middle}
.revue-side-box-txt     {display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    margin-left: 7px;
    border-left: 1px solid #1c3862;
    padding-left: 5px;}
.revue-side-box-txt span {font-weight: 800;font-size:15px;}
.revue-side-box-txt a {background-color: #1c3862;
    border-radius: 5px;
    padding: 2px 11px;
    color: white; }

.btn-top10-revue-part a {  margin: 10px;width: 30%;margin: 0 auto; margin-top:25px;margin-bottom:25px;padding: 15px 30px;text-align: center;text-transform: uppercase;transition: 0.5s;background-size: 200% auto;color: white;border-radius: 5px;display: block;border: 0;font-weight: 700;background-image: linear-gradient(45deg, #182A45 0%, #1D3964  51%, #05A8BC  100%);cursor: pointer;user-select: none;-webkit-user-select: none;touch-action: manipulation;}
.btn-top10-revue-part a:hover { background-position: right center;/* change the direction of the change here */color: #fff;text-decoration: none;}
 
.btn-top10-revue-part-mini {width:100%; margin-left: 10px;margin-top: 10px;}
.btn-top10-revue-part-mini a { appearance: none;background-color: #FAFBFC;border: 1px solid rgba(27, 31, 35, 0.15);border-radius: 6px;box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;box-sizing: border-box;color: #24292E; cursor: pointer; display: inline-block;font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size: 14px;font-weight: 500;line-height: 20px; list-style: none;padding: 6px 16px;position: relative;transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);user-select: none;-webkit-user-select: none; touch-action: manipulation;vertical-align: middle;}
.btn-top10-revue-part-mini a:hover  {background-color: #F3F4F6;text-decoration: none;transition-duration: 0.1s;}

.revue-content-left {width:73%;display:inline-block;vertical-align: top;margin-right:10px;}
.revue-content-right {width:25%;display:inline-block;vertical-align: top;border-bottom:6px solid #d8dfeb;border-radius: 0px 0px 12px 12px / 0px 0px 12px 12px;
border-top:1px solid #d8dfeb;border-radius: 0px 0px 12px 12px / 0px 0px 12px 12px;
border-left:1px solid #d8dfeb;border-radius: 0px 0px 12px 12px / 0px 0px 12px 12px;
    border-right:1px solid #d8dfeb;border-radius: 0px 0px 12px 12px / 0px 0px 12px 12px;
padding:8px;margin-top:20px;
}

.revue-content-part ul li {margin-left:40px;font-size:14px;line-height: 22px;}
.revue-content-part ul li::marker {display: table-cell;text-align: right;content: "› ";font-size: 1.2em;font-weight: bold;color: #10A7B9;padding-right: 12px}

.sticky-div {
  position: sticky;
  top: 0; /* sticks when reaching the top */
  background: #fff;
  padding: 10px;
}

.table-container-top10bank {
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    padding: 10px;
    padding-top: 0;
}


.table-header-top10bank {
    display: flex; /* Utilisation de Flexbox pour aligner les cellules */
    background-color: #1D3964;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #2980b9;
    border-radius: 5px 5px 0 0; /* Arrondir les coins supérieurs */
}

.header-cell-top10bank {
    flex: 1; /* Chaque cellule d'en-tête prend une part égale de l'espace */
    padding: 15px 20px;
    text-align: left;
}

.radio-icon {color:#10B1D2;font-weight:600}

/* Style des lignes du "tableau" */
.table-row-top10bank {
    display: flex; /* Utilisation de Flexbox pour aligner les cellules */
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.table-row-top10bank:hover {
    background-color: #eaf6fc;
}

.table-row-top10bank:last-child {
    border-bottom: none; /* Pas de bordure pour la dernière ligne */
}

.table-cell-top10bank {
    flex: 1; /* Chaque cellule de données prend une part égale */
    padding: 15px 20px;
    vertical-align: top;
    text-align: left;
}

/* Style spécifique pour le nom de la carte et le type */
.card-name-top10bank {
    font-weight: bold;
    color: #2c3e50;
    display: block;
    font-size: 1.1em;
    margin-bottom: 3px;
}

.card-type-top10bank {
    font-size: 0.85em;
    color: #6c757d;
}

/* Responsive design pour les petits écrans */
@media (max-width: 768px) {
    
.revue-content-left {width:100%;}
.revue-content-right {width:100%;        margin: 0 auto;
        text-align: center;}
    
    .table-container-top10bank {
        padding: 20px 15px;
        width: 100%;
        box-shadow: none;
    }

    .table-header-top10bank {
        display: none; /* Cache l'en-tête sur mobile */
    }

    .table-row-top10bank {
        flex-direction: column; /* Les cellules s'empilent verticalement */
        margin-bottom: 20px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        background-color: #fff;
    }

    .table-cell-top10bank {
        width: 100%;
        text-align: right;
        padding-left: 50%; /* Espacer pour le label */
        position: relative;
        border-bottom: 1px dashed #e9ecef; /* Ligne de séparation interne */
    }

    .table-cell-top10bank:last-child {
        border-bottom: 0;
    }

    .table-cell-top10bank::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #2c3e50;
        text-align: left;
    }
    
    .revue-content-part-h1 {line-height: 35px;}
    .btn-top10-revue-part a {width:80%}
    
}

/* FIN REVUE */


/* Responsive adjustments */
@media (max-width: 768px) {
    
    
    .logo img { max-width: 210px}
    .main-header {padding:3px}
    .hero-section {padding: 5px 0 5px 0;font-size: 20px;}
        
    .footer {padding:3px}
    .header { height: 32px;padding: 0;}
    .offer-count {border-radius: unset;}
    
    .typeofcard {  display: inline;
  align-items: center; /* centre verticalement */
  justify-content: center; /* centre horizontalement si voulu */
  height: 106vh; /* ou la hauteur du conteneur */}
    .typeofcard img {max-width: 100px; vertical-align: middle;}
    .bank-info{display: inline}
    
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content {padding: 2px;}
    .bank-info {width: 100%;   }
    .features {width: 100%;text-align: center;}
    .actions { width: 100%;   }
    .typeofcard {margin:0 auto;text-align:center;padding:10px 0;}
    .card {margin: 0; margin-bottom: 15px;}
    .actions {margin-left:0}
    
    .best-choice {display: none}
    .bank-name {display: none}
    
    .typeofcard img {transform: rotate(0deg);}
    
    .discover-offer {width: 70%;}
    
    .h1-accroche-type-clickout {line-height: 26px;margin-bottom:16px;}
    
    .features ul li {display:none;}
    .features ul li:first-child {display:block;font-weight:bold}
}



/* Media Queries pour la responsivité */
@media (max-width: 992px) {
    
    .bank-info .logo {margin-bottom:0;margin-left: 32px;vertical-align: middle;}
    .rating {display:none !important}
    .features li {margin-bottom:16px }
    
    
    
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        order: -1; /* Place la sidebar au-dessus sur mobile */
        margin-bottom: 30px;
    }
    .bank-card {
        padding: 20px;
    }
    .bank-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .bank-rank {
        margin-top: 10px;
    }
    .bank-cta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .features li {
        display: block;text-align: center;
    }
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 5px 10px;
           
    }
    .hero-section h1 {
        font-size: 20px; line-height: 24px; margin-bottom: 3px;
    }
    .hero-section p {
        font-size: 13px;
        line-height: 18px;
    }
    
    .spacer-cat-top10bank {margin: 15px 0 6px 0;padding:8px;font-size:19px;}
    
    .hero-section {margin-bottom: 0}
    
    .faq-section {margin-top:25px;}
    
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.2em; }
    .footer-links ul li {
        margin: 5px 8px;
    }
}