/*
Theme Name: TF Bank
Theme URI: https://tfbank.tn
Author: TF Bank Dev
Description: Thème WordPress TF Bank – Tunisian Foreign Bank. 100% dynamique via Dashboard.
Version: 1.0.0
Text Domain: tfbank
*/

/* ========== CSS VARIABLES ========== */
:root {
    --tf-red: #D31018;
    --tf-red-dark: #B00E14;
    --tf-red-light: #E8333A;
    --tf-dark: #1A1A1A;
    --tf-gray-900: #212529;
    --tf-gray-700: #495057;
    --tf-gray-500: #6C757D;
    --tf-gray-300: #DEE2E6;
    --tf-gray-200: #E9ECEF;
    --tf-gray-100: #F8F9FA;
    --tf-white: #FFFFFF;
    --tf-font: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
    --radius: 0;
    --radius-lg: 0;
    --radius-xl: 0;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: var(--tf-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tf-gray-900);
    background: var(--tf-white);
    overflow-x: hidden
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition)
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

ul,
ol {
    list-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    font-weight: 800;
    line-height: 1.15;
    color: var(--tf-dark);
    margin-bottom: 1rem
}

.container {
    width: 100%;
    max-width: 1580px;
    margin: 0 auto;
    padding: 0 20px
}

/* ========== TOP BAR ========== */
.top-bar {
    border-bottom: 1px solid var(--tf-gray-300);
    padding: 8px 74px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    max-width: 1900px;
    width: 100%;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center
}

.top-bar .menu {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0
}

.top-bar .menu li a {
    color: var(--tf-gray-700);
    font-weight: 500;
    font-size: 13px
}

.top-bar .menu li a:hover {
    color: var(--tf-red)
}

.top-bar-right .menu li {
    position: relative;
    display: flex;
    align-items: center
}

.top-bar-right .menu li:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 14px;
    background: var(--tf-gray-300);
    margin-left: 24px
}

/* ========== HEADER ========== */
.site-header {
    background: var(--tf-white);
    position: sticky;
    top: 0;
    height: auto;
    z-index: 1000;
    transition: var(--transition)
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg)
}

.header-wrapper {
    display: flex;
    max-width: 1900px;
    width: 100%;
    margin: 0 auto;
    border-top: none;
    background: var(--tf-white)
}

.header-logo-area {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--tf-gray-300);
    padding: 15px 20px;
    background: #fff
}

.header-logo-area .site-logo img {
    height: 85px;
    width: auto;
    max-width: 100%
}

.header-content-area {
    flex: 1;
    display: flex;
    flex-direction: column
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    height: 80px;
    padding-right: 72px;
}

/* Navigation */
.main-navigation .menu {
    display: flex;
    gap: 4px;
    align-items: center
}

.main-navigation .menu>li {
    position: relative
}

.main-navigation .menu>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-gray-900);
    border-radius: var(--radius);
    transition: var(--transition)
}

.main-navigation .menu>li>a:hover,
.main-navigation .menu>li.current-menu-item>a {
    color: var(--tf-red);
    /*background: rgba(211, 16, 24, .05)*/
}

/* Dropdown */
.main-navigation .menu>li>.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tf-white);
    min-width: 240px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px;
    border: 1px solid var(--tf-gray-300);
    z-index: 999
}

.main-navigation .menu>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.main-navigation .sub-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tf-gray-700);
    border-radius: var(--radius)
}

.main-navigation .sub-menu li a:hover {
    background: var(--tf-gray-100);
    color: var(--tf-red);
    padding-left: 20px
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px
}

.header-separator {
    width: 1px;
    height: 24px;
    background: var(--tf-gray-300);
    margin: 0 5px
}

.header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tf-gray-700);
    font-size: 20px;
    padding: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center
}

.header-search-btn:hover {
    color: var(--tf-red)
}

.header-cta-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-gray-900);
    white-space: nowrap
}

.header-cta-link:hover {
    color: var(--tf-red)
}

.btn-client-access {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tf-red);
    color: var(--tf-white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    border: none;
    white-space: nowrap
}

.btn-client-access:hover {
    background: var(--tf-red-dark);
    box-shadow: 0 4px 12px rgba(211, 16, 24, .2);
    color: var(--tf-white)
}

.mobile-menu-footer {
    display: none;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--tf-gray-200);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tf-dark);
    transition: var(--transition);
    border-radius: 0
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    height: 750px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--tf-white)
}

.hero-slide {
    position: relative;
    height: 720px;
    display: flex;
    align-items: center;
    width: 100%
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0
}

.hero-bg img {
    width: 100%;
    height: 720px;
    object-fit: cover
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%)
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 0
}

.hero-content h1 {
    font-size: clamp(32px, 6vw, 36px);
    font-weight: 800;
    color: var(--tf-white);
    margin-bottom: 24px;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: -0.02em
}

.hero-content p {
    font-size: clamp(16px, 1.5vw, 20px);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 500
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E30613;
    color: var(--tf-white);
    padding: 16px 40px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
    min-width: 220px
}

.btn-primary:hover {
    background: var(--tf-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 16, 24, .4);
    color: var(--tf-white)
}

/* Hero Floating Sidebar */
.hero-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: var(--tf-red);
    border-radius: 0;
    box-shadow: var(--shadow-lg)
}

.hero-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    transition: var(--transition);
    position: relative
}

.hero-sidebar a:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3)
}

.hero-sidebar a:hover {
    background: var(--tf-red-dark);
    transform: none
}

.hero-sidebar a i {
    color: #fff;
    font-size: 24px
}

.hero-sidebar a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1)
}

/* ========== SERVICES ========== */
.services-section {
    padding: 10px 0;
    background: var(--tf-white);
    overflow: hidden;
    position: relative
}

.section-header {
    text-align: center;
    margin-bottom: 50px
}

.section-header h2 {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: var(--tf-dark)
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px
}

.service-card {
    text-align: center;
    padding: 44px 74px;
    transition: var(--transition);
    cursor: pointer
}

.service-card:hover {
    transform: translateY(-4px)
}

.service-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center
}

.service-icon img {
    width: 96px;
    height: 96px;
    object-fit: contain
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--tf-dark);
    margin-bottom: 10px;
    line-height: 1.3
}

.service-card p {
    font-size: 15px;
    color: var(--tf-gray-500);
    line-height: 1.6
}

/* ========== DARI FI TOUNES ========== */
.pret-section {
    padding: 10px 0;
    background: var(--tf-white)
}

.besoin-section {
    padding: 100px 0;
    background: var(--tf-white)
}

.pret-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ---- Titre rouge (DARI) ---- */
.pret-content h2 .text-red {
    font-size: var(--pret-title-red-size, clamp(26px, 3.5vw, 40px));
    font-weight: var(--pret-title-red-weight, 800);
    color: var(--pret-title-red-color, var(--tf-red));
    display: inline;
}

/* ---- Titre noir (FI TOUNES) ---- */
.pret-content h2 .text-dark {
    font-size: var(--pret-title-dark-size, clamp(26px, 3.5vw, 40px));
    font-weight: var(--pret-title-dark-weight, 800);
    color: var(--pret-title-dark-color, var(--tf-dark));
    display: inline;
}

.pret-content h2 {
    margin-bottom: 8px;
    line-height: 1.15;
}

/* ---- Sous-titre ---- */
.pret-content .pret-subtitle {
    font-size: var(--pret-subtitle-size, clamp(20px, 2.5vw, 32px));
    font-weight: var(--pret-subtitle-weight, 700);
    color: var(--pret-subtitle-color, var(--tf-dark));
    margin-bottom: 24px;
    line-height: 1.2;
}

/* ---- Description ---- */
.pret-content .pret-desc {
    font-size: var(--pret-desc-size, 15px);
    font-weight: var(--pret-desc-weight, 400);
    color: var(--pret-desc-color, var(--tf-gray-700));
    line-height: 1.8;
    margin-bottom: 28px;
}

/* ---- Lien rouge ---- */
.pret-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--pret-link-size, 15px);
    font-weight: var(--pret-link-weight, 600);
    color: var(--pret-link-color, var(--tf-red));
    margin-bottom: 20px;
    transition: var(--transition);
}

.pret-link:hover {
    gap: 12px;
    color: var(--tf-red-dark);
}

/* ---- Image droite ---- */
.pret-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: block;
}

.pret-image img {
    max-width: 100%;

    object-fit: cover;
    margin: 0 auto;
}

/* ========== POURQUOI CHOISIR ========== */
.why-section {
    padding: 100px 0;
    background: var(--tf-white);
    overflow: hidden
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center
}

.why-image {
    border-radius: var(--radius-xl);
    overflow: hidden
}

.why-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl)
}

.hero-content p {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 600;
    margin-bottom: 40px;
    opacity: .95;
    max-width: 700px
}

.section-header p,
.why-subtitle,
.pret-subtitle,
.besoin-intro,
.app-description {
    font-size: 18px;
    font-weight: 600;
    color: var(--tf-gray-600);
    line-height: 1.6;
    margin-bottom: 32px
}

.why-content h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    margin-bottom: 12px
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 0
}

.why-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--tf-gray-200);
    transition: var(--transition);
    cursor: pointer
}

.why-item:first-child {
    border-top: 1px solid var(--tf-gray-200)
}

.why-item:hover {
    background: var(--tf-gray-100);
    padding-left: 20px
}

.why-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center
}

.why-item-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain
}

.why-item-text {
    flex: 1
}

.why-item-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tf-dark);
    margin-bottom: 2px
}

.why-item-text p {
    font-size: 13px;
    color: var(--tf-gray-500);
    line-height: 1.4
}

.why-item-arrow {
    flex-shrink: 0;
    color: var(--tf-gray-300);
    font-size: 18px;
    transition: var(--transition)
}

.why-item:hover .why-item-arrow {
    color: var(--tf-red);
    transform: translateX(4px)
}

/* ========== AGENCES SPLIT ========== */
/* ===== TOKENS ===== */
:root {
    --tf-red: #D0021B;
    --tf-white: #ffffff;
    --tf-dark: #1a1a1a;
    --tf-gray-500: #6b7280;
    --transition: all .25s ease;

    --agences-min-height: 420px;
    --agences-bg-color: var(--tf-red);
    --agences-title-size: 28px;
    --agences-title-color: var(--tf-white);
    --agences-desc-size: 13px;
    --agences-desc-color: rgba(255, 255, 255, .85);
    --agences-link-size: 14px;
    --agences-link-color: var(--tf-white);
    --agences-btn-bg: rgba(255, 255, 255, .92);
    --agences-btn-color: var(--tf-dark);
    --agences-btn-size: 14px;
}

/* ========== AGENCES SPLIT ========== */
.agences-section {
    padding: 100px 0px;

    background: var(--tf-white);
}

.agences-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    max-width: 1550px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    background: var(--agences-bg-color);
}

/* ---- Côté gauche ---- */
.agences-left {
    background: var(--agences-bg-color);
    color: var(--tf-white);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ---- Titre ---- */
.agences-left h2 {
    font-size: var(--agences-title-size);
    font-weight: 800;
    color: var(--agences-title-color);
    margin-bottom: 14px;
    line-height: 1.25;
}

/* ---- Description ---- */
.agences-left .agences-desc {
    font-size: var(--agences-desc-size);
    font-weight: 400;
    color: var(--agences-desc-color);
    margin-bottom: 16px;
    line-height: 1.55;
}

/* ---- Lien Contactez-nous ---- */
.agences-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--agences-link-size);
    font-weight: 700;
    color: var(--agences-link-color);
    margin-bottom: 28px;
    text-decoration: none;
    transition: var(--transition);
}

.agences-contact-link:hover {
    gap: 15px;
}

/* ---- Boutons blancs ---- */
.agences-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.agence-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--agences-btn-bg);
    color: var(--agences-btn-color);
    padding: 15px 20px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, .15);
    font-size: var(--agences-btn-size);
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.agence-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .18);
}

.agence-btn i {
    color: var(--tf-gray-500);
    font-size: 15px;
}

/* ---- Image droite ---- */
.agences-right {
    position: relative;
    overflow: hidden;
}

.agences-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* ---- Responsive (moved to main responsive block) ---- */

/* ========== OUTILS FINANCIERS ========== */
.outils-section {
    padding: 100px 0;
    background: var(--tf-white)
}

.outils-section .section-header {
    margin-bottom: 43px
}

.outils-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px
}

.outil-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--tf-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition)
}

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

.outil-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center
}

.outil-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain
}

.outil-card-text {
    flex: 1
}

.outil-card-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--tf-dark)
}

.outil-card-text p {
    font-size: 15px;
    font-weight: 500;
    color: var(--tf-gray-500);
    margin: 0
}

.outil-card-arrow {
    flex-shrink: 0;
    color: var(--tf-gray-400);
    font-size: 20px;
    transition: var(--transition)
}

.outil-card:hover .outil-card-arrow {
    color: var(--tf-red);
    transform: translateX(4px)
}

/* ========== BESOIN SPÉCIFIQUE (Screenshot Design) ========== */
.besoin-section {
    padding: 0px 0;
    background: #fff;
    overflow: visible;
}

.besoin-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1550px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    border-radius: 0;
}

/* ---- Image avec Sticker ---- */
.besoin-image-col {
    position: relative;
}

.image-wrapper,
.besoin-image {
    position: relative;
    border-radius: 0;
    width: 100%;
}

.image-wrapper img,
.besoin-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* Le Sticker Rouge "Vous souhaitez être rappelé ?" */
.besoin-sticker {
    position: absolute;
    top: 20%;
    right: 20px;
    background: #D31018;
    color: #fff;
    padding: 20px 25px;
    border-radius: 0;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    width: 200px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(211, 16, 24, 0.35);
    z-index: 10;
}

/* Le triangle du sticker */
.besoin-sticker::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 20px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: #D31018 transparent transparent transparent;
}

/* ---- Contenu ---- */
.besoin-content-col h2 {
    font-size: var(--besoin-title-size, 44px);
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.1;
}

.besoin-intro {
    font-size: 22px;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.4;
    max-width: 500px;
}

/* Grille d'icônes 2x2 */
.besoin-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    margin-bottom: 60px;
}

.besoin-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.item-icon {
    font-size: 24px;
    color: var(--tf-red);
    line-height: 1;
    margin-top: 2px;
}

.item-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* Bouton CTA Large */
.btn-besoin-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 364px;
    height: 64px;
    background: var(--tf-red);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-besoin-cta:hover {
    background: #b50d15;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(211, 16, 24, 0.25);
    color: #fff;
}

/* ========== APPLICATION MOBILE (Screenshot Design) ========== */
.app-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: visible;
}

.app-section::before {
    display: none;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

/* ---- Contenu ---- */
.app-content-col h2 {
    font-size: var(--app-title-size, 44px);
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.1;
}

.app-content-col h2 .text-red {
    color: var(--tf-red);
}

.app-description {
    font-size: 22px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.4;
    max-width: 500px;
}

.app-link-wrapper {
    margin-bottom: 60px;
}

.app-discover-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--tf-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.app-discover-link:hover {
    color: #b50d15;
}

.app-discover-link i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.app-discover-link:hover i {
    transform: translateX(6px);
}

/* Badges section */
.app-badges-section {
    margin-top: 50px;
}

.app-badges-intro {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

.app-badges {
    display: flex;
    gap: 15px;
}

.app-badges img {
    height: 56px;
    width: auto;
    border-radius: 0;
    transition: all 0.3s ease;
}

.app-badges a:hover img {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

/* ---- Image avec Décorations ---- */
.app-image-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.app-decorations {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.deco-red {
    position: absolute;
    width: 60px;
    height: 200px;
    background: var(--tf-red);
    top: 30%;
    left: 15%;
    z-index: 1;
}

.deco-grey {
    position: absolute;
    width: 400px;
    height: 350px;
    background: #f7f7f7;
    top: 45%;
    right: -15%;
    z-index: 0;
    border-radius: 0;
}

.app-phone-wrapper {
    position: relative;
    z-index: 5;
}

.app-phone-wrapper img {
    max-height: 700px;
    width: auto;
    display: block;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.12));
}

.phone-placeholder {
    width: 300px;
    height: 600px;
    background: #eee;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    border: 8px solid #ddd;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--tf-white);
    border-top: 1px solid var(--tf-gray-300)
}

.footer-main {
    padding: 6px 0 40px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px
}

.footer-brand .footer-logo img,
.footer-brand .site-logo img {
    height: 160px;
    width: auto;
    margin-bottom: 0px
}

.footer-brand p {
    font-size: 14px;
    color: var(--tf-gray-500);
    line-height: 1.7;
    margin-bottom: 20px;

}

.footer-social {
    display: flex;
    gap: 12px
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tf-gray-100);
    color: var(--tf-gray-700);
    font-size: 16px;
    transition: var(--transition)
}

.footer-social a:hover {
    background: var(--tf-red);
    color: var(--tf-white);
    transform: translateY(-2px)
}

.footer-links h4,
.footer-widget h4 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 0;
    margin-top: 30px;
}

.footer-links ul li,
.footer-widget ul li {
    margin-bottom: 10px
}

.footer-links ul li a,
.footer-widget ul li a {
    font-size: 15px;
    color: #777;
    transition: var(--transition)
}

.footer-links ul li a:hover,
.footer-widget ul li a:hover {
    color: var(--tf-red);
}

.footer-bottom {
    padding: 0;
    border-top: 1px solid #eee;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-left .sep,
.footer-legal .sep {
    color: #ccc;
    font-size: 14px;
    font-weight: 300;
}

.footer-copyright {
    font-size: 14px;
    color: #444;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--tf-red);
}

.footer-bottom-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-social a {
    color: #000;
    font-size: 20px;
}

/* ========== BTN VARIANTS ========== */
.btn-outline-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--tf-red);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--tf-red);
    cursor: pointer;
    transition: var(--transition)
}

.btn-outline-red:hover {
    background: var(--tf-red);
    color: var(--tf-white);
    transform: translateY(-2px)
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0)
}

/* ========== MOBILE OVERLAY ========== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition)
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition)
}

.search-overlay.active {
    opacity: 1;
    visibility: visible
}

.search-overlay form {
    width: 100%;
    max-width: 600px;
    padding: 0 20px
}

.search-overlay input[type="search"] {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--tf-white);
    color: var(--tf-white);
    font-family: var(--tf-font);
    outline: none
}

.search-overlay input[type="search"]::placeholder {
    color: rgba(255, 255, 255, .5)
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--tf-white);
    font-size: 32px;
    cursor: pointer
}

/* ========== ADMIN BAR ========== */
.admin-bar .site-header {
    top: 32px
}

@media (max-width:782px) {
    .admin-bar .site-header {
        top: 46px
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width:1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .why-grid,
    .pret-grid,
    .app-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    /* ---- Agences Section (Tablet) ---- */
    .agences-section {
        padding: 60px 0;
    }

    .agences-split {
        grid-template-columns: 1fr !important;
        min-height: unset !important;
    }

    .agences-left {
        padding: 50px 40px;
    }

    .agences-right {
        min-height: 350px;
        position: relative;
    }

    .agences-right img {
        position: relative !important;
        inset: auto !important;
        width: 100%;
        height: 350px;
        object-fit: cover;
    }

    .agences-btns {
        flex-direction: row;
        gap: 16px;
    }

    .agence-btn {
        flex: 1;
    }

    /* ---- Besoin Section (Tablet) ---- */
    .besoin-section {
        padding: 60px 0;
    }

    .besoin-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .besoin-image-col {
        order: -1;
    }

    .besoin-image img {
        max-height: 450px;
        width: 100%;
        object-fit: cover;
    }

    .besoin-content-col h2,
    .besoin-content h2 {
        font-size: 36px;
    }

    .besoin-intro {
        max-width: 100%;
    }

    .besoin-items-grid {
        gap: 30px 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .outils-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width: 1180px) {
    .top-bar {
        display: none
    }

    .header-main {
        height: 70px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .header-logo-area {
        width: 160px;
        padding: 5px 15px;
        border-right: none;
    }

    .header-logo-area .site-logo img {
        height: 50px;
    }

    .header-right .btn-client-access {
        display: none;
    }

    .header-right .header-cta-link {
        display: none;
    }

    .header-right .header-separator {
        display: none;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .header-right {
        order: 1;
        gap: 15px;
    }
}

@media (max-width: 1180px) {
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--tf-white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
        transition: var(--transition);
        z-index: 1000;
        padding: 80px 24px 24px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .main-navigation.active {
        right: 0
    }

    .main-navigation .menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: auto;
    }

    .main-navigation .menu>li {
        width: 100%;
        border-bottom: 1px solid var(--tf-gray-100);
    }

    .main-navigation .menu>li>a {
        padding: 16px 0;
        font-size: 16px;
        justify-content: space-between;
    }

    .main-navigation .menu>li>.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        background: var(--tf-gray-100);
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 15px;
        display: block;
    }

    .mobile-menu-footer {
        display: block;
    }

    .mobile-btn-client {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 16px;
        border-radius: 4px;
        margin-top: 10px;
    }

    .mobile-btn-open {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        font-size: 16px;
        font-weight: 600;
        color: var(--tf-gray-900);
        text-decoration: none;
        border: 1px solid var(--tf-gray-300);
        border-radius: 4px;
    }
}

@media (max-width: 768px) {

    .hero-section,
    .hero-slide {
        min-height: 400px;
    }

    .hero-sidebar {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* ---- Agences Section (Mobile) ---- */
    .agences-section {
        padding: 40px 0;
    }

    .agences-split {
        grid-template-columns: 1fr !important;
        min-height: unset !important;
    }

    .agences-left {
        padding: 32px 24px;
    }

    .agences-left h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .agences-left .agences-desc {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .agences-contact-link {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .agences-btns {
        flex-direction: column;
        gap: 10px;
    }

    .agence-btn {
        padding: 14px 18px;
        font-size: 13px;
    }

    .agences-right {
        height: 260px;
        position: relative;
    }

    .agences-right img {
        position: relative !important;
        inset: auto !important;
        width: 100%;
        height: 260px;
        object-fit: cover;
    }

    /* ---- Besoin Section (Mobile) ---- */
    .besoin-section {
        padding: 40px 0;
    }

    .besoin-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .besoin-image-col {
        order: -1;
    }

    .besoin-image img {
        max-height: 350px;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .besoin-content-col h2,
    .besoin-content h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .besoin-intro {
        font-size: 16px;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .besoin-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .besoin-item {
        gap: 12px;
    }

    .item-text,
    .besoin-item-text {
        font-size: 14px;
    }

    .btn-besoin-cta {
        width: 100%;
        max-width: 100%;
        height: 56px;
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width:480px) {
    .services-grid {
        grid-template-columns: 1fr
    }

    .app-badges {
        flex-direction: column;
        align-items: flex-start
    }

    /* ---- Agences Section (Small Mobile) ---- */
    .agences-section {
        padding: 30px 0;
    }

    .agences-left {
        padding: 28px 20px;
    }

    .agences-left h2 {
        font-size: 20px;
    }

    .agences-left .agences-desc {
        font-size: 12px;
    }

    .agence-btn {
        padding: 12px 16px;
        font-size: 12px;
    }

    .agences-right {
        height: 220px;
    }

    .agences-right img {
        height: 220px;
    }

    /* ---- Besoin Section (Small Mobile) ---- */
    .besoin-section {
        padding: 30px 0;
    }

    .besoin-content-col h2,
    .besoin-content h2 {
        font-size: 24px;
    }

    .besoin-intro {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .besoin-items-grid {
        gap: 16px;
        margin-bottom: 30px;
    }

    .besoin-item-icon img {
        width: 28px;
        height: 28px;
    }

    .item-text,
    .besoin-item-text {
        font-size: 13px;
    }

    .btn-besoin-cta {
        height: 50px;
        font-size: 14px;
    }

    .besoin-image img {
        max-height: 280px;
    }
}

/* ========== NOS AGENCES PAGE ========== */
.agences-page {
    background: #fff;
}

.agences-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
}

.agences-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.agences-hero .container {
    position: relative;
    z-index: 2;
}

.agences-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.agences-hero h1 span {
    border-left: 8px solid var(--tf-red);
    padding-left: 20px;
}

.agences-filter {
    padding: 40px 0;
    text-align: center;
}

.agences-filter h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--tf-dark);
}

.filter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.select-wrapper {
    width: 320px;
}

.agences-filter .form-select {
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    padding-left: 15px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
}

.filter-sep {
    font-weight: 700;
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-localize {
    background: var(--tf-red);
    color: #fff;
    border: none;
    height: 50px;
    padding: 0 30px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-localize:hover {
    background: var(--tf-red-dark);
    color: #fff;
}

.agences-map-section {
    padding-bottom: 0;
}

#agences-map {
    height: 600px;
    width: 100%;
    z-index: 10;
}

/* Agences Layout (Split View) */
.agences-layout {
    display: flex;
    height: 600px;
    border-top: 1px solid #eee;
}

.agences-list {
    width: 400px;
    height: 100%;
    overflow-y: auto;
    background: #fdfdfd;
    border-right: 1px solid #eee;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--tf-red) #f0f0f0;
}

.agences-list::-webkit-scrollbar {
    width: 6px;
}

.agences-list::-webkit-scrollbar-thumb {
    background-color: var(--tf-red);
}

.agence-item-card {
    padding: 25px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    border-left: 4px solid transparent;
}

.agence-item-card:hover {
    background: #f9f9f9;
}

.agence-item-card.active {
    background: #fff5f5;
    border-left-color: var(--tf-red);
}

.agence-item-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tf-dark);
    margin-top: 0;
}

.agence-item-card p {
    font-size: 14px;
    color: #666;
    margin: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.agence-item-card p i {
    color: var(--tf-red);
    margin-top: 3px;
    font-size: 16px;
}

.btn-show-on-map {
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--tf-red);
    color: var(--tf-red);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.agence-item-card:hover .btn-show-on-map,
.agence-item-card.active .btn-show-on-map {
    background: var(--tf-red);
    color: #fff;
}

/* Map Container in Layout */
.agences-map-container {
    flex: 1;
    position: relative;
    height: 100%;
}

/* Leaflet Popup Styling */
.map-popup h6 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--tf-red);
    font-weight: 700;
}

.map-popup p {
    margin: 4px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    line-height: 1.4;
}

.map-popup .btn-itinerary {
    display: inline-block;
    margin-top: 12px;
    color: var(--tf-red);
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .filter-controls {
        flex-direction: column;
        gap: 20px;
    }

    .select-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .agences-layout {
        flex-direction: column;
        height: auto;
    }

    .agences-list {
        width: 100%;
        height: 350px;
        order: 2;
    }

    .agences-map-container {
        height: 400px;
        order: 1;
    }
}