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

:root {
    --primary-color: #2a3461;
    --secondary-color: #555866;
    --secondary-hover : #464B7A;
    --text-dark: #626262;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --error-color: #EF4444;
    --pending-color: #dda025;
    --success-color: #11956A;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --border-light: #E2E8F0;
    --blue2: #535353;
    --blue3: #383a6d;
    --grey-light: #eaeaea;
    --grey-light2: #e6e6e6;
    --grey-light3: #94a3b8;
    --grey-light4: #f5f7ff;
    --orange: #f59e0b;
    --brown: #696969;
    --brown2: #515151;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-wrapper {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

@media (max-width: 1024px) {
    .main-wrapper {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        padding-top: 56px;
    }
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 100;
    border-top: 5px solid var(--primary-color);
    font-family: 'Lato', sans-serif;
}

.app-header__container {
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    max-width: 1170px;
    align-items: center;
    justify-content: space-between;
}

.app-header__brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-header__logo {
    height: 88px;
    width: auto;
}

.app-header__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.app-header__back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.app-header__back-link:hover {
    color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.05);
}

.app-header__back-link svg {
    flex-shrink: 0;
}

.app-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: var(--background);
    overflow-y: auto;
}

.verification-card {
    width: 100%;
    max-width: 800px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    margin: 40px 20px;
}

.text-highlight {
    font-weight: 700;
    color: var(--secondary-color);
}

.verification-card__content {
    padding: 20px 20px 40px 20px;
}

.verification-card__intro {
    margin-bottom: 32px;
}

.verification-card__intro h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.verification-card__description {
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}


.verification-card__footer {
    text-align: center;
    padding: 32px 0 0 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-methods__icon {
    height: 32px;
    width: auto;
}

.verification-card__copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.help-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.help-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-modal__content {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}

.help-modal__content h2 {
    color: var(--primary-color);
    position: relative;
    top: -15px;
}

.help-modal__close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.help-modal__close-btn:hover {
    color: var(--text-dark);
}

.help-modal__title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.help-modal__description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }

    .app-header {
        height: auto;
        border-top: 0;
        padding: 5px 0;
    }

    .app-header__container {
        padding: 0 20px;
    }

    .app-header__logo {
        height: 60px;
    }

    .app-header__title {
        font-size: 1rem;
    }

    .app-header__back-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    .app-header__back-link svg {
        width: 16px;
        height: 16px;
    }

    .app-main {
        padding: 0;
    }

    .verification-card {
        margin: 20px;
        border-radius: 12px;
    }

    .verification-card__content {
        padding: 32px 28px;
    }

    .verification-card__intro h2 {
        font-size: 1.25rem;
    }

    .verification-card__description {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .app-header {
        height: auto;
    }

    .app-header__nav {
        top: 78px;
    }

    .app-header__container {
        max-width: 100%;
        padding: 0 20px;
    }

    .app-header__title {
        font-size: 1rem;
    }

    .app-header__back-link span {
        display: none;
    }

    .verification-card__content {
        padding: 24px 20px;
    }

    .verification-card__intro {
        margin-bottom: 24px;
    }

    .payment-methods {
        gap: 10px;
    }

    .payment-methods__icon {
        height: 28px;
    }

    .verification-card__footer {
        padding: 24px 0 0 0;
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .app-header {
        height: 56px;
    }

    .app-header__nav {
        top: 56px;
    }

    .app-header__container {
        padding: 0 16px;
    }

    .app-header__brand {
        gap: 12px;
    }

    .app-header__logo {
        height: 35px;
    }

    .app-header__title {
        font-size: 0.875rem;
    }

    .app-header__back-link span {
        display: none;
    }

    .app-header__back-link {
        padding: 8px;
    }

    .verification-card {
        margin: 16px;
        border-radius: 8px;
    }

    .verification-card__content {
        padding: 20px 16px;
    }

    .verification-card__intro {
        margin-bottom: 20px;
    }

    .verification-card__intro h2 {
        font-size: 1.125rem;
    }

    .verification-card__description {
        font-size: 0.8125rem;
    }

    .verification-card__footer {
        padding: 20px 0 0 0;
        margin-top: 24px;
    }

    .help-modal__content {
        padding: 20px;
        width: 92%;
    }
}

/* Menu mobile */
/* ============================================
   STYLES GÉNÉRAUX DU MENU
   ============================================ */

.app-header__nav {
    position: relative;
}

.menu-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.menu-nav__item {
    position: relative;
}

.menu-nav__link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.menu-nav__dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   MOBILE (< 1149px)
   ============================================ */
/* ============================================
   STYLES GÉNÉRAUX DU MENU
   ============================================ */

.app-header__nav {
    position: relative;
}

.menu-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-nav__item {
    position: relative;
}

.menu-nav__link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.menu-nav__dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   MOBILE (< 1150px)
   ============================================ */

@media (max-width: 1149px) {
    /* Bouton menu mobile */
    .app-header__bando {
        display: block;
    }

    .mobile-menu-toggle {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background-color: #1f2849;
    }

    .mobile-menu-toggle__icon {
        width: 20px;
        height: 2px;
        background-color: white;
        position: relative;
        transition: background-color 0.3s ease;
    }

    .mobile-menu-toggle__icon::before,
    .mobile-menu-toggle__icon::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: white;
        left: 0;
        transition: transform 0.3s ease;
    }

    .mobile-menu-toggle__icon::before {
        top: -6px;
    }

    .mobile-menu-toggle__icon::after {
        bottom: -6px;
    }

    /* Animation du bouton quand le menu est ouvert */
    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon {
        background-color: transparent;
    }

    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Navigation mobile */
    .app-header__nav {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        height: calc(100vh - 55px);
        background-color: var(--primary-color);
        z-index: 100;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }

    .app-header__nav.is-open {
        transform: translateX(0);
    }

    .menu-nav__list {
        padding: 10px 0;
    }

    .menu-nav__item {
        border-bottom: 0px;
    }

    .menu-nav__link {
        padding: 12px 16px;
        color: white;
        font-weight: 600;
        margin-bottom: 1px;
        font-size: 15px;
    }

    /* Items avec dropdown */
    .menu-nav__item--dropdown > .menu-nav__link {
        position: relative;
        padding-right: 50px;
    }

    .menu-nav__item--dropdown > .menu-nav__link::after {
        content: '';
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid #fff;
        transition: transform 0.3s ease;
    }

    .menu-nav__item--dropdown.is-open > .menu-nav__link::after {
        transform: translateY(-50%) rotate(90deg);
    }

    /* Sous-menus */
    .menu-nav__dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .menu-nav__item--dropdown.is-open > .menu-nav__dropdown {
        max-height: 1000px;
        padding-right: 15px;
    }

    .menu-nav__dropdown-item .menu-nav__link {
        padding-left: 24px;
    }

    /* Icône home */
    .menu-nav__item--home .menu-nav__link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 16px;
    }

    .menu-nav__dropdown-item .menu-nav__dropdown-item .menu-nav__link {
        padding-left: 36px;
    }
}

/* ============================================
   DESKTOP (>= 1150px)
   ============================================ */

@media (min-width: 1150px) {
    /* Cacher le bouton mobile */
    .app-header__bando {
        display: none;
    }

    /* Navigation horizontale */
    .app-header__nav {
        display: block;
        position: static;
        height: auto;
        background: transparent;
        transform: none;
        height: 100%;
    }

    .menu-nav__list {
        display: flex;
        align-items: stretch;
        height: 100%;
    }

    .menu-nav__item {
        display: flex;
        align-items: stretch;
        border-bottom: none;
    }

    .menu-nav__item:first-child a:before {
        display: none;
    }

    .menu-nav__link {
        color: #626262;
        padding: 0 10px;
        display: flex;
        align-items: center;
        white-space: nowrap;
        font-weight: 500;
        font-size: 14px;
        background: transparent;
        height: 100%;
    }

    .menu-nav__link:hover,
    .menu-nav__link:focus {
        background-color: var(--primary-color);
        color: white;
    }

    .menu-nav__item--home .menu-nav__link {
        font-size: 14px;
    }

    /* Dropdowns en desktop */
    .menu-nav__item--dropdown {
        position: relative;
    }

    .menu-nav__dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 250px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 100;
        border-top: 4px solid var(--primary-color);
        padding: 0 15px;
    }

    .menu-nav__item--dropdown:hover > .menu-nav__dropdown,
    .menu-nav__item--dropdown:focus-within > .menu-nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-nav__item--dropdown.menu-nav__lev-1:hover > .menu-nav__link,
    .menu-nav__item--dropdown.menu-nav__lev-1:focus-within > .menu-nav__link {
        background-color: var(--primary-color);
        color: white;
    }

    .menu-nav__dropdown-item {
        border-bottom: none;
    }

    .menu-nav__dropdown-item .menu-nav__link {
        padding: 10px 20px 10px 0px;
        color: #626262;
        background-color: white;
        height: auto;
        font-weight: 400;
        border-bottom: 1px solid #dbdbdb;
    }

    .menu-nav__dropdown-item:last-child > .menu-nav__link {
        border-bottom: 0;
    }

    .menu-nav__dropdown-item .menu-nav__link:hover,
    .menu-nav__dropdown-item .menu-nav__link:focus {
        color: var(--primary-color);
    }

    .menu-nav__item--dropdown.menu-nav__lev-1:hover > .menu-nav__dropdown > .menu-nav__link::before,
    .menu-nav__item--dropdown.menu-nav__lev-1:focus-within > .menu-nav__dropdown > .menu-nav__link::before {
        font-family: "FontAwesome";
        content: "\f067";
        position: absolute;
        top: 0;
        left: 0;
        margin-top: -16px;
        display: block;
        text-align: center;
        color: #fff;
        margin: 0 auto;
        width: 100%;
        height: 100%;
        padding-top: 20px;
    }

    /* Flèche indicateur dropdown */
    .menu-nav__item > .menu-nav__link::before {
        font-family: "FontAwesome";
        content: "\f067";
        position: absolute;
        top: 0;
        left: 0;
        margin-top: -16px;
        display: block;
        text-align: center;
        color: #fff;
        margin: 0 auto;
        width: 100%;
        height: 100%;
        padding-top: 20px;
    }

    .menu-nav__item--dropdown .menu-nav__item--dropdown > a:after {
        content: "\f105";
        font-family: "FontAwesome";
        color: #f2f2f2;
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        color: var(--brown);
    }

    .menu-nav__item--dropdown .menu-nav__item--dropdown .menu-nav__dropdown--nested {
        top: -5px;
        left: calc(100% + 15px);
    }
}

@media (max-width: 1024px) {
    .app-header__nav {
        top: 77px;
    }
}

@media (max-width: 480px) {
    .app-header__nav {
        top: 56px;
    }
}

/* Footer */
.footer-main {
    background: var(--grey-light);
    border-bottom: 1px solid var(--grey-light2);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Lato', sans-serif;
    overflow: hidden;
    max-width: 100vw;
}

.footer-main p {
    color: var(--blue2);
    font-size: 14px;
}

.footer-main p a {
    color: var(--blue3);
    text-decoration: none;
}

.footer-main p a:hover {
    text-decoration: underline;
}

.payment-card p {
    margin-bottom: 15px;
}

.payment-card__title {
    display: flex;
    align-content: center;
    justify-content: center;
}

.payment-card__icon {
    display: inline-flex;
    max-width: 30px;
    margin: 0 10px 0 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.payment-card--success svg {
    color: var(--success-color);
}

.payment-card--error svg {
    color: var(--error-color);
}

.payment-card__technical {
    margin-bottom: 15px;
}

/* ============================================
   LOADER (PAIEMENT EN COURS)
   ============================================ */

.payment-card__loader {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.payment-card__loader span {
    width: 12px;
    height: 12px;
    background: var(--orange);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.payment-card__loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.payment-card__loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.payment-card__info {
    font-size: 14px;
    color: var(--grey-light3);
    margin-top: 16px;
}

.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.summary-card__actions:has(#back-btn) {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.wrapper-btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.wrapper-btn:has(> :only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (max-width: 768px) {
  .wrapper-btn {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.btn-style {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.btn-style-secondary {
  background: var(--surface);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-transform: uppercase;
}

.btn-style-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
}

.btn-style-secondary:hover {
  background: var(--grey-light4);
  border-color: var(--secondary-color);
}

.btn-style-primary:hover {
  background: var(--secondary-hover);
}

/* table recap */

.payment-summary {
    background: var(--grey-light4);
    border-radius: 12px;
    padding: 24px;
    border: 0;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.payment-summary__row {
    border-bottom: 1px solid #e2e8f0;
}

.payment-summary__row:last-child {
    border-bottom: none;
}

.payment-summary__label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: left;
    padding: 15px;
    vertical-align: top;
    width: 45%;
}

.payment-summary__value {
    font-size: 0.9375rem;
    color: var(--brown2);
    font-weight: 600;
    text-align: left;
    padding: 15px;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 640px) {
    .payment-summary {
        padding: 16px;
    }

    .payment-summary__label,
    .payment-summary__value {
        display: block;
        width: 100%;
        padding: 15px 0 0 20px;
    }

    .payment-summary__label {
        padding-bottom: 4px;
    }

    .payment-summary__value {
        padding-top: 0;
        padding-bottom: 12px;
    }
}

/* Loader overlay - displayed when body has .is-loading class */
body.is-loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    pointer-events: all;
    cursor: wait;
}

/* Spinning loader */
body.is-loading::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 7px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    z-index: 9999;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#capture-event * {
    pointer-events: none;
}