html {
    color-scheme: light;
}

body {
    font-size: 14px;
    line-height: 1.55;
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: app-page-out 180ms ease-out both;
}

::view-transition-new(root) {
    animation: app-page-in 220ms ease-out both;
}

.app-bottom-nav {
    view-transition-name: app-bottom-nav;
}

::view-transition-group(app-bottom-nav) {
    animation-duration: 220ms;
}

@keyframes app-page-out {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@keyframes app-page-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
    ::view-transition-group(*) {
        animation: none !important;
    }
    ::view-transition-old(*), ::view-transition-new(*) {
        animation: none !important;
    }
}

.block.arrondis, .wrapper-exposant, .notification-card, .programme-filters, .event-detail, .practical-information {
    border: 1px solid #dce5f0;
    box-sizing: border-box;
}

.arrondis {
    border-radius: 12px;
}

.ombre, .programme-filters, .app-content-public .event-detail {
    box-shadow: 0 5px 18px rgba(38, 65, 105, .07);
}

.wrapper-exposant[data-sponsor="silver"] {
    border: 3px solid #b6b6b6;
}

.wrapper-exposant[data-sponsor="gold"] {
    border: 3px solid #c6a24b;
}

.wrapper-exposant[data-sponsor="platinium"] {
    border: 3px solid #b49bc4;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    max-width: calc(100% - 150px);
}

.wrapper-event h2, .programme-public main .event-card h3, .notification-card h2 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.wrapper-event h4, .event-content p, .notification-card .col-texte p, .exposant-card-link .col-texte p, .rich-content, .conteneur-contenu {
    font-size: 14px;
    line-height: 1.65;
}

.flex-temps h3, .event-time strong, .event-time > span, .flex-temps h4 strong {
    font-size: 16px;
    font-weight: 600;
}

.wrapper-event .flex-temps h4, .event-meta, .event-time small, .notification-card .date {
    font-size: 12px;
}

.exposant-card-link .col-texte h3 {
    font-size: 20px;
    line-height: 1.4;
}

.exposant-card-link .col-texte h4 {
    font-size: 16px;
}

.conteneur-bts-programme .bt, .formulaire label .texte {
    font-size: 14px;
}

.conteneur-bts-programme .bt {
    min-height: 58px;
    padding: 16px 20px;
    margin-bottom: 14px;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    color: #233c55;
    font-weight: 600;
    line-height: 1.55;
}

.conteneur-bts-programme .bt.bleu {
    border-color: #1890ff;
    color: #fff;
}

.conteneur-bts-programme .bt .avec-icone {
    min-height: 24px;
}

.conteneur-bts-programme .bt .avec-icone img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.conteneur-bts-programme .bt:hover {
    border-color: #9ccaff;
}

.conteneur-bts-programme .bt:focus-visible {
    outline: 3px solid #72c6ff;
    outline-offset: 3px;
}

.conteneur-recherche input:not([type=hidden]),
.programme-public .exposants-search input {
    font-size: 16px;
    border: 1px solid #dce5f0;
}

.formulaire input, .formulaire select, .formulaire textarea {
    font-family: inherit;
}

header .bt-mobile-menu, #home header .bt-mobile-menu, header .bt-retour-header {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    box-sizing: border-box;
}

header .bt-mobile-menu img, #home header .bt-mobile-menu img {
    width: 20px;
    height: 20px;
}

header .bt-retour-header img {
    width: 22px;
    height: 22px;
}

#home header:not(.sticky) .bt-mobile-menu {
    background: linear-gradient(135deg, #00aaff, #006bff);
}

header a.bt-scan-header {
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 42px;
    padding: 0 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    background: linear-gradient(135deg, #00aaff, #006bff);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

header a.bt-scan-header .badge {
    width: 22px;
    height: 22px;
    background: none;
}

header a.bt-scan-header .badge img {
    width: 22px;
    height: 22px;
}

header a:focus-visible {
    outline: 3px solid #b8e2ff;
    outline-offset: 3px;
}

footer.app-bottom-nav {
    border-top: 1px solid #dce5f0;
    box-shadow: 0 -3px 15px rgba(38, 65, 105, .06);
}

.app-bottom-nav .container {
    height: auto;
    min-height: 72px;
    padding-bottom: env(safe-area-inset-bottom);
}

.app-bottom-nav a {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 72px;
    flex-direction: column;
    gap: 5px;
    color: #68788c;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
}

.app-bottom-nav .app-nav-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-bottom-nav a.actif {
    color: #087ef1;
    font-weight: 600;
}

.app-bottom-nav a::before {
    left: 30%;
    right: 30%;
    height: 3px;
    box-shadow: none;
}

.app-bottom-nav a:focus-visible {
    outline: 2px solid #1890ff;
    outline-offset: -4px;
    border-radius: 8px;
}

#ecran-connexion .flex-connexion {
    height: auto;
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    padding: 32px 0;
    box-sizing: border-box;
}

#ecran-connexion .block-connexion {
    width: 440px;
    max-width: 100%;
    padding: 30px;
    border-radius: 16px;
}

#ecran-connexion .block-connexion h2 {
    font-size: 26px;
    line-height: 1.3;
    margin: 7px 0 12px;
    text-align: left;
}

.auth-eyebrow, #ecran-connexion .block-connexion .auth-eyebrow {
    margin: 0;
    color: #087ef1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-align: left;
}

#ecran-connexion .block-connexion .auth-description {
    color: #68788c;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    line-height: 1.65;
    margin: 0 0 24px;
}

#ecran-connexion .block-connexion label {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #233c55;
    margin: 0 0 18px;
}

#ecran-connexion .block-connexion label input {
    height: 48px;
    margin-top: 7px;
    padding: 11px 12px 11px 43px;
    border: 1px solid #d5dfec;
    border-radius: 10px;
    background: #f9fbfe;
    color: #233c55;
    font-size: 16px;
    font-weight: 400;
}

#ecran-connexion .block-connexion label img {
    top: auto;
    bottom: 14px;
    left: 14px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

#ecran-connexion .block-connexion input[type=submit], .account-page .registration-form .bt-envoyer {
    position: static;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid #087ef1;
    border-radius: 10px;
    background: linear-gradient(135deg,#00aaff,#006bff);
    color: white;
    font: 600 14px/1.5 'Poppins',sans-serif;
    cursor: pointer;
    margin: 6px 0 0;
    box-sizing: border-box;
}

#ecran-connexion .auth-signup {
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid #e1e8f1;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    color: #68788c;
}

#ecran-connexion .auth-signup a {
    padding: 9px 12px;
    border: 1px solid #cce2fc;
    border-radius: 9px;
    background: #f0f7ff;
    color: #0879e8;
    font-weight: 600;
}

.account-page #page-type > .contenu > .container {
    max-width: 820px;
}

.account-intro {
    margin-bottom: 24px;
}

.account-intro h2 {
    margin: 7px 0 9px;
    font-size: 26px;
    line-height: 1.3;
}

.account-intro > p:last-child {
    margin: 0;
    color: #68788c;
    font-size: 14px;
}

.account-card {
    padding: 28px;
    border-radius: 16px;
}

.registration-form .list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px 24px;
}

.registration-form .account-section-title {
    grid-column: 1/-1;
    margin: 12px 0 0;
    padding-top: 22px;
    border-top: 1px solid #e1e8f1;
    color: #233c55;
    font-size: 17px;
}

.registration-form .account-section-title:first-child {
    border: 0;
    padding-top: 0;
    margin-top: 0;
}

.registration-form label {
    display: block;
    width: auto;
    padding: 0;
    min-width: 0;
}

.registration-form label.large {
    grid-column: 1/-1;
}

.registration-form label .texte, .registration-form label.large .texte {
    display: block;
    width: auto;
    height: auto;
    margin-bottom: 7px;
    padding: 0;
    font-size: 13px;
    color: #233c55;
    font-weight: 600;
}

.registration-form label .champ, .registration-form label.large .champ {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
}

.registration-form label .champ input, .registration-form label .champ select, .registration-form label.large .champ textarea {
    display: block;
    width: 100%;
    height: 46px;
    padding: 10px 12px;
    text-align: left;
    background: #f9fbfe;
    color: #233c55;
    border: 1px solid #d5dfec;
    border-radius: 9px;
    font: 400 14px/1.5 'Poppins',sans-serif;
    box-sizing: border-box;
}

.registration-form label.large .champ textarea {
    height: 130px;
    resize: vertical;
}

.registration-form label .champ input[readonly] {
    background: #edf2f8;
    color: #68788c;
}

.registration-form .asterix {
    color: #c44059;
}

.account-actions {
    margin-top: 26px;
    border-top: 1px solid #e1e8f1;
    padding-top: 20px;
}

.account-required {
    margin: 0 0 14px;
    font-size: 12px;
    color: #68788c;
}

.account-login {
    text-align: center;
    margin: 18px 0 0;
    font-size: 13px;
    color: #68788c;
}

.account-login a {
    font-weight: 600;
}

.registration-form input:focus-visible, .registration-form select:focus-visible, .registration-form textarea:focus-visible, #ecran-connexion input:focus-visible, #ecran-connexion a:focus-visible {
    outline: 3px solid #b8dcff;
    outline-offset: 2px;
    border-color: #1890ff;
}

.registration-form input:disabled {
    opacity: .65;
    cursor: wait;
}

#registration-recap {
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid #dce5f0;
    border-radius: 18px;
    background: #fff;
    color: #233c55;
    box-shadow: 0 20px 60px rgba(31,49,67,.2);
    font: 400 14px/1.65 'Poppins',sans-serif;
}

#registration-recap::backdrop {
    background: rgba(25,42,65,.38);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#registration-recap .registration-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 19px;
    border-radius: 14px;
    background: #eaf5ff;
    color: #087ef1;
    font-size: 25px;
}

#registration-recap h2 {
    margin: 7px 0 12px;
    font-size: 24px;
    line-height: 1.35;
}

#registration-recap > p:not(.auth-eyebrow) {
    color: #68788c;
    margin: 0 0 18px;
}

#registration-recap .registration-login {
    padding: 17px;
    margin: 22px 0;
    border: 1px solid #cce2fc;
    border-radius: 12px;
    background: #f0f7ff;
}

#registration-recap .registration-login span {
    display: block;
    font-size: 12px;
    color: #526b84;
}

#registration-recap .registration-login strong {
    display: block;
    margin-top: 5px;
    color: #0879e8;
    font-size: 24px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    user-select: all;
}

#registration-recap > .registration-connected {
    font-size: 13px;
}

#registration-recap button {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,#00aaff,#006bff);
    color: #fff;
    font: 600 14px/1.5 'Poppins',sans-serif;
    cursor: pointer;
}

#registration-recap button:focus-visible {
    outline: 3px solid #b8dcff;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    #ecran-connexion .flex-connexion {
        align-items: flex-start;
        padding: 24px 4px;
    }
    #ecran-connexion .block-connexion {
        padding: 24px 20px;
    }
    .account-card {
        padding: 22px 18px;
    }
    .registration-form .list {
        grid-template-columns: minmax(0,1fr);
        gap: 18px;
    }
    .account-intro h2, #ecran-connexion .block-connexion h2 {
        font-size: 24px;
    }
    header h1 {
        font-size: 18px;
    }
    .exposant-card-link .col-texte h3 {
        font-size: 18px;
    }
    .exposant-card-link .col-texte p {
        font-size: 13px;
    }
    .formulaire input:not([type=checkbox]):not([type=radio]), .formulaire select, .formulaire textarea {
        font-size: 16px;
    }
}

.app-page > .wrapper-ecran, .app-page > .wrapper-ecran-enfant {
    display: block;
    position: relative;
    inset: auto;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    padding-bottom: 90px;
    box-sizing: border-box;
}

.app-page #ecran-connexion {
    padding-bottom: 30px;
}

#login-error {
    color: #a52b2b;
}

.contact-new {
    outline: 3px solid #268bd2;
    outline-offset: 3px;
}

dialog:not([open]) {
    display: none;
}

.app-dialog-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background: rgba(25,42,65,.55);
    touch-action: none;
}

dialog.app-dialog-fallback {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%,-50%);
    z-index: 10001;
    display: block;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html.app-dialog-open {
    overflow: hidden;
}

.no-flex-gap #menu-drawer .drawer-link svg {
    margin-right: 14px;
}

.no-flex-gap #menu-drawer .drawer-link+.drawer-link {
    margin-top: 5px;
}

.no-flex-gap #menu-drawer .drawer-close {
    margin-left: 16px;
}

.no-flex-gap #menu-drawer .drawer-legal a {
    margin-right: 16px;
    margin-bottom: 8px;
}

.no-flex-gap .app-bottom-nav a span {
    margin-top: 5px;
}

.no-flex-gap .contacts-scan img {
    margin-right: 10px;
}

.no-flex-gap .contacts-intro> :last-child {
    margin-left: 28px;
}

.no-flex-gap .contacts-heading> :last-child {
    margin-left: 16px;
}

.no-flex-gap .contact-card> :not(:first-child) {
    margin-left: 15px;
}

.no-flex-gap .contact-summary> :not(:first-child) {
    margin-top: 5px;
}

.no-flex-gap .plan-toolbar> :not(:first-child) {
    margin-left: 10px;
}

.no-flex-gap .auth-signup> :last-child {
    margin-left: 12px;
}

.no-flex-gap .jd-tags>span {
    margin-right: 8px;
    margin-bottom: 8px;
}

.no-flex-gap .jd-company summary> :not(:first-child) {
    margin-left: 16px;
}

@media (max-width:650px) {
    .no-flex-gap .contacts-intro> :last-child, .no-flex-gap .contacts-heading> :last-child {
        margin-left: 0;
        margin-top: 16px;
    }
    .no-flex-gap .jd-company summary>.jd-expand {
        margin-left: 0;
        margin-top: 12px;
    }
}

.no-focus-visible a:focus, .no-focus-visible button:focus, .no-focus-visible input:focus, .no-focus-visible select:focus, .no-focus-visible textarea:focus, .no-focus-visible [tabindex]:focus {
    outline: 3px solid #268bd2;
    outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}
