/* ============================================================
   style_v2.css — Cartegrise-online.fr — Design V2
   Fichier de style principal pour les pages redessinées.
   Structure  :  1. Variables & Reset
                 2. Typographie
                 3. Composants génériques
                 4. Header / Topbar / Navbar
                 5. Responsive (max-width: 991px)
   ============================================================ */

/* ----------------------------------------------------------
   1. VARIABLES & RESET
   ---------------------------------------------------------- */
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #3B5E92;
    /* bleu principal */
    --color-primary-dark: #0B59CB;
    /* bleu topbar */
    --color-accent: #FAA52F;
    /* orange du logo */
    --color-accent-dark: #F08F09;
    --color-white: #ffffff;
    --color-text: #252526;
    --color-text-light: #6c757d;
    --color-border: #e5e9f0;
    --color-bg-light: #f7f9fc;
    --color-pink: #7d007e;

    --font-base: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-xs: 12px;

    --navbar-height: 70px;
    --topbar-height: 38px;
    --transition: 0.22s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .12);
    --shadow-v2: 0 15px 45px rgb(108 150 215 / 19%);
    --radius: 6px;
    --radius-pill: 10px;

    /* Sections */
    --section-padding: 70px;
    --section-title-size: 36px;
    --section-title-color: #1d1d1f;

    /* Footer V2 */
    --color-footer-bg: #24406a;
    --color-footer-title: #ffffff;

}


/* ----------------------------------------------------------
   2. TYPOGRAPHIE
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.v2 {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-white);
}

body.v2.has-v2-fixed-nav {
    padding-top: var(--navbar-height);
}


/* Anchor Offset for Sticky Header */
[id] {
    scroll-margin-top: 100px;
}

.small-text {
    font-size: var(--font-size-sm);
}

.very-small-text {
    font-size: var(--font-size-xs);
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-light {
    color: var(--color-text-light) !important;
}

.card-v2 {
    background: #fff;
    border-radius: 20px !important;
    padding: 30px;
    box-shadow: var(--shadow-v2);
    position: relative;
}

.shadow-v2 {
    box-shadow: var(--shadow-v2);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02) translateY(-0.5rem) !important;
    box-shadow: 0 16px 48px rgb(166 184 213 / 21%), 0 4px 12px rgb(150 186 241 / 33%), inset 0 1px 0 rgb(255 255 255 / 0%), inset 0 -1px 0 rgb(45 91 164 / 0%);
}

.max-w-700 {
    max-width: 700px;
}

.bg-gradient-color {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
}

/* ----------------------------------------------------------
   3. COMPOSANTS GÉNÉRIQUES
   ---------------------------------------------------------- */

/* Boutons */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 26px;
    font-family: var(--font-base);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: normal;
    justify-content: center;
    text-align: center;
}

.btn-v2:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-v2--primary {
    color: var(--color-white);
    border-color: var(--color-primary);
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 4px 12px rgb(15 90 199 / 36%);
}

.btn-v2--primary:hover,
.btn-v2--primary:focus {
    box-shadow: 0 4px 14px rgb(31 94 181 / 66%);
    transform: translateY(-2px);
}

.btn-v2--primary-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: transparent;
    box-shadow: 0 4px 12px rgb(15 90 199 / 36%);
}

.btn-v2--primary-outline:hover,
.btn-v2--primary-outline:focus {
    box-shadow: 0 4px 14px rgb(31 94 181 / 66%);
    transform: translateY(-2px);
}

.btn-v2--secondary {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgb(248 161 40 / 52%);
}

.btn-v2--secondary:hover,
.btn-v2--secondary:focus {
    box-shadow: 0 8px 25px rgba(244, 121, 32, 0.45);
    transform: translateY(-2px);
}



/* Animated rotating border wrapper */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.animated-border-btn {
    display: inline-flex;
    border-radius: var(--radius-pill);
    padding: 1.5px;
    background: conic-gradient(
        from var(--border-angle),
        var(--color-primary-dark) 75%,
        #ffffff 88%,
        var(--color-primary) 100%
    );
    animation: borderSpin 2s linear infinite;
    width: 100%;
}

@keyframes borderSpin {
    to { --border-angle: 360deg; }
}

.animated-border-btn .btn-v2 {
    width: 100%;
}



a:link,
a:visited {
    text-decoration: none;
}

section a:not(.btn-v2) {
    color: var(--color-primary);
}



.svg__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgb(21 98 211 / 39%)
}

.svg__icon__light {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 15px 45px rgb(16 89 195 / 27%);
}

.circle__icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.badge {
    font-weight: 500;
}

.badge-primary {
    color: var(--color-primary);
    background: rgba(26, 86, 167, .07);
}

.badge-warning {
    background: linear-gradient(90deg, #faa52f52, #f08f0933);
    color: var(--color-accent);
}

.badge-secondary {
    background: #fff3ce;
    color: #b17632;
}

.badge-success {
    background: #f0fdf4;
    color: #16a34a;
}

.tag {
    font-size: 11px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* ----------------------------------------------------------
   TYPOGRAPHIE — SECTIONS
   ---------------------------------------------------------- */

/* H2 unifié pour toutes les sections */

.section {
    padding: var(--section-padding) 0;
    background: #ffffff;
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
}


.section-title {
    font-size: var(--section-title-size);
    font-weight: 700;
    color: var(--section-title-color);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-title--underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin-top: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--section-title-color);
}

@media (max-width: 767px) {
    .section-title {
        font-size: 26px;
    }
}

/* Badge blanc pill réutilisable (décoratif, non CTA) */
.badge-pill-white {
    background: var(--color-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-primary) !important;
    font-weight: 500;
    border-radius: 50px;
    padding: 12px 32px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    box-shadow: 0 15px 45px rgb(16 89 195 / 27%);
}


/* Stat card text sous-label */
.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Video card container */


/* ----------------------------------------------------------
   4. HEADER — TOPBAR
   ---------------------------------------------------------- */
.topbar-v2 {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
}

.topbar-v2__inner {
    width: 100%;
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-v2__left {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.topbar-v2__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-v2__item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: opacity var(--transition);
}

.topbar-v2__item:hover {
    opacity: .85;
    color: var(--color-white);
    text-decoration: none;
}

.topbar-v2__item svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    opacity: .9;
}

.topbar-v2__sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .25);
}

/* ----------------------------------------------------------
   4. HEADER — NAVBAR PRINCIPALE
   ---------------------------------------------------------- */
.navbar-v2 {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

/* Version fixée on scroll — ajoutée via main.js */
.navbar-v2--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    animation: navbarSlideIn 0.3s ease-out;
}

@keyframes navbarSlideIn {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.navbar-v2__inner {
    width: 100%;
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Logo */
.navbar-v2__brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
    flex-shrink: 0;
}

.navbar-v2__brand:hover {
    text-decoration: none;
}

.navbar-v2__logo-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -.3px;
}

.navbar-v2__logo-name span {
    color: var(--color-accent);
}

.navbar-v2__logo-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: 1px;
}

.navbar-v2__logo-sub img {
    width: 14px;
    height: 14px;
    object-fit: cover;
}

/* Nav links */
.navbar-v2__nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 15px;
    gap: 2px;
}



.navbar-v2__nav-link {
    display: block;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.navbar-v2__nav-link:hover,
.navbar-v2__nav-link.active {
    color: var(--color-primary);
    background: rgba(26, 86, 167, .07);
    text-decoration: none;
    font-weight: 500;
}

/* Actions (boutons droite) */
.navbar-v2__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Bouton hamburger */
.navbar-v2__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.navbar-v2__toggle:hover,
.bg-light {
    background: var(--color-bg-light);
}

.navbar-v2__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* État ouvert du hamburger */
.navbar-v2__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-v2__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.navbar-v2__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}



/* ----------------------------------------------------------
   STICKY SIMULATOR V2
---------------------------------------------------------- */
.sticky-simulator-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    /* Just below main navbar if it's 1000 */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 0;
    /* background: rgba(26, 86, 167, .07); */
    background: rgb(26 86 167 / 15%);
}

.sticky-simulator-v2 .form-control-v2 {
    border: 2px solid #1853b587;
    padding: 13px 15px;
}

.sticky-simulator-v2.is-visible {
    transform: translateY(0);
}

/* On top of fixed header if needed, adjust top offset */
.has-v2-fixed-nav .sticky-simulator-v2 {
    top: var(--navbar-height);
}

.sticky-simulator__form {
    max-width: 1000px;
    margin: 0 auto;
}


@media (max-width: 767px) {
    .sticky-simulator-v2 {
        padding: 10px 0;
    }

    .btn-sticky-simul {
        height: 40px;
    }
}

/* ----------------------------------------------------------
   5. HERO BANNER
   ---------------------------------------------------------- */
.hero-banner {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    overflow: hidden;
}


.glow-top {
    background-image:
        linear-gradient(31deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(59, 93, 145, 0.18) 100%), linear-gradient(326deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(59, 93, 145, 0.18) 100%);
    background-blend-mode: screen;
    /* ou overlay selon l'effet souhaité */
}



/* Background image: Certificat (Left) */
.hero-banner::before,
.simulator-banner::before {
    content: '';
    position: absolute;
    left: 0%;
    top: 45%;
    transform: translateY(-50%) rotate(0deg);
    width: 40%;
    height: 100%;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.hero-banner.home::before {
    background-image: url('/assets/image_v2/certificat-immat.webp');
}

.hero-banner.document::before {
    background-image: url('/assets/image_v2/bg-documents.webp');
    width: 45%;
}

.hero-banner.cession::before {
    background-image: url('/assets/image_v2/bg-cession.webp');
    top: 60%;
    left: -1%;
    opacity: 1;
}

.hero-banner.changement-adresse::before {
    background-image: url('/assets/image_v2/bg-chagament-adresse.webp');
    top: 49%;
    left: 7%;
    opacity: 1;
}

.hero-banner.plaque::before {
    background-image: url('/assets/image_v2/bg-plaque.webp');
    opacity: 0.8;
    width: 100%;
    left: -4%;
    top: 52%;
}

.simulator-banner::before {
    background-image: url(/assets/image_v2/plaque-opacity.webp);
    opacity: 0.8;
    left: 31%;
    z-index: 0;
    top: 82%;
    width: 100%;
}


/* Background effect: dots.png (Right) */
.hero-cg {
    position: absolute;
    right: 0;
    bottom: 0px;
    width: 50%;
    height: 65%;
    background-image: url('../image_v2/dots.webp');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}


.hero-banner__badge {
    background: var(--color-white);
    font-size: 14px;
}

.hero-banner__desc {
    max-width: 500px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.hero-banner__list .icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- CARDS --- */
.sim-card__badge {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    font-size: 11px;
    letter-spacing: 0.5px;
}

.sim-card__title {
    line-height: 1.3;
}

.sim-card__form label {
    font-size: 13px;
}



.form-control-v2 {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fdfdfd;
    transition: var(--transition);
}

.form-control-v2:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 86, 167, 0.05);
}

.input-immat-wrapper {
    position: relative;
}

.input-icon-car {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    opacity: 0.6;
}

/* License Plate Input Styling */
.plate-input-container {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    height: 52px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.plate-input-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 93, 146, 0.1);
}

.plate-strip {
    background: #003399;
    /* Blue strip */
    color: #fff;
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    line-height: 1;
}

.plate-strip--left {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.plate-strip--right {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: #003399;
}

.plate-strip .eu-stars {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
}

.plate-strip .dep-icon {
    width: 23px;
    margin-bottom: 2px;
    opacity: 0.9;
}

.plate-input-container input {
    border: none !important;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-grow: 1;
    width: 100%;
    background: transparent;
    color: var(--color-text);
}

.plate-input-container input:focus {
    outline: none;
}

.plate-input-container input::placeholder {
    font-weight: 400;
    letter-spacing: normal;
    font-size: 15px;
    opacity: 0.5;
}

.review-card__badge {
    font-size: 13px;
    background: #e8f9ed;
    color: #16a34a;
    border-color: #bbf7d0 !important;
}

@media (max-width: 399px) {
    .review-card {
        padding: 20px !important;
    }

    .review-card__left {
        gap: 15px !important;
    }

    .review-card__logo {
        width: 80px !important;
    }

    .rating-num {
        font-size: 18px !important;
    }
}

.rating-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 2px;
}



/* ----------------------------------------------------------
   7. RESPONSIVE MOBILE (< 992px)
   ---------------------------------------------------------- */
@media (max-width: 991px) {
    :root {
        --navbar-height: 56px;
    }

    .hero-banner {
        padding: 60px 0 40px;
    }

    .hero-banner::before {
        width: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.15;
    }

    /* Topbar : on réduit légèrement */
    .topbar-v2__inner {
        justify-content: center;
        gap: 16px;
    }

    .topbar-v2__sep {
        display: none;
    }

    /* Navbar */
    .navbar-v2__toggle {
        display: flex;
    }

    .navbar-v2__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
        position: relative;
    }

    .navbar-v2__brand {
        flex: 1;
    }

    /* Menu déroulant mobile */
    .navbar-v2__menu {
        display: none;
        width: 100%;
        order: 3;
        padding-bottom: 12px;
    }

    .navbar-v2__menu.is-open {
        display: block;
    }

    .navbar-v2__nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .navbar-v2__nav-link {
        width: 100%;
        padding: 10px 14px;
        border-radius: var(--radius);
        font-size: 15px;
    }

    .navbar-v2__actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 10px;
        gap: 8px;
    }

    .navbar-v2__actions .btn-v2 {
        justify-content: center;
    }

    /* Sur mobile les actions restent cachées dans le menu */
    .navbar-v2__actions {
        margin-left: 0;
    }
}

@media (max-width: 575px) {
    .topbar-v2__item--email span {
        display: none;
        /* On cache le libellé email, garde juste l'icône + adresse */
    }
}

/* ----------------------------------------------------------
   6. FOOTER V2
   ---------------------------------------------------------- */
.footer-v2 {
    background: var(--color-footer-bg);
    color: var(--color-white);
    padding: 42px 0 0;
    font-size: 14px;
}



/* ----------------------------------------------------------
   8. DOCUMENT LIST V2 (Pièces justificatives)
   ---------------------------------------------------------- */

.badge-pill-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 150, 215, 0.15);
}

.badge-pill-white.active {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white) !important;
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(59, 94, 146, 0.3);
}

.doc-banner-v2 {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: var(--color-white) !important;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.25);
}

.doc-item svg {
    color: var(--color-pink);
}

.footer-v2__inner {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 22px;
}

.footer-v2__col-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--color-footer-title);
}

/* Column 1: Brand */
.footer-v2__brand .logo {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-v2__brand .logo span {
    color: var(--color-accent);
}

.footer-v2__brand p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
    margin: 0;
}

/* Lists */
.footer-v2__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-v2__list li {
    margin-bottom: 12px;
}

.footer-v2__list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-v2__list a:hover {
    color: var(--color-accent-dark);
    padding-left: 2px;
}

/* Contact Infos */
.footer-v2__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-v2__contact-item svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer-v2__contact-item a {
    color: inherit;
    text-decoration: none;
}

.footer-v2__contact-item a:hover {
    color: var(--color-white);
}

/* Bottom Bar */
.footer-v2__bottom {
    background: var(--color-footer-bg);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-v2__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-v2__inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-v2 {
        padding-top: 40px;
    }

    .footer-v2__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-v2__brand p {
        margin: 0 auto;
    }

    .footer-v2__contact-item {
        justify-content: center;
    }
}

/* ----------------------------------------------------------
   8. PROCESS STEPS SECTION
   ---------------------------------------------------------- */


.process-steps__badge {
    background: #fff;
    color: var(--color-primary);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(26, 86, 167, 0.08);
    border: 1px solid rgba(26, 86, 167, 0.05) !important;
}

.process-steps__title {
    font-size: 42px;
    letter-spacing: -1.5px;
}

.process-steps__desc {
    max-width: 800px;
    line-height: 1.6;
}

/* Timeline Base */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline__item {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    width: 100%;
    position: relative;
    margin-bottom: 80px;
    gap: 60px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__item--reverse {
    flex-direction: row-reverse;
}

.timeline__media,
.timeline__content {
    flex: 1;
    width: 50%;
}

.timeline__indicator {
    position: relative;
    width: 80px;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    z-index: 3;
    margin-top: 20px;
}

.timeline__dot {
    width: 38px;
    height: 38px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: absolute;
    left: -22px;
    /* Default for Step 1 */
}

.timeline__item--reverse .timeline__dot {
    left: auto;
    right: -22px;
}

.timeline__point {
    width: 20px;
    height: 20px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Step Media Card */
.step-media-card {
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    /* box-shadow: 0 10px 40px rgba(26, 86, 167, 0.08);
    position: relative;
    overflow: hidden;
    line-height: 0;
    box-shadow: var(--shadow-v2); */
    /* max-width: 400px; */
}

.timeline__item:not(.timeline__item--reverse) .step-media-card {
    float: right;
}

.media-card__img {
    height: 160px;
    border-radius: 14px;
    object-fit: cover !important;
    background: #fff;
    padding: 10px;
    box-shadow: var(--shadow-v2);
}


/* Step Content Card */
.step-content-card {
    /* min-height: 240px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-content-card__title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #000;
}

.limit-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.limit-text.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.step-content-card__icon-bottom {
    position: absolute;
    bottom: 10px;
    right: 25px;
    color: var(--color-primary);
    opacity: 0.15;
}

.step-content-card__header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-content-card__header-flex .step-content-card__title {
    margin-bottom: 0;
}

.alma-brand {
    font-weight: 800;
    color: #e31e24;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alma-brand-icon {
    width: 20px;
    height: 20px;
    background: #e31e24;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .process-steps {
        padding: 60px 0;
    }

    .process-steps__title {
        font-size: 32px;
    }

    .timeline__line {
        display: none;
    }

    .timeline__item,
    .timeline__item--reverse {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 60px;
    }

    .timeline__media,
    .timeline__content {
        width: 100%;
        flex: none;
    }

    .timeline__indicator {
        display: none;
    }

    .step-content-card {
        padding: 30px;
        min-height: auto;
    }
}

/* ----------------------------------------------------------
   9. ACCREDITATION SECTION
   ---------------------------------------------------------- */



.accreditation-card__watermark {
    bottom: -75px;
    left: -9px;
    opacity: 0.5;
    pointer-events: none;
    max-width: 320px;
}

.accreditation-card__title {
    font-size: 38px;
    letter-spacing: -1.2px;
}

.accreditation-card__desc {
    max-width: 750px;
    line-height: 1.7;
}

.republique-logo-main {
    width: 200px;
}


.acc-item-card:hover {
    transform: translateY(-8px);
}

.acc-item-card__icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(59, 94, 146, 0.2);
}

.acc-item-card__label {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .accreditation-card__title {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .accreditation-card__desc {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .accreditation-card__title {
        font-size: 26px;
    }
}

/* ----------------------------------------------------------
   10. REVIEWS SLIDER SECTION
   ---------------------------------------------------------- */

.reviews-slider {
    --carousel-item-gap: 1.2rem;

    position: relative;
    max-width: 92rem;
    margin: 0 auto;
    overflow: clip;
    /* Clean edges */
}

.reviews-slider[mask] {
    -webkit-mask-image: linear-gradient(to right, transparent, black 36%, black 64%, transparent);
    mask-image: linear-gradient(to right, transparent, #000000 36%, #000000 64%, transparent)
}

.reviews-slider:hover .reviews-slider__track>article {
    animation-play-state: paused;
}

.reviews-slider__track {
    display: flex;
    gap: var(--carousel-item-gap);
    width: max-content;
}

.reviews-slider__track>article {
    display: flex;
    gap: var(--carousel-item-gap);
    /* 30s is the speed of the scroll */
    animation: marquee 500s linear infinite;
}

@keyframes marquee {

    /* Translate exactly the width of one full article set (100% + gap) */
    to {
        transform: translateX(calc(-100% - var(--carousel-item-gap)));
    }
}

/* CARDS STYLING */
.review-slide-card {
    width: 310px;
    max-height: 215px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: rgb(41 91 170 / 12%) 0px 4px 12px !important;
    border-radius: 17px;
}

.review-slide-card:hover {
    transform: translateY(-5px);
}

.review-avatar {
    width: 48px;
    height: 48px;
    font-size: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    columns: var(--color-white);
}

.review-slide-card__text {
    min-height: 82px;
    overflow: auto;
}

/* ----------------------------------------------------------
   11. ALMA SECTION
   ---------------------------------------------------------- */

.alma-card__badge {
    background: #ff5722;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
    font-size: 15px;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .alma-card__badge {
        position: absolute;
        top: 30px;
        left: 30px;
    }
}

.alma-brand-text {
    color: #ff5722;
}

/* ----------------------------------------------------------
   12. Effects
   ---------------------------------------------------------- */

.bg-circle {
    position: relative;
    z-index: 1;
}

.bg-circle::before {
    content: '';
    position: absolute;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background-image: url('../image_v2/dots.webp');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

.bg-circle1::before {
    top: 53%;
    left: 39%;
}

.bg-circle2::before {
    top: 43%;
    left: 0%;
}

.bg-circle3::before {
    top: 50%;
    left: 94%;
}

.bg-circle4::before {
    top: 89%;
    left: 0%;
}

.bg-circle5::before {
    top: 100%;
    left: -6%;
}

.bg-circle6::before {
    top: 68%;
    left: 112%;
}

.bg-circle7::before {
    top: 13%;
    left: 94%;
}

.bg-circle8::before {
    top: 75%;
    left: 46%;
}


.glow-corner.deg45 {
    background-image: linear-gradient(45deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 70%, rgb(97 160 255 / 16%) 100%);
}

.glow-corner.deg129 {
    background-image: linear-gradient(129deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 70%, rgb(97 160 255 / 16%) 100%);
}

.glow-corner.deg226 {
    background-image: linear-gradient(226deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 70%, rgb(97 160 255 / 16%) 100%);
}

.glow-corner.deg322 {
    background-image: linear-gradient(322deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 70%, rgb(97 160 255 / 16%) 100%);
}

.accordion-item {
    border: none;
}

.accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: transparent;
    font-weight: bold;
    box-shadow: rgb(22 87 202 / 11%) 0px 48px 100px 0px;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.accordion-button::after {
    background-size: 0.8rem;
}

/* ----------------------------------------------------------
   8. CHATBOX / RAPPEL POPUP
   ---------------------------------------------------------- */
.chatbox-btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(11, 89, 203, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.chatbox-btn-floating:after {
    content: '';
    border-color: inherit;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 0 0 rgba(37, 211, 101, 0);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 89, 203, 0.75);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(11, 89, 203, 0);
    }
}

.chatbox-btn-floating.mobile_chat {
    display: flex !important;
}

.chatbox-btn-floating:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(11, 89, 203, 0.5);
}


.chatbox {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    transform-origin: bottom right;
}

.chatbox--tray {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.chatbox--closed {
    display: none !important;
}

.chatbox__inner {
    padding: 25px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(108, 150, 215, 0.19);
    position: relative;
}

.chatbox__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
}

.chatbox__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}


.chatbox__title__close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f1f3f5;
    color: #868e96;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.chatbox__title__close:hover {
    background: #e9ecef;
    color: #495057;
}

.chatbox__title__close svg {
    width: 14px;
    height: 14px;
}

.chatbox__desc {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 15px;
}

.form-group-v2 {
    margin-bottom: 20px;
}

.chatbox__error {
    display: none;
    color: #e03131;
    font-size: 12px;
    margin-top: 5px;
}

.chatbox__submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

@media (max-width: 575px) {
    .chatbox {
        bottom: 0;
        right: 0;
        width: 100%;
        transform-origin: bottom center;
    }

    .chatbox__inner {
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    }

    .chatbox-btn-floating {
        bottom: 20px;
        right: 20px;
    }
}


/* ----------------------------------------------------------
   TABLE REGION
---------------------------------------------------------- */


tbody,
td,
tfoot,
th,
thead,
tr {
    vertical-align: middle;
}

.table>:not(caption)>*>* {
    padding: .5rem 1.5rem !important;
}

table thead th {
    background-color: rgba(26, 86, 167, .07) !important;
    color: var(--color-primary) !important;
    padding: 1.3rem 1.5rem !important;
    box-shadow: var(--shadow-md) !important;
    border: 0;
}


.new_h1_2,
.new_h2_2 {
    color: var(--section-title-color) !important;
}