/*@import "w3layout/animate-5Tmk5mq.css";*/
/*@import './w3layout/bootstrap.css';*/
/*@import "w3layout/chocolat-CnBlxii.css";*/
@import "w3layout/style-BTPawnt.css";


/*body {*/
/*    background-color: skyblue;*/
/*}*/

/*!*body {*!*/
/*!*    padding: 40px;*!*/
/*!*    background-image: linear-gradient(#e8f0ff 0%, white 52.08%);*!*/
/*!*    color: #0e3481;*!*/
/*!*    min-height: 100vh;*!*/
/*!*}*!*/

/*.header .lead {*/
/*    max-width: 620px;*/
/*}*/

/*!** Below CSS is completely optional **!*/

/*.gallery-item {*/
/*    width: 200px;*/
/*    padding: 5px;*/
/*}*/

/*.navbar-bg-color, .table-bg-color {*/
/*    background-color: #222d32 !important;*/
/*}*/

/*.modals {*/
/*    margin-top: 2em;*/
/*    padding: 2em 1em;*/
/*}*/

/*.widget-shadow {*/
/*    background-color: #fff;*/
/*    box-shadow: 0 -1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);*/
/*    -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);*/
/*    -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);*/
/*}*/

/*.form-floating > label {*/
/*    padding-top: 0 !important;*/
/*}*/

/*.btn-site {*/
/*    --bs-btn-color: #fff !important;*/
/*    --bs-btn-bg: #222d32 !important;*/
/*    --bs-btn-border-color: #222d32 !important;*/
/*    --bs-btn-hover-color: #222d32 !important;*/
/*    --bs-btn-hover-bg: #8ed8e6 !important;*/
/*    --bs-btn-hover-border-color: #add8db !important;*/
/*}*/

/* ========================= */
/* Minimal responsive overrides */
/* ========================= */

/* Prevent horizontal scrolling on small screens */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

/* Fluid media helpers */
img, video {
    max-width: 100%;
    height: auto;
}

.img-responsive { /* used in templates */
    display: block;
    max-width: 100%;
    height: auto;
}

/* Provide a responsive container (w3layout base did not include one) */
.container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

/* Header and navigation */
.header {
    position: sticky;
    top: 0;
}

.event-header {
    min-height: var(--event-header-height, 250px);
    background-image: var(--event-header-background, url("../images/w3layout/test-wVFoafr.jpg"));
}

.event-header .event-header-photo {
    display: none;
}

.event-header-content {
    display: contents;
}

.event-header h1 {
    margin-top: var(--event-title-margin, 0);
}

.event-header h2 {
    margin-top: var(--event-subtitle-margin, 0);
}

.sticky-navigation .top-menu > ul,
.sticky-navigation .top-login > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sticky-navigation .menu-toggle {
    display: none;
}

.desktop-only { display: block !important; }
.mobile-only { display: none !important; }
body .header .sticky-navigation .top-menu > ul > li.mobile-only { display: none !important; }
body .header .sticky-navigation .top-login.desktop-only { display: block !important; }

@media (max-width: 992px) {
    .event-header {
        min-height: 0;
        padding: 0;
        background-image: none;
        background-color: #222;
        color: #fff;
    }

    .event-header .event-header-photo {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .event-header-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: .75rem;
        padding: 1.5rem 1rem;
    }

    .event-header h1 {
        font-size: clamp(2.25rem, 8vw, 4.5rem);
        line-height: 1.15;
    }

    .event-header h2 {
        font-size: clamp(1rem, 4vw, 1.5rem);
        line-height: 1.4;
    }

    .event-header h1,
    .event-header h2 {
        max-width: 100%;
        margin: 0;
        overflow-wrap: anywhere;
    }

    .event-header-content > img {
        width: min(200px, 60%);
    }

    .sticky-navigation {
        padding: .5rem 0;
    }

    .sticky-navigation .top-menu {
        float: none;
        width: 100%;
    }

    .sticky-navigation .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        min-width: 44px;
        min-height: 44px;
        margin-left: auto;
        padding: .5rem .75rem;
        border: 1px solid #ddd;
        border-radius: .5rem;
        background: #fff;
        color: #222;
        font: inherit;
        cursor: pointer;
    }

    .sticky-navigation .menu-toggle:focus-visible {
        outline: 2px solid #d20962;
        outline-offset: 3px;
    }

    .sticky-navigation .menu-toggle img {
        width: 24px;
        height: auto;
    }

    body .header .sticky-navigation .top-menu > ul {
        display: none;
        position: static;
        width: 100%;
        max-height: calc(100dvh - 76px);
        overflow-y: auto;
        margin: .5rem 0 0;
        padding: .25rem 0;
        border-radius: .5rem;
        background: #d20962;
    }

    body .header .sticky-navigation .top-menu.is-open > ul {
        display: block;
    }

    body .header .sticky-navigation .top-menu > ul > li {
        display: block;
        float: none;
        padding: 0;
        text-align: left;
    }

    body .header .sticky-navigation .top-menu > ul > li > a {
        display: block;
        margin: 0;
        padding: .75rem 1rem;
        color: #fff;
        overflow-wrap: anywhere;
    }

    body .header .sticky-navigation .top-menu > ul > li > a:hover,
    body .header .sticky-navigation .top-menu > ul > li > a:focus-visible,
    body .header .sticky-navigation .top-menu > ul > li.active > a {
        background: #a5074d;
    }

    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    body .header .sticky-navigation .top-menu > ul > li.mobile-only { display: block !important; }
    body .header .sticky-navigation .top-login.desktop-only { display: none !important; }
}

.contact-form > .login-form {
    width: 100%;
    min-width: 0;
}

.login-form-fields {
    width: 50%;
    margin-inline: auto;
}

@media (max-width: 992px) {
    .login-form-fields {
        width: 100%;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        font-size: 1rem;
    }
}

/* Improve very small screens */
@media (max-width: 480px) {
    /* Reduce hero/slider height and typography */
    .slider {
        min-height: 320px; /* was 700px in base */
        padding-top: 6rem;  /* reduce vertical padding */
    }
    .slider-caption h1 { font-size: 2.5rem; }
    .slider-caption h2 { font-size: 1.25rem; }
    .slider-caption h3 { font-size: 1rem; }

    /* Buttons group spacing on gallery header */
    .contact-form {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }
}

/* Tablet tweaks */
@media (min-width: 481px) and (max-width: 992px) {
    .slider { min-height: 420px; padding-top: 8rem; }
    .slider-caption h1 { font-size: 3.25rem; }
    .slider-caption h2 { font-size: 1.5rem; }
}


/* ========================= */
/* Responsive tables (admin) */
/* ========================= */

/* Simple horizontal scroll container to avoid layout break on small screens */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure tables use full width by default */
table.table {
    width: 100%;
    border-collapse: collapse;
}

/* Basic cell padding; keep it compact on small screens */
table.table th,
table.table td {
    padding: .5rem .75rem;
    vertical-align: top;
}

/* Utilities often expected from Bootstrap-like classes */
.text-nowrap { white-space: nowrap; }
.text-truncate {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.minw-actions { min-width: 220px; }

/* On small screens, tighten spacing and allow action buttons to wrap */
@media (max-width: 768px) {
    table.table th,
    table.table td {
        padding: .4rem .5rem;
    }
    .actions {
        display: flex;
        gap: .35rem;
        flex-wrap: wrap;
    }
}


/* ========================= */
/* Custom Switch Button Styling */
/* ========================= */

.form-check.form-switch {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.form-check.form-switch:hover {
    background-color: #e9ecef;
}

.form-check.form-switch .form-check-input {
    width: 3.5rem;
    height: 1.75rem;
    margin: 0;
    cursor: pointer;
    background-color: #adb5bd;
    border: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: left center;
    transition: background-color 0.3s ease, background-position 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.form-check-input {
    margin-right: 10px !important;
}

.form-check.form-switch .form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border: none;
}

.form-check.form-switch .form-check-input:checked {
    background-color: #0d6efd;
    background-position: right center;
}

.form-check.form-switch .form-check-input:checked:hover {
    background-color: #0b5ed7;
}

.form-check.form-switch .form-check-label {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
    margin: 0;
    flex: 1;
}

.form-check.form-switch .form-check-input:checked + .form-check-label {
    color: #0d6efd;
}

/* Animation au chargement */
@keyframes switchSlide {
    from {
        transform: translateX(-5px);
        opacity: 0.6;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-check.form-switch {
    animation: switchSlide 0.4s ease;
}
