/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : Aug 19, 2024, 11:32:00 AM
    Author     : mitt
*/

/* Tablet (min-width: 600px and max-width: 900px) */

/*.custom-grid .ui-datagrid-column {
    width:100%; 
}

.ui-datagrid-column {
    height: 25rem;
}*/


@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    .ui-message-error {
        width: 28.125rem;
    }
    h1 {
        font-size: 1.5rem;
        padding-bottom: 0.625rem;
    }
    h2 {
        font-size: 1.4rem;
        padding-bottom: 0.625rem;
        padding-top: 0.625rem;
    }
    h3 {
        font-size: 1.2rem;
        padding-bottom: 1.25rem;
    }
    h4 {
        font-size: 1rem;
        padding-bottom: 1.25rem;
    }
    .text.left p {
        font-size: 0.95rem;
    }
    .smaller {
        font-size: 0.7rem;
    }
    #topS3e.header .top-title,
    #menuS3e ul,
    #content-wrapperS3e {
        width: 58.75rem;
    }
    
    .trombine-col {
        margin-left:3px !important;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    .ui-message-error {
        width: 21.875rem;
    }
    h1 {
        font-size: 1.2rem;
        padding-bottom: 0.5rem;
    }
    h2 {
        font-size: 1.1rem;
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }
    h3 {
        font-size: 1rem;
        padding-bottom: 0.5rem;
    }
    h4 {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }
    .text.left p {
        font-size: 0.875rem;
    }
    .smaller {
        font-size: 0.6rem;
    }
    #topS3e.header .top-title,
    #menuS3e ul,
    #content-wrapperS3e {
        width: 35rem;
    }
    
    .trombine-col {
        margin-left:0px !important;
    }
    
    .ui-carousel-header{
    margin-left: 1rem;
    }
}


/* Tablet (min-width: 600px and max-width: 900px) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    #topS3e .top-login {
        height: 2.375rem;
        line-height: 2.375rem;
        width: 58.75rem;
    }
    #topS3e .top-username {
        font-size: 1.125rem;
    }
    #top-menubuttonS3e_menu a {
        font-size: 1rem;
    }
    #topS3e .top-login a {
        font-size: 1.125rem;
        padding-left: 1.5625rem;
        padding-right: 1.875rem;
        right: 2.5rem;
        margin-left: 2.5rem;
    }
    #topS3e.header .top-title {
        padding: 0.625rem 0;
        height: 8.4375rem;
    }
    #topS3e.header .top-title h1 {
        font-size: 2rem;
        padding-bottom: 0.3125rem;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    #topS3e .top-login {
        height: 2rem;
        line-height: 2rem;
        width: 35rem;
    }
    #topS3e .top-username {
        font-size: 1rem;
    }
    #top-menubuttonS3e_menu a {
        font-size: 0.875rem;
    }
    #topS3e .top-login a {
        font-size: 1rem;
        padding-left: 1.25rem;
        padding-right: 1.5625rem;
        right: 2rem;
        margin-left: 2rem;
    }
    #topS3e.header .top-title {
        padding: 0.5rem 0;
        height: 7rem;
    }
    #topS3e.header .top-title h1 {
        font-size: 1.5rem;
        padding-bottom: 0.25rem;
    }
}

/* Tablet (min-width: 600px and max-width: 900px) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    #topS3e.header .top-title h2 {
        font-size: 2.5rem;
        padding-bottom: 0.3125rem;
    }

    #top-sidebar {
        width: 21.875rem;
        height: 8.75rem;
        transform: translate(-1.3125rem, 0);
    }

    #top-img {
        width: 21.875rem;
        height: 8.75rem;
    }

    #topS3e #top-customer {
        width: 12.6875rem;
        height: 7.5rem;
        background-size: 7.5rem;
        left: 2.5rem;
    }

    #blank-menuS3e {
        height: 0.3125rem;
    }

    #menuS3e {
        /*height: 2.375rem;*/
    }

    #menuS3e ul li {
        width: auto;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    #topS3e.header .top-title h2 {
        font-size: 2rem;
        padding-bottom: 0.3125rem;
    }

    #top-sidebar {
        width: 18.75rem;
        height: 7rem;
        transform: translate(-1.3125rem, 0);
    }

    #top-img {
        width: 18.75rem;
        height: 7rem;
    }

    #topS3e #top-customer {
        width: 10rem;
        height: 6rem;
        background-size: 6rem;
        left: 2rem;
    }

    #blank-menuS3e {
        height: 0.3125rem;
    }

    #menuS3e {
      /*  height: 2rem;*/
    }

    #menuS3e ul li {
        width: 22%;
    }
}

/* Tablet (min-width: 600px and max-width: 900px) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    #menuS3e a {
        line-height: 2.375rem;
        height: 2.375rem;
        font-size: 1rem;
    }
    #menuS3e a:before {
        font-size: 0.875rem;
        margin-right: 0.3125rem;
        top: -0.125rem;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    #menuS3e a {
        line-height: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    #menuS3e a:before {
        font-size: 0.75rem;
        margin-right: 0.25rem;
        top: -0.125rem;
    }
}

/* Shared Styles for Tablet and Mobile */
@media only screen and (max-width: 56.25rem) {
    #menuS3e ul li.school-item:hover,
    #menuS3e ul li.school-item.selected {
        background-color: white;
    }

    #menuS3e a:hover, #menuS3e ul li.selected a {
        color: black;
    }

    #menuS3e ul li.home-item a:before {
        color: #28ace1;
    }

    #menuS3e ul li.students-item a:before {
        color: #f29132;
    }

    #menuS3e ul li.sponsors-item a:before {
        color: #ea5425;
    }

    #menuS3e ul li.parents-item a:after {
        color: #6b991d;
    }

    #menuS3e ul li.school-item a:before {
        color: #48ad3c;
    }

    #menuS3e ul li:hover a:after,
    #menuS3e ul li.selected a:after {
        color: #ffffff;
    }

    /*** Menu Filter ***/
    #menuFilter {
        height: 2.375rem;
    }

    #menuFilter ul li a {
        color: #000000;
    }

    #menuFilter .ui-tabs-panels {
        border: 1px solid #a8a8a8;
    }

    #menuFilter .ui-tab {
        border: none;
    }

    #menuFilter .ui-widget-content {
        border: none;
    }
}

/* Tablet (min-width: 600px and max-width: 900px) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    #bottom {
        width: 58.75rem;
        padding: 1.875rem 0;
    }

    .footerImages img:last-child {
        padding-right: 0.625rem;
    }

    .footerImages img {
        padding-left: 1.5625rem;
    }

    .footerText {
        line-height: 1.0625rem;
        margin-top: 0.625rem;
        width: 75%;
    }

    #footer-menu {
        padding-top: 0.75rem;
        height: 1.5625rem;
    }

    .footerLeft {
        width: 20%;
        margin-left: 7.5%;
    }

    .footerRight {
        top: -3.75rem;
        width: 30%;
        margin-right: 5%;
    }

    p.footerRight img, p.footerLeft img {
        max-width: 7.5rem;
    }

    .form-terms-of-use, .required-field {
        font-size: 1.125rem;
    }

    .terms-of-use-link {
        font-size: inherit;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    #bottom {
        width: 35rem;
        padding: 1.5rem 0;
    }

    .footerImages img:last-child {
        padding-right: 0.5rem;
    }

    .footerImages img {
        padding-left: 1.25rem;
    }

    .footerText {
        line-height: 1rem;
        margin-top: 0.5rem;
        width: 90%;
    }

    #footer-menu {
        padding-top: 0.625rem;
        height: 1.25rem;
    }

    .footerLeft {
        width: 30%;
        margin-left: 5%;
    }

    .footerRight {
        top: -3.75rem;
        width: 40%;
        margin-right: 5%;
    }

    p.footerRight img, p.footerLeft img {
        max-width: 6rem;
    }

    .form-terms-of-use, .required-field {
        font-size: 1rem;
    }

    .terms-of-use-link {
        font-size: inherit;
    }
}
/* Tablet (min-width: 600px and max-width: 900px) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    .epi {
        font-size: 0.875rem; /* Smaller font size */
    }

    #content-wrapperS3e {
      /*  padding: 1.875rem 0;*/
    }

    .sidemenu {
        width: 12.5rem;
        padding: 0 0.3125rem 0.3125rem;
    }

    #sidemenu h2:last-of-type {
        padding-top: 1.875rem;
    }

    #personalSpaceForm, #parentsSpaceForm, #schoolSpaceForm, #sponsorSpaceForm {
        margin-bottom: 0.3125rem;
    }

    #sponsorSpaceForm {
        margin-right: 5.8125rem;
    }

    .space-menu {
        padding: 0.625rem 0.9375rem 0.9375rem;
    }

    #searchFormS3e .ui-inputfield {
        height: 1.25rem;
        width: 9.0625rem;
    }

    #courseForm .ui-inputfield {
        height: 1.25rem;
        padding: 0.5rem 0.25rem 0.3125rem;
    }

    .links {
        padding: 0.625rem 0.625rem 3.125rem;
        margin-right: 1.25rem;
        width: 10.3125rem;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    .epi {
        font-size: 0.75rem; /* Even smaller font size for mobile */
    }

    #content-wrapperS3e {
        /*padding: 1.5rem 0;*/
    }

    .sidemenu {
        width: 10rem;
        padding: 0 0.25rem 0.25rem;
    }

    #sidemenu h2:last-of-type {
        padding-top: 1.5rem;
    }

    #personalSpaceForm, #parentsSpaceForm, #schoolSpaceForm, #sponsorSpaceForm {
        margin-bottom: 0.3125rem;
    }

    #sponsorSpaceForm {
        margin-right: 3.75rem;
    }

    .space-menu {
        padding: 0.625rem 0.625rem 0.9375rem;
    }

    #searchFormS3e .ui-inputfield {
        height: 1.25rem;
        width: 7.5rem;
    }

    #courseForm .ui-inputfield {
        height: 1.25rem;
        padding: 0.5rem 0.25rem 0.3125rem;
    }

    .links {
        padding: 0.625rem 0.625rem 3.125rem;
        margin-right: 1.25rem;
        width: 8.75rem;
    }
    
    .trombine-col {
        margin-left:0px !important;
    }
}
/* Tablet (min-width: 600px and max-width: 900px) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    .links ul li {
        padding-bottom: 0.375rem;
    }

    .links a {
        font-size: 1.3rem;
        padding: 0.3125rem 0;
    }

    .links img {
        padding-top: 0.625rem;
        width: 11.25rem;
        height: 3.125rem;
        transform: translate(-2.1875rem, 0);
    }

    #content-topS3e {
        /*min-height: 4.6875rem;*/
    }

    #content {
        min-height: 21.875rem;
    }

    .course-steps {
        margin-bottom: 0.625rem;
    }

    .course-steps ul li {
        padding: 0.9375rem;
        max-width: 6.25rem;
    }

    .home-content .text {
        margin-right: 0.625rem;
        width: 42.1875rem;
    }

    .home-content .text p:not(:first-of-type) {
        margin-top: 1.25rem;
    }

    #adminSpaceForm .announcements-table thead tr[role="row"] span:not(.ui-icon) {
        font-size: 0.875rem;
    }

    .announcements-table .content-column {
        font-size: 1.3rem;
    }

    .announcements-table .image-column {
        width: 6.25rem;
    }

    .announcements-table .image-column img {
        max-width: 4.6875rem;
        max-height: 4.6875rem;
        padding-left: 0.9375rem;
        padding-right: 0.625rem;
    }

    #adminSpaceForm .ui-datatable td.action-announcement {
        width: 3.75rem;
        height: 1.25rem;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    .links ul li {
        padding-bottom: 0.3125rem;
    }

    .links a {
        font-size: 1.2rem;
        padding: 0.3125rem 0;
    }

    .links img {
        padding-top: 0.625rem;
        width: 10rem;
        height: 2.5rem;
        transform: translate(-2.1875rem, 0);
    }

    #content-topS3e {
        /*min-height: 4.6875rem;*/
    }

    #content {
        min-height: 21.875rem;
    }

    .course-steps {
        margin-bottom: 0.625rem;
    }

    .course-steps ul li {
        padding: 0.75rem;
        max-width: 5rem;
    }

    .home-content .text {
        margin-right: 0.625rem;
        width: 100%;
    }

    .home-content .text p:not(:first-of-type) {
        margin-top: 1.25rem;
    }

    #adminSpaceForm .announcements-table thead tr[role="row"] span:not(.ui-icon) {
        font-size: 0.8125rem;
    }

    .announcements-table .content-column {
        font-size: 1.2rem;
    }

    .announcements-table .image-column {
        width: 5rem;
    }

    .announcements-table .image-column img {
        max-width: 3.75rem;
        max-height: 3.75rem;
        padding-left: 0.9375rem;
        padding-right: 0.625rem;
    }

    #adminSpaceForm .ui-datatable td.action-announcement {
        width: 3rem;
        height: 1.25rem;
    }
}
/* Tablet (min-width: 600px and max-width: 900px) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    #adminSpaceForm .ui-datatable td.action-announcement .action-link-delete,
    #adminSpaceForm .ui-datatable td.action-announcement .action-link-edit {
        width: 1.25rem;
        height: 1.25rem;
        margin-left: 0.3125rem;
    }

    #adminSpaceForm label {
        margin-top: 1.25rem;
        font-size: 1rem;
    }

    .request-form label,
    .request-form .ui-widget label {
        font-size: 0.5625rem;
    }

    .request-form button {
        margin-top: 0.3125rem;
        margin-bottom: 0.3125rem;
    }

    .request-form p.date input {
        width: 12.25rem;
    }

    .course-detail.label:not(:first-child),
    .candidature-detail.label:not(:first-child) {
        margin-top: 1.25rem;
    }

    img.candidature-detail.content.logo {
        max-width: 12.5rem;
    }

    img.course-detail.content.logo {
        max-width: 6.25rem;
    }

    p.logo,
    p.funding {
        width: 21.875rem;
    }

    .fundingCol {
        width: 1.25rem;
    }

    p.attachment {
        width: 31.25rem;
    }

    p.logo-attachment {
        padding-left: 1.5rem;
    }
}

/* Mobile (max-width: 600px) */
@media only screen and (max-width: 37.5rem) {
    #adminSpaceForm .ui-datatable td.action-announcement .action-link-delete,
    #adminSpaceForm .ui-datatable td.action-announcement .action-link-edit {
        width: 1rem;
        height: 1rem;
        margin-left: 0.25rem;
    }

    #adminSpaceForm label {
        margin-top: 1rem;
        font-size: 0.875rem;
    }

    .request-form label,
    .request-form .ui-widget label {
        font-size: 1rem;
    }

    .request-form button {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .request-form p.date input {
        width: 11.25rem;
    }

    .course-detail.label:not(:first-child),
    .candidature-detail.label:not(:first-child) {
        margin-top: 1rem;
    }

    img.candidature-detail.content.logo {
        max-width: 10rem;
    }

    img.course-detail.content.logo {
        max-width: 5rem;
    }

    p.logo,
    p.funding {
        width: 18.75rem;
    }

    .fundingCol {
        width: 1rem;
    }

    p.attachment {
        width: 28.125rem;
    }

    p.logo-attachment {
        padding-left: 1.25rem;
    }
}

/* Tablet Media Query */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    #adminSpaceForm .request-form p.logo label,
    #adminSpaceForm p.logo label,
    .request-form p.logo label {
        font-size: 1.125rem; /* 1.2em converted to rem, assuming base font size is 16px */
        min-width: 21.625rem; /* 346px converted to rem */
    }

    .form-side .ui-fileupload {
        font-size: 0.875rem; /* 0.9em converted to rem */
    }

    .file-delete,
    .delete-funding-field,
    .add-funding-field {
        width: 1.9375rem; /* 31px converted to rem */
        height: 1.625rem; /* 26px converted to rem */
        margin-top: 1.875rem; /* 30px converted to rem */
    }
}

/* Mobile Media Query */
@media only screen and (max-width: 37.5rem) {
    #adminSpaceForm .request-form p.logo label,
    #adminSpaceForm p.logo label,
    .request-form p.logo label {
        font-size: 1rem; /* 1.2em converted to rem, assuming base font size is 16px */
        min-width: 21.625rem; /* 346px converted to rem */
    }

    .form-side .ui-fileupload {
        font-size: 0.75rem; /* 0.9em converted to rem */
    }

    .file-delete,
    .delete-funding-field,
    .add-funding-field {
        width: 1.9375rem; /* 31px converted to rem */
        height: 1.625rem; /* 26px converted to rem */
        margin-top: 1.875rem; /* 30px converted to rem */
    }
}



/* Tablet Screen (max-width: 48rem) */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    .links ul li:before {
        content: "• ";
    }

    .links ul li {
        padding-bottom: 0.375rem;
    }

    .links a {
        line-height: 1.5em;
        padding: 0.3125rem 0;
        font-size: 1.3em;
        color: rgb(70, 70, 70);
        text-decoration: underline;
    }

    .links img {
        padding-top: 0.625rem;
        width: 11.25rem;
        height: 3.125rem;
        transform: translate(-2.1875rem, 0);
    }

    .w700 {
        /*width: 700px;*/
    }

    #content-topS3e {
        /*min-height: 4.6875rem;*/
    }

    #content {
        background-color: #fff;
        min-height: 21.875rem;
        margin-top: 0;
    }

    .course-steps {
        border-top: 0.3125rem solid #D7215F;
        margin-bottom: 0.625rem;
        text-align: center;
        background-color: rgb(237, 237, 237);
        color: rgb(147, 147, 147);
    }

    .course-steps ul li {
        padding: 0.9375rem;
        max-width: 6.25rem;
        vertical-align: middle;
    }

    .course-steps .smaller {
        text-transform: none;
    }

    .home-content .text {
        text-align: justify;
        margin-right: 0.625rem;
        width: 42.1875rem;
    }

    .home-content .text p:not(:first-of-type) {
        margin-top: 1.25rem;
    }

    #adminSpaceForm .announcements-table thead tr[role="row"] span:not(.ui-icon){
        font-size: 14pt;
        text-align: center;
    }

    .announcements-table .content-column {
        font-family: Roboto, sans-serif;
        font-size: 1.3em;
    }

    .announcements-table .image-column {
        text-align: center;
        vertical-align: middle;
        width: 6.25rem;
    }

    .announcements-table .image-column img {
        max-width: 4.6875rem;
        max-height: 4.6875rem;
        padding-left: 0.9375rem;
        padding-right: 0.625rem;
    }

    #adminSpaceForm .ui-datatable td.action-announcement {
        width: 3.75rem;
        height: 1.25rem;
        text-align: center;
        vertical-align: middle;
    }
}

/* Mobile Screen (max-width: 480px) */
@media only screen and (max-width: 37.5rem) {
    .links ul li:before {
        content: "• ";
    }

    .links ul li {
        padding-bottom: 0.375rem;
    }

    .links a {
        line-height: 1.5em;
        padding: 0.3125rem 0;
        font-size: 1.3em;
        color: rgb(70, 70, 70);
        text-decoration: underline;
    }

    .links img {
        padding-top: 0.625rem;
        width: 11.25rem;
        height: 3.125rem;
        transform: translate(-2.1875rem, 0);
    }

    .w700 {
        /*width: 700px;*/
    }

    #content-topS3e {
        /*min-height: 4.6875rem;*/
    }

    #content {
        background-color: #fff;
        min-height: 21.875rem;
        margin-top: 0;
    }

    .course-steps {
        border-top: 0.3125rem solid #D7215F;
        margin-bottom: 0.625rem;
        text-align: center;
        background-color: rgb(237, 237, 237);
        color: rgb(147, 147, 147);
    }

    .course-steps ul li {
        padding: 0.9375rem;
        max-width: 6.25rem;
        vertical-align: middle;
    }

    .course-steps .smaller {
        text-transform: none;
    }

    .home-content .text {
        text-align: justify;
        margin-right: 0.625rem;
        width: 42.1875rem;
    }

    .home-content .text p:not(:first-of-type) {
        margin-top: 1.25rem;
    }

    #adminSpaceForm .announcements-table thead tr[role="row"] span:not(.ui-icon){
        font-size: 14pt;
        text-align: center;
    }

    .announcements-table .content-column {
        font-family: Roboto, sans-serif;
        font-size: 1.3em;
    }

    .announcements-table .image-column {
        text-align: center;
        vertical-align: middle;
        width: 6.25rem;
    }

    .announcements-table .image-column img {
        max-width: 4.6875rem;
        max-height: 4.6875rem;
        padding-left: 0.9375rem;
        padding-right: 0.625rem;
    }

    #adminSpaceForm .ui-datatable td.action-announcement {
        width: 3.75rem;
        height: 1.25rem;
        text-align: center;
        vertical-align: middle;
    }
}




/* Tablet Media Query */
@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    .form-side.form-bottom {
        width: 100%;
        margin-top: 2rem;
        margin-right: 0.1875rem;
        float: right;
    }

    .form-terms-of-use, .required-field {
        width: 100%;
        margin-top: 1.875rem;
        margin-left: 0.125rem;
        float: right;
    }

    .form-bottom {
        width: 53.75rem;
        margin-top: 1.25rem;
        margin-right: 0.625rem;
        float: right;
    }

    .form-bottom-sponsor {
        display: inline-block;
    }

    .required-field {
        font-family: Roboto, sans-serif;
        font-size: 1.125rem;
        width: 100%;
        margin-top: 1.875rem;
        margin-left: 0.125rem;
        float: right;
    }

    .ui-editor.ui-widget-content {
        width: 26.5625rem !important;
    }

    .request-form input,
    .request-form textarea {
        margin: 0.3125rem 0;
        width: 26.0625rem;
    }

    .request-form select {
        width: 26.6875rem;
    }

    #adminSpaceForm.request-form  select {
        width: 12.5rem;
        margin-left: 1.25rem;
    }

    .form-left {
        float: left;
    }

    .form-right {
        float: right;
    }

    .form-vertical-align {
        margin-top: 2.625rem;
    }

    .ui-corner-all {
        border-radius: 0;
    }

    input::-webkit-input-placeholder {
        color: #999;
    }
    input:-moz-placeholder {
        color: #999;
    }
    input:-ms-input-placeholder {
        color: #999;
    }

    textarea::-webkit-input-placeholder {
        color: #999;
    }
    textarea:-moz-placeholder {
        color: #999;
    }
    textarea:-ms-input-placeholder {
        color: #999;
    }

    .form-side h2 {
        text-transform: uppercase;
        font-family: Roboto, sans-serif;
        font-size: 1.0625rem;
        font-weight: 100;
    }

    .form-img {
        float: left;
        margin-right: 0.625rem;
    }

    .form-title:not(:first-of-type) {
        margin-top: 1.875rem;
    }

    .request-form .form-option label {
        margin-top: 0.625rem;
        font-size: 0.75rem;
    }

    #companyType {
        width: 9.6875rem;
    }

    #optionActionCompany {
        margin-bottom: 3.125rem;
    }

    .contact-gender label,
    #createOrSelectCompany label {
        color: #0047a3;
    }

    .request-form .company-siret,
    .request-form .contact-lastname,
    #lastnameReferent,
    .request-form .lastname-referent {
        width: 12.4375rem;
        margin-right: 0.625rem;
    }

    .request-form .company-naf,
    .request-form .contact-firstname,
    #firstnameReferent,
    .request-form .firstname-referent {
        width: 12.375rem;
    }

    .request-form .company-zipcode {
        width: 5rem;
        margin-right: 0.625rem;
    }

    .request-form .company-city {
        width: 19.8125rem;
    }

    #companyPhonenumber {
        width: 6.125rem;
    }

    .request-form .candidature-delay {
        width: 5.625rem;
    }

    .form-img-tel {
        margin-right: 0.4375rem;
    }

    .form-img-googlemap {
        float: right;
        margin-right: 8.75rem;
    }

    .label-name-contact {
        width: 13.75rem;
    }

    .label-fname-contact {
        width: 12.5rem;
    }

    .request-form p.date label {
        width: 13.125rem;
    }

    p.date {
        display: inline-block;
        width: 13.125rem;
    }

    .request-form .period-table.ui-datatable-scrollable .ui-datatable-scrollable-header table,
    .request-form .period-table.ui-datatable-scrollable .ui-datatable-scrollable-body table,
    .request-form .period-table.ui-datatable-scrollable .ui-datatable-scrollable-footer table {
        width: 100%;
    }

    .request-form .period-table .ui-datatable-scrollable-body > table > tbody > tr > td > div.ui-dt-c {
        padding: 0.125rem 0.3125rem;
    }

    .hide-column-names table thead tr {
        display: none;
    }

    .period-detail .ui-spinner {
        margin: 0.3125rem 1.25rem 0 0;
        vertical-align: top;
    }

    .period-detail input.ui-spinner-input {
        width: 4.375rem;
        margin: 0;
        padding-right: 1.5rem;
    }

    .request-form .period-table input.ui-spinner-input {
        width: 1.875rem;
        margin: 0;
    }

    .request-form .period-detail-panel {
        width: 34.375rem;
        height: 15.625rem;
        overflow-y: scroll;
    }

    .request-form .period-detail-panel label {
        margin-bottom: 0.9375rem;
        margin-top: 1.25rem;
        font-family: Roboto, sans-serif;
        font-size: 1rem;
        display: inline-block;
    }

    a.ui-spinner-button {
        height: 46%;
    }

    #searchFormS3e.search-box > a.ui-commandlink {
        background-image: url("../../resources/images/s3e/btn-recherche.png");
        background-size: 100% 100%;
        float: left;
        height: 1.875rem;
        width: 1.875rem;
    }

    #searchFormS3e.search-box > a.ui-commandlink:hover {
        background-image: url("../../resources/images/s3e/btn-recherche-hover.png");
        background-size: 100% 100%;
        float: left;
        height: 1.875rem;
        width: 1.875rem;
    }

    .ui-dialog .action-buttons > button,
    .action-buttons > button,
    .action-buttons > button.ui-state-default {
        color: #ffffff;
        font-family: Roboto, sans-serif;
        font-weight: 100;
        font-size: 0.875rem !important;
        text-transform: uppercase;
        min-width: 8.75rem;
        box-shadow: none;
        text-shadow: none;
    }

    .action-buttons {
        margin: 1.25rem 0;
    }

    .action-buttons button:first-of-type {
        float: left;
    }

    .action-buttons button:not(:first-of-type) {
        /*float: right;*/
    }

    .action-buttons button:not(:last-of-type) {
        margin-right: 1.875rem;
    }

    .action-buttons > button > span.ui-button-text {
        /*border: white solid 3px;*/
        padding: 0 1.25rem;
    }

    .sponsor-content .action-buttons > button,
    .action-buttons.sponsor-ab-color > button,
    .action-buttons.company-ab-color > button,
    .home-content #home-form .action-buttons > button:last-of-type { /*.action-buttons.purple */
        /*border: #90419a solid 1px;*/
        background: #0047a3;
        min-width: 11.5625rem;
        white-space: pre;
        background-image: url(../../resources/images/s3e/icon_home2.png);
        background-repeat: no-repeat;
        background-size: 20%;
        background-position: 90px 90px;
    }

    .sponsor-space .action-buttons > button.ui-state-hover,
    .action-buttons.sponsor-ab-color > button.ui-state-hover,
    .action-buttons.company-ab-color > button.ui-state-hover,
    .home-content #home-form .action-buttons > button:last-of-type.ui-state-hover { /*.action-buttons.purple */
        border: #0047a3 solid 3px;
        background: #ffffff;
        color: #0047a3;
        background-image: url(../../resources/images/s3e/icon_home2.png);
        background-repeat: no-repeat;
        background-size: 20%;
        background-position: 90px 90px;
    }

    .sponsor-content .action-buttons > button.ui-state-hover > .ui-button-text,
    .action-buttons.sponsor-ab-color > button.ui-state-hover > .ui-button-text,
    .action-buttons.company-ab-color > button.ui-state-hover > .ui-button-text,
    .home-content #home-form .action-buttons > button:last-of-type.ui-state-hover > .ui-button-text { /*.action-buttons.purple */
        /*border: #ea5425 solid 3px;*/
    }

    .students-space .action-buttons > button,
    .home-content #home-form .action-buttons > button:first-of-type,
    .action-buttons.orange > button,
    .action-buttons > button:first-of-type { /*.action-buttons.orange */
        background: #f39834;
        min-width: 11.5625rem;
    }

    .students-space .action-buttons > button.ui-state-hover,
    .home-content #home-form .action-buttons > button:first-of-type.ui-state-hover,
    .action-buttons.orange > button.ui-state-hover,
    .action-buttons > button:first-of-type.ui-state-hover { /*.action-buttons.orange */
        border: #f39834 solid 3px;
        background: #ffffff;
        color: #f39834;
    }

    .p-fluid label {
        float: left;
        padding: 0 1.25rem 0 0;
        text-align: right;
    }
}

/* Mobile Media Query */
@media only screen and (max-width: 37.5rem) {
    .form-side.form-bottom {
        width: 100%;
        margin-top: 1.25rem;
        margin-right: 0.1875rem;
        float: right;
    }

    .form-terms-of-use, .required-field {
        width: 100%;
        margin-top: 1.25rem;
        margin-left: 0.125rem;
        float: right;
    }

    .form-bottom {
        width: 50.625rem;
        margin-top: 1.25rem;
        margin-right: 0.625rem;
        float: right;
    }

    .form-bottom-sponsor {
        display: inline-block;
    }

    .required-field {
        font-family: Roboto, sans-serif;
        font-size: 1rem;
        width: 100%;
        margin-top: 1.25rem;
        margin-left: 0.125rem;
        float: right;
    }

    .ui-editor.ui-widget-content {
        width: 26.5625rem !important;
    }

    .request-form input,
    .request-form textarea {
        margin: 0.3125rem 0;
        width: 26.0625rem;
    }

    .request-form select {
        width: 26.6875rem;
    }

    #adminSpaceForm.request-form  select {
        width: 12.5rem;
        margin-left: 1.25rem;
    }

    .form-left {
        float: left;
    }

    .form-right {
        float: right;
    }

    .form-vertical-align {
        margin-top: 2.625rem;
    }

    .ui-corner-all {
        border-radius: 0;
    }

    input::-webkit-input-placeholder {
        color: #999;
    }
    input:-moz-placeholder {
        color: #999;
    }
    input:-ms-input-placeholder {
        color: #999;
    }

    textarea::-webkit-input-placeholder {
        color: #999;
    }
    textarea:-moz-placeholder {
        color: #999;
    }
    textarea:-ms-input-placeholder {
        color: #999;
    }

    .form-side h2 {
        text-transform: uppercase;
        font-family: Roboto, sans-serif;
        font-size: 1rem;
        font-weight: 100;
    }

    .form-img {
        float: left;
        margin-right: 0.625rem;
    }

    .form-title:not(:first-of-type) {
        margin-top: 1.25rem;
    }

    .request-form .form-option label {
        margin-top: 0.625rem;
        font-size: 0.75rem;
    }

    #companyType {
        width: 9.6875rem;
    }

    #optionActionCompany {
        margin-bottom: 3.125rem;
    }

    .contact-gender label,
    #createOrSelectCompany label {
        color: #0047a3;
    }

    .request-form .company-siret,
    .request-form .contact-lastname,
    #lastnameReferent,
    .request-form .lastname-referent {
        width: 12.4375rem;
        margin-right: 0.625rem;
    }

    .request-form .company-zipcode {
        width: 5rem;
        margin-right: 0.625rem;
    }

    .request-form .company-city {
        width: 19.8125rem;
    }

    #companyPhonenumber {
        width: 6.125rem;
    }

    .request-form .candidature-delay {
        width: 5.625rem;
    }

    .form-img-tel {
        margin-right: 0.4375rem;
    }

    .form-img-googlemap {
        float: right;
        margin-right: 8.75rem;
    }

    .label-name-contact {
        width: 13.75rem;
    }

    .label-fname-contact {
        width: 12.5rem;
    }

    .request-form p.date label {
        width: 13.125rem;
    }

    p.date {
        display: inline-block;
        width: 13.125rem;
    }

    .request-form .period-table.ui-datatable-scrollable .ui-datatable-scrollable-header table,
    .request-form .period-table.ui-datatable-scrollable .ui-datatable-scrollable-body table,
    .request-form .period-table.ui-datatable-scrollable .ui-datatable-scrollable-footer table {
        width: 100%;
    }

    .request-form .period-table .ui-datatable-scrollable-body > table > tbody > tr > td > div.ui-dt-c {
        padding: 0.125rem 0.3125rem;
    }

    .hide-column-names table thead tr {
        display: none;
    }

    .period-detail .ui-spinner {
        margin: 0.3125rem 1.25rem 0 0;
        vertical-align: top;
    }

    .period-detail input.ui-spinner-input {
        width: 4.375rem;
        margin: 0;
        padding-right: 1.5rem;
    }

    .request-form .period-table input.ui-spinner-input {
        width: 1.875rem;
        margin: 0;
    }

    .request-form .period-detail-panel {
        width: 34.375rem;
        height: 15.625rem;
        overflow-y: scroll;
    }

    .request-form .period-detail-panel label {
        margin-bottom: 0.9375rem;
        margin-top: 1.25rem;
        font-family: Roboto, sans-serif;
        font-size: 1rem;
        display: inline-block;
    }

    a.ui-spinner-button {
        height: 46%;
    }

    #searchFormS3e.search-box > a.ui-commandlink {
        background-image: url("../../resources/images/s3e/btn-recherche.png");
        background-size: 100% 100%;
        float: left;
        height: 1.875rem;
        width: 1.875rem;
    }

    #searchFormS3e.search-box > a.ui-commandlink:hover {
        background-image: url("../../resources/images/s3e/btn-recherche-hover.png");
        background-size: 100% 100%;
        float: left;
        height: 1.875rem;
        width: 1.875rem;
    }

    .ui-dialog .action-buttons > button,
    .action-buttons > button,
    .action-buttons > button.ui-state-default {
        color: #ffffff;
        font-family: Roboto, sans-serif;
        font-weight: 100;
        font-size: 0.75rem !important;
        text-transform: uppercase;
        min-width: 8.75rem;
        box-shadow: none;
        text-shadow: none;
    }

    .action-buttons {
        margin: 1.25rem 0;
    }

    .action-buttons button:first-of-type {
        float: left;
    }

    .action-buttons button:not(:first-of-type) {
        /*float: right;*/
    }

    .action-buttons button:not(:last-of-type) {
        margin-right: 1.25rem;
    }

    .action-buttons > button > span.ui-button-text {
        /*border: white solid 3px;*/
        padding: 0 1.25rem;
    }

    .sponsor-content .action-buttons > button,
    .action-buttons.sponsor-ab-color > button,
    .action-buttons.company-ab-color > button,
    .home-content #home-form .action-buttons > button:last-of-type { /*.action-buttons.purple */
        /*border: #90419a solid 1px;*/
        background: #0047a3;
        min-width: 11.5625rem;
        white-space: pre;
        background-image: url(../../resources/images/s3e/icon_home2.png);
        background-repeat: no-repeat;
        background-size: 20%;
        background-position: 90px 90px;
    }

    .sponsor-space .action-buttons > button.ui-state-hover,
    .action-buttons.sponsor-ab-color > button.ui-state-hover,
    .action-buttons.company-ab-color > button.ui-state-hover,
    .home-content #home-form .action-buttons > button:last-of-type.ui-state-hover { /*.action-buttons.purple */
        border: #0047a3 solid 3px;
        background: #ffffff;
        color: #0047a3;
        background-image: url(../../resources/images/s3e/icon_home2.png);
        background-repeat: no-repeat;
        background-size: 20%;
        background-position: 90px 90px;
    }

    .sponsor-content .action-buttons > button.ui-state-hover > .ui-button-text,
    .action-buttons.sponsor-ab-color > button.ui-state-hover > .ui-button-text,
    .action-buttons.company-ab-color > button.ui-state-hover > .ui-button-text,
    .home-content #home-form .action-buttons > button:last-of-type.ui-state-hover > .ui-button-text { /*.action-buttons.purple */
        /*border: #ea5425 solid 3px;*/
    }

    .students-space .action-buttons > button,
    .home-content #home-form .action-buttons > button:first-of-type,
    .action-buttons.orange > button,
    .action-buttons > button:first-of-type { /*.action-buttons.orange */
        background: #f39834;
        min-width: 11.5625rem;
    }

    .students-space .action-buttons > button.ui-state-hover,
    .home-content #home-form .action-buttons > button:first-of-type.ui-state-hover,
    .action-buttons.orange > button.ui-state-hover,
    .action-buttons > button:first-of-type.ui-state-hover { /*.action-buttons.orange */
        border: #f39834 solid 3px;
        background: #ffffff;
        color: #f39834;
    }

    .p-fluid label {
        float: left;
        padding: 0 1.25rem 0 0;
        text-align: right;
    }
}


@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    .custom-select select,
    #courseDataTable thead tr[role="row"] .course-status > select,
    #courseDataTable thead tr[role="row"] .course-prof-cat > select {
        font-size: 0.875rem; /* 14pt */
    }

    #city,
    #district,
    #school {
        width: 26.0625rem; /* 417px */
    }

    #email {
        margin-top: 0.9375rem; /* 15px */
    }

    .request-form .referent-email {
        margin-right: 0.3125rem; /* 5px */
        width: 19.0625rem; /* 305px */
    }

    #district {
        margin-left: 0.4375rem; /* 7px */
    }

    .custom-select:after,
    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        padding: 0 0.4375rem; /* 7px */
        font-size: 0.6rem; /* 60% of 1rem (16px) */
    }

    .custom-select.course-select.status-select,
    .custom-select.candidature-select.status-select {
        margin-top: 0.3125rem; /* 5px */
    }

    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        bottom: 0.4375rem; /* 7px */
        line-height: 1.5625rem; /* 25px */
        right: 1.5625rem; /* 25px */
    }

    .ui-datalist-content.ui-widget-content {
        border: none;
    }

    .ui-datalist .ui-paginator-bottom {
        margin-bottom: 1.25rem; /* 20px */
    }

    .list-box-c {
        margin-bottom: 0.625rem; /* 10px */
    }

    .list-item > .left .course-title,
    .list-item > .left .company-name {
        font-size: 0.75rem; /* 12pt */
    }
}

@media only screen and (max-width: 37.5rem) {
    .custom-select select,
    #courseDataTable thead tr[role="row"] .course-status > select,
    #courseDataTable thead tr[role="row"] .course-prof-cat > select {
        font-size: 0.875rem; /* 14pt */
    }

    #city,
    #district,
    #school {
        width: 26.0625rem; /* 417px */
    }

    #email {
        margin-top: 0.9375rem; /* 15px */
    }

    .request-form .referent-email {
        margin-right: 0.3125rem; /* 5px */
        width: 19.0625rem; /* 305px */
    }

    #district {
        margin-left: 0.4375rem; /* 7px */
    }

    .custom-select:after,
    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        padding: 0 0.4375rem; /* 7px */
        font-size: 0.6rem; /* 60% of 1rem (16px) */
    }

    .custom-select.course-select.status-select,
    .custom-select.candidature-select.status-select {
        margin-top: 0.3125rem; /* 5px */
    }

    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        bottom: 0.4375rem; /* 7px */
        line-height: 1.5625rem; /* 25px */
        right: 1.5625rem; /* 25px */
    }

    .ui-datalist-content.ui-widget-content {
        border: none;
    }

    .ui-datalist .ui-paginator-bottom {
        margin-bottom: 1.25rem; /* 20px */
    }

    .list-box-c {
        margin-bottom: 0.625rem; /* 10px */
    }

    .list-item > .left .course-title,
    .list-item > .left .company-name {
        font-size: 0.75rem; /* 12pt */
    }
}


@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    .custom-select select,
    #courseDataTable thead tr[role="row"] .course-status > select,
    #courseDataTable thead tr[role="row"] .course-prof-cat > select {
        font-size: 0.875rem; /* 14pt */
    }

    #city,
    #district,
    #school {
        width: 26.0625rem; /* 417px */
    }

    #email {
        margin-top: 0.9375rem; /* 15px */
    }

    .request-form .referent-email {
        margin-right: 0.3125rem; /* 5px */
        width: 19.0625rem; /* 305px */
    }

    #district {
        margin-left: 0.4375rem; /* 7px */
    }

    .custom-select:after,
    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        padding: 0 0.4375rem; /* 7px */
        font-size: 0.6rem; /* 60% of 1rem (16px) */
    }

    .custom-select.course-select.status-select,
    .custom-select.candidature-select.status-select {
        margin-top: 0.3125rem; /* 5px */
    }

    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        bottom: 0.4375rem; /* 7px */
        line-height: 1.5625rem; /* 25px */
        right: 1.5625rem; /* 25px */
    }

    .ui-datalist-content.ui-widget-content {
        border: none;
    }

    .ui-datalist .ui-paginator-bottom {
        margin-bottom: 1.25rem; /* 20px */
    }

    .list-box-c {
        margin-bottom: 0.625rem; /* 10px */
    }

    .list-item > .left .course-title,
    .list-item > .left .company-name {
        font-size: 0.75rem; /* 12pt */
    }

    .list-item > .left .company-city {
        margin-top: 0.1875rem; /* 3px */
        font-size: 0.5625rem; /* 9pt */
        font-style: italic;
    }

    .ui-datalist-content > .list-item > .right {
        font-size: 0.6875rem; /* 11pt */
    }

    .ui-datalist-content > .list-item > .left span:first-of-type {
        margin-top: 0.3125rem; /* 5px */
        font-size: 0.75rem; /* 12pt */
        font-weight: 600;
    }

    .ui-datalist-content > .list-item > .left span:not(:first-of-type) {
        margin-top: 0.1875rem; /* 3px */
        font-size: 0.5625rem; /* 9pt */
        font-style: italic;
    }

    .list-header > span {
        font-size: 1rem; /* 16pt */
    }

    .ui-datalist-content > .list-item > .left,
    .list-header > span.left {
        padding-left: 0.9375rem; /* 15px */
        width: 25.6875rem; /* 550px */
    }

    .course-filter {
        margin: 0 1.25rem 0.625rem 1.25rem; /* 20px 10px */
    }

    .course-filter > .left {
        padding-left: 0.9375rem; /* 15px */
    }

    .floating-box .leftL {
        float: left;
    }

    #candidatures-referent .ui-datalist-content > .list-item > .left,
    #company-courses .ui-datalist-content > .list-item > .left,
    #plateform-courses .ui-datalist-content > .list-item > .left,
    .list-header.referent > span.left,
    .company-courses-header .list-header.company > span.left,
    .plateform-courses-header .list-header.plateform > span.left {
        width: 25rem; /* 400px */
    }

    #candidatures-referent .ui-datalist-content > .list-item > .centerL,
    #company-courses .ui-datalist-content > .list-item > .centerL,
    #plateform-courses .ui-datalist-content > .list-item > .centerL,
    .list-header.referent > span.centerL,
    .company-courses-header .list-header.company > span.centerL,
    .plateform-courses-header .list-header.plateform > span.centerL {
        width: 9.375rem; /* 150px */
        float: left;
        text-align: center;
    }

    .list-header > span.center {
        width: 9.375rem; /* 150px */
        float: left;
        text-align: center;
    }

    .ui-datalist-content > .list-item > .center {
        width: 9.375rem; /* 150px */
        float: left;
        height: 2.3125rem; /* 37px */
        text-align: center;
    }

    .ui-datalist-content > .list-item > .right,
    .list-header > span.right {
        padding-right: 0.9375rem; /* 15px */
    }
}


@media only screen and (max-width: 37.5rem) {
    .custom-select select,
    #courseDataTable thead tr[role="row"] .course-status > select,
    #courseDataTable thead tr[role="row"] .course-prof-cat > select {
        font-size: 0.875rem; /* 14pt */
    }

    #city,
    #district,
    #school {
        width: 26.0625rem; /* 417px */
    }

    #email {
        margin-top: 0.9375rem; /* 15px */
    }

    .request-form .referent-email {
        margin-right: 0.3125rem; /* 5px */
        width: 19.0625rem; /* 305px */
    }

    #district {
        margin-left: 0.4375rem; /* 7px */
    }

    .custom-select:after,
    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        padding: 0 0.4375rem; /* 7px */
        font-size: 0.6rem; /* 60% of 1rem (16px) */
    }

    .custom-select.course-select.status-select,
    .custom-select.candidature-select.status-select {
        margin-top: 0.3125rem; /* 5px */
    }

    #courseDataTable thead tr[role="row"] .course-status > .ui-dt-c:after {
        bottom: 0.4375rem; /* 7px */
        line-height: 1.5625rem; /* 25px */
        right: 1.5625rem; /* 25px */
    }

    .ui-datalist-content.ui-widget-content {
        border: none;
    }

    .ui-datalist .ui-paginator-bottom {
        margin-bottom: 1.25rem; /* 20px */
    }

    .list-box-c {
        margin-bottom: 0.625rem; /* 10px */
    }

    .list-item > .left .course-title,
    .list-item > .left .company-name {
        font-size: 0.75rem; /* 12pt */
    }

    .list-item > .left .company-city {
        margin-top: 0.1875rem; /* 3px */
        font-size: 0.5625rem; /* 9pt */
        font-style: italic;
    }

    .ui-datalist-content > .list-item > .right {
        font-size: 0.6875rem; /* 11pt */
    }

    .ui-datalist-content > .list-item > .left span:first-of-type {
        margin-top: 0.3125rem; /* 5px */
        font-size: 0.75rem; /* 12pt */
        font-weight: 600;
    }

    .ui-datalist-content > .list-item > .left span:not(:first-of-type) {
        margin-top: 0.1875rem; /* 3px */
        font-size: 0.5625rem; /* 9pt */
        font-style: italic;
    }

    .list-header > span {
        font-size: 1rem; /* 16pt */
    }

    .ui-datalist-content > .list-item > .left,
    .list-header > span.left {
        padding-left: 0.9375rem; /* 15px */
        width: 25.6875rem; /* 550px */
    }

    .course-filter {
        margin: 0 1.25rem 0.625rem 1.25rem; /* 20px 10px */
    }

    .course-filter > .left {
        padding-left: 0.9375rem; /* 15px */
    }

    .floating-box .leftL {
        float: left;
    }

    #candidatures-referent .ui-datalist-content > .list-item > .left,
    #company-courses .ui-datalist-content > .list-item > .left,
    #plateform-courses .ui-datalist-content > .list-item > .left,
    .list-header.referent > span.left,
    .company-courses-header .list-header.company > span.left,
    .plateform-courses-header .list-header.plateform > span.left {
        width: 25rem; /* 400px */
    }

    #candidatures-referent .ui-datalist-content > .list-item > .centerL,
    #company-courses .ui-datalist-content > .list-item > .centerL,
    #plateform-courses .ui-datalist-content > .list-item > .centerL,
    .list-header.referent > span.centerL,
    .company-courses-header .list-header.company > span.centerL,
    .plateform-courses-header .list-header.plateform > span.centerL {
        width: 9.375rem; /* 150px */
        float: left;
        text-align: center;
    }

    .list-header > span.center {
        width: 9.375rem; /* 150px */
        float: left;
        text-align: center;
    }

    .ui-datalist-content > .list-item > .center {
        width: 9.375rem; /* 150px */
        float: left;
        height: 2.3125rem; /* 37px */
        text-align: center;
    }

    .ui-datalist-content > .list-item > .right,
    .list-header > span.right {
        padding-right: 0.9375rem; /* 15px */
    }
}







/*#topS3e.header {
    width: 100%;
    height: 10.2rem;
    margin: 0;
    background-color: #fff;
    background-image: url(../../resources/images/s3e/background-chateau.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}*/

.flex {
    display: flex;
    flex-wrap: wrap;
}

.form-side {
    width: 50%;
    box-sizing: border-box;
}

/*.form-side-l55 {
    width: 55%;
    box-sizing: border-box;
}

.form-side-r40 {
    width: 40%;
    box-sizing: border-box;
}*/


.form-right {
    /*margin-left: auto;*/
}

@media screen and (max-width: 48rem) {
    .form-side{
        width: 90%; /* Full width on small screens */
        margin-left: 5%;
        margin-right:5%;
    }
    }
    
    
/* Default styles for Desktop */
.div1 {
  width: 40% !important;
}

.div2 {
  width: 60%;
}

.div22 {
  flex:auto;
}

.div1_show {
  width: 28%;
}

.div2_show {
  width: 66%;
}

@media (max-width: 64rem) {
  .div1_show , .div2_show,.column-1,.column-2 {
    width: 100%;
  }
}


@media (max-width: 48rem) {
  .div1_show , .div2_show,.column-1,.column-2 {
    width: 100% !important;
  }
}

@media (max-width: 48rem) {
  .div1, .div2 {
    width: 50%;
  }
}


@media (max-width: 30rem) {
  .div1, .div2  {
    width: 100%;
  }
}

    .icon-text {
        display: flex; /* Align items side by side */
        align-items: center; /* Vertically center items */
    }

    .icon-text i {
        font-size: 1.5em;
    }

    .icon-text h5 {
        margin-left: 10px; /* Space between icon and text */
        margin-bottom: 0; /* Remove default margin */
        font-size: 1.2em; /* Adjust text size */
    }
    
@media (max-width: 48rem) {
    .icon-text h5 {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.og-color{
    
   color: #2659B5;
}

.bg-og-color{
    background-color:#2659B5 !important; 
}

.custom-fieldset legend {
    background: #2659B5 !important;
    color: white !important;
    padding: 5px;
    border-radius: 4px;
}

.custom-fieldset .ui-panel-titlebar {
    background: #2659B5 !important;
    color: white !important;
    padding: 5px;
    border-radius: 4px;
}

    
    .logo3 {
        position: relative;
   
        /*padding: 5px; Add some padding around the logo */
    }
    
    .logo3 img {
        max-width: 10rem;
        /*margin-bottom:1rem;*/
        /*box-shadow: 0 1px 4px lightgray;*/
        /*margin-right: 1rem;*/
        object-fit:contain;
    }
    
    .flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.column-1 {
  flex: 2 1 50% !important;
  margin-right:3rem;
}

.column-2 {
  flex: 1 1 14%;
}

/* Responsive adjustments */
@media (max-width: 48rem) {
  .column-1,
  .column-2 {
    flex: 0 0 fit-content; /* 100% width for smaller screens */
    margin-left:0px !important; 
    margin-right:0px !important;
  }
 .home_screen_panel{    
  height: auto;
} 
  
}

.home_screen_panel{    
  max-height: 70vmin;
}

/*********************************do not touch***************************************************/



.logoimg {
    width: 4.6875rem; 
    height: 3.125rem;
    float: left;
    margin-top: 0.625rem;
    margin-left: 2.5rem;
}

img#centered_header_logo{
    width: auto;
    margin-top: 1.2rem;
    height: 6rem;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
}

body .alignthatleft{
    display: block;
    position: absolute;
    top: 1rem;
    left: 1rem;
    /*height: 3.25rem;*/
    height:5rem;
    width: auto;
    border-radius:4px;
}

.leftalignheader {
    float: left;
}

.rightalignheader {
    float: right;
    background-color: #e7eaf2;
    border-radius: 0.25rem;
    line-height: 2.188rem;
    text-align: center !important;
    padding-right: 0.625rem;
    padding-left: 0.625rem;
    margin-top: 1.125rem; 
    margin-right: 2.5rem; 
}

#user-button-header{
    background: none;
    padding-right: 0px;
    margin-right: 0px;
    color: white;
}

#top-menubuttonS3e_menu {
    border: none;
    background: lightgray;
}

#top-menubuttonS3e_menu a {
    color: white;
    font-size: 1em;
    font-family: RobotoRegular, sans-serif;
}

#top-menubuttonS3e_menu .ui-state-hover {
    background: #ea5425;
    box-shadow: none;
}


#topS3e .top-username {
    font-size: 1.125rem;
}

#topS3e .top-username button {
    font: inherit;
    background: none !important;
    color: inherit;
    text-shadow: inherit;
    border: none;
    box-shadow: none;
    height: 2.375rem;
}

#topS3e .top-username .ui-button .ui-button-text {
    display: initial;
    text-decoration: underline;
}

#topS3e .top-username button.ui-state-focus,
#topS3e .top-username button.ui-state-hover {
    outline: none;
}

body .DesktopMenu{
        display: block !important;
}
    
 .Menu-Mobile-box span[rendered="false"]{
    display: none;
}

.Menu-Mobile-box span[rendered="true"] *:before{
    margin-right: 0px !important;
}

#bienvenue-ode-img-mobile,.other-image{
    height: 2.5rem !important;
    display: block;
    margin: auto;
    cursor: pointer;
    pointer-events: all;
/*    pointer-events: none !important;*/
}

body img.other-image{
    margin-left: 3px !important;
    height: 2.222rem !important;
}

.newcourse-fg-color {
    color: #0047a3 !important;
}

h1{
    font-size: 1.8em;
    padding-bottom: 10px;
    font-family: Roboto, sans-serif;
    font-weight: 500;
}

.expired {
    color: #707070;
    font-size: 13pt;
}

.home-fg-color, 
#content-topS3e .home-fg-color{
    color: #1b50b1;
}

body .ui-button .ui-icon-triangle-1-s:before {
    content: "";
}

    .product-item .product-item-content {
        border: 2px solid var(--surface-d);
        border-radius: 3px;
        margin: .3rem;
        text-align: center;
        padding: 2rem 0;
    }

    .product-item .product-image {
        width: 50%;
        height: 10rem;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)
    }
    
/*    .carousel-button2{
    font-weight: 600 !important;
    border-radius: .83rem/50%;
    color: white;
    display: inline-block;
    line-height: unset !important;
    padding: .38rem .52rem !important;
    text-align: center;
    margin: .5rem auto;
    font-size: .4rem !important;
}

#menuS3e .selected_tab {
    background-color: white !important;
    color:black !important;
    border-radius: 4px;
    
    
}

#menuS3e ul .ui-menubutton.ui-widget.selected_tab span{
    background-color: white !important;
    color:black !important;
    border-radius: 4px;
    
}*/


    .carousel-button2{
    font-weight: 500 !important;
    border-radius: 12px;
    color: white;
    display: inline-block;
    line-height: unset !important;
    padding: .4rem .7rem !important;
    text-align: center;
    margin: .5rem auto;
    font-size: .8rem !important;
}





#menuS3e .selected_tab {
    /*padding: 0 !important;*/
    background-color: #ffffff3d !important;
    color: white !important;
    border-radius: 4px;
    
    
}

#menuS3e ul .ui-menubutton.ui-widget.selected_tab span{
    /*background-color: white !important;*/
    /*color:black !important;*/
    border-radius: 4px;
    
}



.course-type2 {
    font-size: 0.65rem; /* Converted to rem */
    font-weight: bold;
    float: left;
    margin: 1rem 0.625rem 0.313rem 0.625rem; /* Converted to rem */
}

.bg-g-green{
    /*background-color: green !important;*/
    background: #2196F3;
    color: #ffffff;
}

#accordion {
 font-family:Roboto !important;
 font-size:0.95rem !important;       
}

.search-input{
    font-size:0.8rem !important;
}

.roboto {
    
    font-family: Roboto ;
}

.text-black{
    color:black;
}

.ui-sortable-column-icon {
    color: #1767c2 !important;
}

.custom-blue-stars .ui-rating-star {
    color: blue; 
}

.custom-blue-stars .ui-rating-star-on {
    color: blue; 
}

.custom-blue-stars .ui-rating-star-off {
    color: lightblue;
}

body {
    font-family: 'Roboto', sans-serif !important;
}


/*body, .ui-widget {
    font-family: 'Roboto', sans-serif !important;
}*/

.new_list_grid_custom_css{
    
    width:100%;
    height:14rem; 
    border: 1px solid #dee2e6;    
}


@media only screen and (min-width: 37.5rem) and (max-width: 56.25rem) {
    
 .new_list_grid_custom_css{
    
    width:100%;
    height:10rem; 
    border: 1px solid #dee2e6;    
}

div#panel-buttons2 button{
    width: 50%;
}
    
}

@media only screen and (max-width: 37.5rem) {
 
    .new_list_grid_custom_css{
    
    width:100% !important;
    height:8rem; 
    border: 1px solid #dee2e6;    
}

div#panel-buttons2 button{
    width: 100%;
}
    
}

#courseListForm input{
    
    width: 80% !important;
}


.dsp_overlap_image{
    
    width: 7.5rem;
    height: 2.9rem; 
    position: absolute; 
    top: 4px; 
    left: 0;
    box-shadow: 0 0 14px 0 #7c7b7b;
    border-radius: 0 6px 6px 0;
}

.passculture_overlay_image {
    width: 4rem;
    height: 4rem;
    position: absolute;
    top: 4px;
    right: 0;
}


.dsp_overlap_image_carousel{
    
 position: absolute; 
 top: 0.5rem; 
 left: 0;
 margin-left:5px;
 z-index: 10; 
 width: 11.4rem; 
 height: 4.4rem; 
 box-shadow: 0 3px 6px rgba(0, 0, 0, 0.30), 0 3px 6px rgba(0, 0, 0, 0.23);
  border-radius: 0 6px 6px 0;
    
}

.carousel_main_image{
   width: 70% !important; 
   height:15rem !important;
   object-fit:cover !important;
   border-bottom:solid 1px grey; 
    
}

.border_bottom{
    border-bottom:solid 2px lightgrey;
}


.form-side-l55 {
    width: 55%;
    float: left;
    box-sizing: border-box;
}

.form-side-r40 {
    width: 40%;
    float: right;
    box-sizing: border-box;
    margin:auto;
}

/* Media query for tablets (48rem and below) */
@media (max-width: 64rem) {
    .form-side-l55, .form-side-r40 {
        width: 100%;
        margin-right:1rem;
        float: none;  /* Stack them vertically */
    }
}

.view_catalogue_button{
    
   background: #F49C13 !important;
    
}

.export_table_button{
    
 background: #58873B !important;
    
}

.download_validations_button{
    
   background: #2659B5 !important;
    
}

.close_year_button{
    
  background: #3B82F6 !important; 
}


#upload_devis.ui-fileupload-buttonbar .ui-button-text {
     display: block !important;
}

.requestForm#upload_devis_label{
    display:flex !important;
}

.ui-autocomplete {
    width: 100% !important;
    cursor: pointer;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    position: relative;
    display: contents;
}

.ui-autocomplete-multiple-container {
    clear: left;
    cursor: text;
    list-style-type: none;
    margin: 0;
    min-height: 1px;
    overflow: hidden;
    width: auto !important;
    /*width: 50rem !important;*/
}


#cat_menu_button{    
  background-color: #FF9F42 !important;
}


.ui-knob input[disabled="disabled"]{    
 background: transparent !important;   
}

.candidature-detail2.content2 {
    max-width: 34.375rem; /* 550px converted to rem */
    margin-bottom: 1rem;
    color: #272727;
    font-family: Roboto, sans-serif;
    font-size: 1rem; /* 10pt converted to rem */
    text-align: justify;
    padding-left: 1.875rem; /* 30px converted to rem */
    line-height: 1.5rem; /* Assuming line-height remains unchanged */
    font-weight: normal !important;
}

.ui-panel-titlebar-icon {
    background: white !important;
}

#panel-buttons2 button{
   /* margin: auto;*/
    height: auto;
    padding: .45rem 0px;
    font-size: .9rem !important;
    border-color: transparent;
    position: initial !important;
    border-radius: .45rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

div#panel-buttons2{
    /*margin-top: auto;
    display: flex;*/
    width: 100%;
    position: initial !important;
    margin-top: 0.5rem;
}

div#panel-buttons2 button{
    width: 20%;
}



div#panel-buttons2 button span{
    position: initial !important;
    padding: unset !important;
    font-size:1.2rem;
    font-weight:bolder;
}

#panel-buttons2 .ui-icon{
    display: contents !important;
}
#panel-buttons2 .ui-icon::before{
    padding: 8px !important;
    font-size:1.5rem;
    margin-right:8px;
}

.col-3 {
    flex: 0 0 auto;
    padding: 0.25rem !important;
    width: 25%;
}

.knob_font{
    font:18px bold Roboto !important;
}


.carousel-1-item {
    width: 33%;
    margin: auto;
}

.carousel-2-items {
    width: 66%;
    margin: auto;
}

.carousel-3-items {
    width: 100%;
}

.carousel-center {
    display: flex;
    justify-content: center;
}


/* Tablet screens (768px to 1024px) */
@media (max-width: 75rem) {
    .carousel-1-item,
    .carousel-2-items {
        width: 70%; /* Increase width for better layout on tablet */
        max-width: none;
    }

    .carousel-3-items {
        width: 100%;
    }
}

/* Mobile screens (up to 767px) */
@media (max-width: 48rem) {
    .carousel-1-item,
    .carousel-2-items,
    .carousel-3-items {
        width: 100%;
    }
}



/*@media (min-width: 37.5rem){
    .custom-grid{
        columns: 2;
    }
}

@media (min-width: 64rem) {
    .custom-grid {
        columns: 3;
    }
}

@media (min-width: 76rem) { 
    .custom-grid  {
        columns: 4;
    }
}*/

@media (min-width: 37.5rem){
    .ui-datagrid-column{
        flex: 0 0 50%;
    }
    #partnerForm .top-logo-img2 {
        height: 4rem;
        margin-top: -4.25rem;
    }
}

@media (min-width: 64rem) {
    .ui-datagrid-column {
        flex: 0 0 33.33%;
    }
    #partnerForm .top-logo-img2 {
        height: 6rem;
        margin-top: -6.25rem;
    }
}

@media (min-width: 76rem) { 
    .ui-datagrid-column  {
        flex: 0 0 25%;
        padding-left: 2% !important;
        padding-right: 3% !important;
    }
    #partnerForm .top-logo-img2 {
        height: 8rem;
        margin-top: -8.25rem;
    }    
 }

.ui-datagrid .ui-datagrid-content {
    border: 0 !important;
    background: #ffffff;
    color: #495057;
    padding: 0rem !important;
}


.tag-badge {
    display: inline-block !important;
    padding: 0px !important;
    border-radius: 15px !important;
    background-color: #e9ecef !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    margin: 2px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid #dee2e6 !important;
    cursor: pointer !important;
    box-shadow: 1px 1px 0 rgba(5,5,5,0.2) !important;
}

.tag-badge:hover {
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2) !important;
}

.clickable-tags .ui-chips-token {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-tags .ui-chips-token:hover {
    background-color: #0056b3 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.offer_status_overlay_image {
    width: 50%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    margin-left:0.3rem;
}


.catalog_label_bottom{
    
   padding-left:2rem;
   padding-right:2rem;
   margin-bottom: 1rem;
    
}

.custom-dialog .ui-dialog #refuse-dialog {
    width: 50% !important;
}

.accountant_color{
    background: #A90EB6 !important;
    border: 1px solid #A90EB6 !important;
}
.active-tags-tab{
    background-color: #fff3cd; max-width: 400px;
}


.user-common-theme,
.user-department-themes {
    min-width: 150px;
    max-width: 200px;
}

.theme-filter {
    width: 100%;
    max-width: 150px;
}

.no-theme {
    color: #999;
    font-style: italic;
}

.theme-info {
    margin-top: 5px;
    font-size: 0.9em;
}

.theme-label {
    font-weight: bold;
    color: #666;
}

.theme-titles {
    color: #333;
}

.test-value {
    color: red;
    font-weight: bold;
    background-color: yellow;
    padding: 2px 5px;
    border: 1px solid red;
}
.theme-titles-multiline {
    white-space: pre-line !important;
    line-height: 1.4;
    padding: 4px 0;
}
  .custom-radio .ui-radiobutton-item {
    margin-bottom: 0.8rem; /* adjust as needed */
  }
  


.course-detail-dialog2{
    
    background-color: white;    
    border: 0.313rem solid #1767c2 !important;
    padding: 1.5rem 0rem 0.625rem 0rem !important;
    }
        
    #adminSpaceForm .course-detail-dialog2 label {
     display: ruby-text !important;
    
}

    #adminSpaceForm .course-detail-dialog2 td.ui-panelgrid-cell{
     vertical-align: baseline !important;
    
}

.course-detail-dialog2 .ui-panelgrid,
.course-detail-dialog2 .ui-panelgrid td,
.course-detail-dialog2 .ui-panelgrid tr {
    border: none !important;
    margin-top: 1rem !important;
}

.offer-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
}

.offer-title {
    margin: 0;
}

.print-button {
    white-space: nowrap;
}

#eac_dialog ui-dialog .ui-dialog-content,
#culture_dialog .ui-dialog .ui-dialog-content{
   padding: 0 1.5rem 0rem 1.5rem !important;
}

#adminSpaceForm .ui-datatable-data td.school-label .list-school-college,
#companySpaceForm2 .ui-datatable-data td.school-label .list-school-college {
    display: block;
    margin-bottom: 0.25rem;
}

#adminSpaceForm .ui-datatable-data td.school-label .list-school-porteur,
#companySpaceForm2 .ui-datatable-data td.school-label .list-school-porteur {
    display: inline-block;
    margin-bottom: 0.25rem;
}

#adminSpaceForm .ui-datatable-data td.school-label .list-school-city,
#companySpaceForm2 .ui-datatable-data td.school-label .list-school-city {
    display: block;
    margin-top: 0.25rem;
    font-size: 9pt;
    color: rgb(39, 39, 39);
    font-style: italic;
}

#companySpaceForm2 thead tr .ui-selectonemenu.ui-custom-filter {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .catalogue-period-range-panel.ui-datepicker-multiple-month .ui-datepicker-group,
    .catalogue-period-range-panel.ui-datepicker-multi-2 .ui-datepicker-group {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .catalogue-period-range-panel .ui-datepicker-calendar {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .catalogue-period-range-panel .ui-datepicker-calendar th,
    .catalogue-period-range-panel .ui-datepicker-calendar td {
        padding: 0.125rem 0 !important;
        text-align: center !important;
        font-size: 0.875rem !important;
    }

    .catalogue-period-range-panel .ui-datepicker-calendar td span,
    .catalogue-period-range-panel .ui-datepicker-calendar td a {
        width: auto !important;
        max-width: 100% !important;
        min-height: 1.75rem !important;
        line-height: 1.75rem !important;
        margin: 0 auto !important;
        padding: 0.125rem 0 !important;
        box-sizing: border-box !important;
        font-size: 0.875rem !important;
    }

    .catalogue-period-range-panel .ui-datepicker-header {
        padding: 0.25rem 0 !important;
        font-size: 0.875rem !important;
    }

    .catalogue-period-range-panel.ui-datepicker-touch-ui,
    .ui-datepicker-touch-ui.catalogue-period-range-panel {
        min-width: unset !important;
    }

    /* Native scrollPanel wrapper for stacked months on mobile */
    .catalogue-period-range-scroll-panel.ui-scrollpanel-native {
        max-height: 60vh !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        box-sizing: border-box;
    }

    .catalogue-period-range-scroll-panel .ui-scrollpanel-content,
    .catalogue-period-range-scroll-panel.ui-scrollpanel-native .ui-datepicker-group {
        position: static !important;
        width: 100% !important;
    }
}
    

#adminSpaceForm thead tr span:not(.ui-icon) {
    /*color: white !important;*/
    font-size: 12pt;
    display: inline-flex;
}

#adminSpaceForm thead th .ui-column-title {
    font-weight: 700;
    vertical-align: sub;
    color: white !important;
}
/************************************************************************************/

   




/* FXL 260915 : indicateurs de l'espace PerDir (space-referent/list.xhtml)
   Répartition sur toute la largeur (comme le rendu d'origine) avec des tuiles qui
   passent à la ligne quand la largeur manque, sans chevauchement des jauges. */
.perdir-kpis {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 0.5rem 0 1rem 0;
}
/* colonne de gauche : montants + jauges budget côte à côte */
.perdir-kpi-left {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem 2rem;
    flex: 0 1 auto;
}
/* colonne de droite : ligne des demandes au-dessus, ligne budget en dessous */
.perdir-kpi-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1 1 36rem;
    min-width: 0;
}
.perdir-kpi-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    gap: 0.5rem 0.5rem;
}
.perdir-kpi-amounts {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-around;
    flex: 0 0 auto;
    min-width: 10rem;
}
.perdir-kpi-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0.5rem;
}
.perdir-kpi-amount h6 { margin: 0; }
.perdir-kpi-amount > .ui-texteditor { margin-top: 0.4rem !important; }
.perdir-kpi-amount br { display: none; }
.perdir-kpi-funds {
    flex-direction: column;
    justify-content: space-around;
    flex: 0 1 auto;
    padding: 0 1.5rem; /* respiration à gauche et à droite de "Montant disponible" / "Montant pré-accepté" */
    align-items: center;
}
/* les deux jauges budget sont centrées sur le même axe vertical */
.perdir-kpi-funds > .perdir-kpi {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
}
.perdir-kpi {
    flex: 1 1 7rem;
    min-width: 7rem;
    max-width: 11rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0;
}
.perdir-kpi h6 {
    margin: 0 0 0.4rem 0;
    min-height: 2.75rem; /* en rem : même hauteur de titre quelle que soit la taille de police -> jauges alignées en haut */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.2;
}
.perdir-kpi-wide { min-width: 8rem; }
.perdir-kpi .ui-knob { display: inline-block; overflow: visible; }
.perdir-kpi .ui-knob canvas { max-width: 100%; }
.perdir-kpi .knob-container { display: inline-block; }
.perdir-kpi-donut { min-width: 15rem; }
.perdir-kpi.perdir-kpi-wide:has(.perdir-kpi-donut) { min-width: 16rem; max-width: 20rem; }
@media only screen and (max-width: 37.5rem) {
    .perdir-kpis { gap: 0.75rem; }
    .perdir-kpi-left, .perdir-kpi-right { flex-basis: 100%; }
    .perdir-kpi { min-width: 6rem; }
}

/* FXL 260921 : modales d'action groupee sur les demandes d'une offre
   ("Rejeter les candidatures", "Message aux candidatures"), portees du projet ecole.
   .ui-dialog n'a pas de fond propre et son contenu, en content-box, est plus etroit
   que le panneau : la bande de droite - celle qui porte la croix de fermeture -
   laissait voir la page au travers (ces dialogs ne sont pas modaux).
   S'y ajoutent la pastille blanche de la croix et les espacements entre la barre de
   titre, l'intitule et la zone de saisie. */
.bulk-action-dialog.ui-dialog {
    background: #ffffff !important;
    opacity: 1 !important;
    overflow: hidden;
}

.bulk-action-dialog .ui-dialog-content,
.bulk-action-dialog .ui-dialog-footer {
    background: #ffffff !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 1.25rem 1.5rem 1.5rem !important;
}

.bulk-action-dialog .ui-dialog-titlebar {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    height: auto;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem 0.5rem 1rem !important;
    overflow: hidden;
}

/* ui-helper-clearfix ajoute un ::after en display:table : en contexte flex il devient
   un troisieme element et repousse la croix vers l'interieur. */
.bulk-action-dialog .ui-dialog-titlebar::before,
.bulk-action-dialog .ui-dialog-titlebar::after {
    content: none !important;
    display: none !important;
}

.bulk-action-dialog .ui-dialog-titlebar .ui-dialog-title {
    flex: 1 1 auto;
    white-space: normal;
    line-height: 1.25;
}

.bulk-action-dialog .ui-dialog-titlebar .ui-dialog-titlebar-icon,
.bulk-action-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
    background: #ffffff !important;
    background-image: none !important;
    border: none;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    box-shadow: none;
}

.bulk-action-dialog .ui-dialog-titlebar .ui-dialog-titlebar-icon .ui-icon,
.bulk-action-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close .ui-icon {
    margin: 0;
}

.bulk-action-dialog .ui-dialog-content label.ui-outputlabel {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.9rem;
    line-height: 1.35;
}

/* FXL 260922 : vignette unique en version carrousel. Les diapositives des carrousels
   (accueil, favoris, offres partagees, offres du partenaire, fiche structure, offres
   similaires, pages thematiques 77) incluent desormais la meme vignette que le catalogue ;
   elles n'ont plus de balisage propre. Le conteneur .product-item-content fixe deja la
   largeur, la vignette s'y adapte. */
.course-card-carousel {
    width: 100% !important;
    height: auto !important;
    border: none !important;
}
.course-card-carousel .course-card-college-image { height: 11rem !important; }
.course-card-carousel .course-card-college-media { max-height: 11rem; }

/* FXL 260922 : vignette partagee liste / diaporama / carrousels (course_card.xhtml). Le
   conteneur de l'illustration portait la classe utilitaire max-h-13rem en dur ; la hauteur est
   desormais en CSS pour que les variantes puissent la relever sans toucher au balisage. */
.course-card-college-media { max-height: 13rem; }

/* =====================================================================================
   FXL 260922 : infobulle de la carte Google Maps, portee du projet Ecole. Chaque offre du
   point est une zone cliquable : vignette, titre colore par domaine, structure et periode.
   La police n'est pas imposee : l'infobulle herite de celle du site (le projet Ecole y force
   Orkney, absente ici).
   ===================================================================================== */
.map-offers { max-width: 26rem; }
.map-offer {
    display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0.4rem; cursor: pointer; border-radius: 6px;
}
.map-offer:hover, .map-offer:focus { background: #f2f5fb; outline: none; }
.map-offer + .map-offer { border-top: 1px solid #e3e6ea; }
.map-offer-thumb {
    flex: 0 0 5.5rem; width: 5.5rem; height: 4rem; border-radius: 4px; background-size: cover; background-position: center; background-color: #eef0f3;
}
.map-offer-thumb-empty { background-image: none; }
.map-offer-body { flex: 1 1 auto; min-width: 0; }
.map-offer-title { font-weight: bold; font-size: 0.8rem; text-transform: uppercase; line-height: 1.1rem; margin-bottom: 0.3rem; }
.map-offer-line { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: #333333; line-height: 1.1rem; }
.map-offer-line i { width: 1rem; flex: 0 0 1rem; font-size: 0.9rem; }
.map-offer-line span { font-weight: bold; }
.map-offer-line + .map-offer-line span { font-weight: normal; }

/* FXL 260922 : croix de fermeture de l'infobulle en surimpression. Google Maps place le
   bouton dans une barre d'en-tete (.gm-style-iw-chr) de 48px qui reste dans le flux et
   dessine une bande blanche au-dessus de la premiere offre. On sort la barre du flux ;
   la pastille blanche translucide garde la croix lisible par-dessus une vignette. */
.gm-style .gm-style-iw-chr {
    position: absolute;
    top: 0;
    right: 0;
    height: auto;
    min-height: 0;
    z-index: 3;
}
.gm-style .gm-style-iw-chr .gm-ui-hover-effect {
    width: 2rem !important;
    height: 2rem !important;
    margin: 0.25rem 0.25rem 0 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.gm-style .gm-style-iw-chr .gm-ui-hover-effect > span { margin: auto !important; }
.gm-style .gm-style-iw-c { padding-top: 0 !important; }
.gm-style .gm-style-iw-d { overflow: auto !important; }
/* le titre de la premiere offre ne doit pas passer sous la croix */
.map-offers .map-offer:first-child .map-offer-title { padding-right: 2.25rem; }


/* FXL 260922 : barre des trois boutons de vue du catalogue (liste / carte / diaporama).
   Un gap unique remplace les marges individuelles, qui produisaient des ecarts inegaux. */
.catalogue-view-buttons {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

/* FXL 260922 : periode de l'offre sur les vignettes (liste, carrousels, diaporama).
   Span en display:block pour rester valide a l'interieur des <p> existants.
   0.7rem = 80 % du 0.875rem de la classe text-sm portee par le nom de la structure. */
.course-card-period {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #444444;
    /* FXL 260922 : la marge haute manquait, la date se collait au nom de la structure qui est
       en display:inline. 0.8rem donne 13px au-dessus comme au-dessous (mesure en recette). */
    margin: 0.8rem 0.8rem 0.6rem 0.8rem;
}

/* =====================================================================================
   FXL 260922 : Vue diaporama du catalogue public (bouton a droite de la vue cartographique,
   parametre admin show_slideshow). Troisieme mode d'affichage, au meme titre que la liste et
   la carte : le carrousel s'affiche DANS la page, et le bouton "Plein ecran" de sa barre
   d'outils le passe en plein ecran via la Fullscreen API.

   FORMAT UNIQUE : la diapositive n'a plus de balisage propre, elle inclut la meme vignette
   que la vue en liste (course_card.xhtml) avec la classe .catalogue-slideshow-card. Elle
   herite donc du bandeau de statut, du picto prevention, du pass Culture, des dates et des
   domaines. Les regles ci-dessous ne font que la redimensionner.
   ===================================================================================== */
.catalogue-slideshow-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 70vh;
    background: #ffffff;
    padding: 1rem;
    box-sizing: border-box;
}

.catalogue-slideshow-wrapper:fullscreen{
    height: 100%;
    padding: 2rem;
}
.catalogue-slideshow-wrapper:-webkit-full-screen{
    height: 100%;
    padding: 2rem;
}

/* barre d'outils du diaporama : plein ecran + retour a la liste */
.catalogue-slideshow-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
}
.catalogue-slideshow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    line-height: 1;
}
.catalogue-slideshow-btn:hover { background: #eeeeee; }
/* en plein ecran le retour a la liste n'a pas de sens : seul le bouton plein ecran reste */
.catalogue-slideshow-wrapper:fullscreen .catalogue-slideshow-exit{ display: none; }
.catalogue-slideshow-wrapper:-webkit-full-screen .catalogue-slideshow-exit{ display: none; }

.catalogue-slideshow-carousel { flex: 1 1 auto; min-height: 0; }
/* PrimeFaces pose un style inline height:auto sur le viewport du carrousel, et les conteneurs
   intermediaires n'ont aucune hauteur : sans ces regles le viewport se dimensionne sur son
   contenu et rogne le bas des diapositives. Le !important est necessaire face au style inline. */
.catalogue-slideshow-carousel .ui-carousel-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.catalogue-slideshow-carousel .ui-carousel-container {
    height: 100% !important;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.catalogue-slideshow-carousel .ui-carousel-items-content {
    height: 100% !important;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.catalogue-slideshow-carousel .ui-carousel-items-container,
.catalogue-slideshow-carousel .ui-carousel-item { height: 100% !important; min-height: 0; }
.catalogue-slideshow-carousel .ui-carousel-indicators { display: none !important; }
.catalogue-slideshow-carousel .ui-carousel-prev,
.catalogue-slideshow-carousel .ui-carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
}

.catalogue-slideshow-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* la vignette partagee, en version diaporama : largeur libre (elle suit l'illustration),
   illustration plafonnee en hauteur et jamais rognee (object-fit:contain pose par la vue). */
.catalogue-slideshow-card {
    width: auto !important;
    max-width: 70vw;
    height: auto !important;
    border: none !important;
}
.catalogue-slideshow-card .course-card-college-image { max-height: 45vh; }
.catalogue-slideshow-card .course-card-college-media { max-height: none; }

/* FXL 260922 : agrandissement de 33 % de la diapositive, EN PLEIN ECRAN UNIQUEMENT.
   Un transform ne modifie pas le flux : le carrousel et ses fleches gardent leur position,
   seule la diapositive est mise a l'echelle depuis son centre. Le plafond de l'illustration
   reste a 45vh : agrandi il occupe 60vh, et laisse la place au titre, a la structure, aux
   dates et aux domaines, qui montent eux aussi de 33 %. */
.catalogue-slideshow-wrapper:fullscreen .catalogue-slideshow-card{
    transform: scale(1.33);
    transform-origin: center center;
}
.catalogue-slideshow-wrapper:-webkit-full-screen .catalogue-slideshow-card{
    transform: scale(1.33);
    transform-origin: center center;
}
.catalogue-slideshow-empty { display: block; text-align: center; padding: 2rem; }

/* telephones et petits ecrans : la carte prend presque toute la largeur */
@media screen and (max-width: 767px) {
    .catalogue-slideshow-wrapper { padding: 0.5rem; }
    .catalogue-slideshow-wrapper:fullscreen{ padding: 1rem; }
    .catalogue-slideshow-wrapper:-webkit-full-screen{ padding: 1rem; }
    .catalogue-slideshow-card { max-width: 96vw; }
    /* en plein ecran la vignette est agrandie de 33 % : on plafonne a 72vw pour rester sous 96vw */
    .catalogue-slideshow-wrapper:fullscreen .catalogue-slideshow-card{ max-width: 72vw; }
    .catalogue-slideshow-wrapper:-webkit-full-screen .catalogue-slideshow-card{ max-width: 72vw; }
    .catalogue-slideshow-card .course-card-college-image { max-height: 38vh; }
}

/* FXL 260928 : ecran Parametres - heure de la relance automatique PerDir (champ masque hh:mm). */
.perdir-hour-input.ui-inputfield { display: inline-block; width: 4.2rem !important; height: 2.2rem; margin: 0 0.4rem !important; padding: 0 0.3rem; text-align: center; vertical-align: middle; box-sizing: border-box; }

/* FXL 260928 : ecran Parametres - interligne entre les options (blocs admin-option). */
.admin-parameter-options .admin-option { margin: 0.7rem 0; line-height: 1.4; }
.admin-parameter-options .admin-option .ui-chkbox { vertical-align: middle; margin-right: 0.3rem; }

/* FXL 260928 : ecran Parametres - marge sous le titre "Gestion des parametres de la plateforme"
   et niveau de moderation presente en boutons (SelectOneButton). */
.request-form.admin-content .admin-parameter-options.moderation-block { margin-top: 1.5rem; }
.admin-parameter-options .ui-selectonebutton { margin: 0.4rem 0 0.2rem; }

/* =====================================================================================
   FXL 261109 : affichage sur telephone (portrait, <= 767px) - catalogue et carrousels.
   1. Filtres du catalogue (complet et Guide DSP) : panneau masque, ouvert en plein ecran par
      le bouton « Filtres » place a cote des boutons liste / carte / diaporama
      (filter-list.xhtml, toggleCatalogueFilters). Sur bureau rien ne change.
   2. Diaporama : fleches superposees a la diapositive au lieu d'etre juxtaposees (elles
      consommaient 96 px sur 281), barre d'outils centree, hauteur libre.
   3. Carrousels d'offres (accueil, Guide DSP, structure...) : memes fleches superposees, la
      vignette et son illustration occupent toute la largeur disponible ; indicateurs compacts.
   ===================================================================================== */
.catalogue-filters-toggle,
.catalogue-filters-close { display: none; }

@media screen and (max-width: 767px) {
    /* --- 1. filtres --- */
    .catalogue-filters-toggle { display: inline-flex !important; align-items: center; }
    .catalogue-filters-panel { display: none; }
    body.catalogue-filters-open { overflow: hidden; }
    body.catalogue-filters-open .catalogue-filters-panel {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: auto !important;
        margin: 0 !important;
        padding: 0.5rem 1rem 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1200;
        background: #ffffff;
        box-sizing: border-box;
    }
    .catalogue-filters-panel .icon-text {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #ffffff;
        padding: 0.25rem 0;
        border-bottom: 1px solid #e0e0e0;
    }
    .catalogue-filters-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 2.4rem; height: 2.4rem;
        border: 1px solid #d0d0d0;
        border-radius: 50%;
        background: #ffffff;
        color: #333333;
        font-size: 1.1rem;
        cursor: pointer;
    }
    /* largeur utile : le conteneur de page garde 30 px de chaque cote et la colonne des offres
       16 px de marges (.div22.ml-3) ; sur telephone la vignette ne faisait que 269 px sur 390.
       :has() est ignore par les anciens navigateurs, qui gardent simplement les marges d'origine. */
    #content-wrapperS3e:has(#courseListForm) { padding-left: 0.5rem; padding-right: 0.5rem; }
    #courseListForm .div22 { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
    #courseListForm .ui-datagrid-column { padding: 0.25rem 0; }
    #courseListForm #courseDataTable .course-card-college { margin-bottom: 1rem !important; }
    /* barre de navigation du catalogue sur UNE ligne : titre a gauche (taille reduite), boutons de
       vue a droite, bouton Filtres en icone seule ; plus de positionnement absolu (il chevauchait la
       barre d'outils du diaporama) */
    #courseListForm .div22 > h3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        font-size: 1rem;
        line-height: 1.2;
        text-align: left;
        padding: 0.4rem 0 !important;
    }
    /* le titre (« Catalogue complet » / « Guide departemental prevention et citoyennete ») se replie sur
       deux lignes courtes a cote des boutons, sans depasser la hauteur de ceux-ci : pas de troncature */
    #courseListForm .div22 > h3 > span:first-child { flex: 1 1 auto; min-width: 0; font-size: 0.95rem; }
    .catalogue-title-actions {
        position: static !important;
        display: flex;
        flex: 0 0 auto;
        margin-top: 0;
    }
    .catalogue-view-buttons { gap: 0.4rem; flex-wrap: nowrap; }
    .catalogue-view-buttons .ui-button { width: 2.4rem; height: 2.4rem; padding: 0; }
    /* FXL 261119 : .ui-button.catalogue-filters-toggle - components.css (PrimeFaces, charge apres) remettait
       .ui-button .ui-button-text en display:block a specificite egale : le libelle « Filtres » debordait du bouton. */
    .ui-button.catalogue-filters-toggle .ui-button-text { display: none; }
    /* FXL 261119 : marges laterales egales sous les vignettes : mediaquery.css (body #courseListForm #courseDataTable)
       ajoutait 0.75rem a gauche seulement (20 px a gauche, 8 px a droite sur 375 px). */
    body #courseListForm #courseDataTable { margin-left: 0 !important; margin-right: 0 !important; }
    /* FXL 261119 : theme.css (body .ui-button.ui-button-text-icon-left .ui-icon, absolute a 0.5rem) l'emportait :
       le picto etait decale a gauche (9 px / 13 px). Centre dans le bouton carre. */
    body .ui-button.catalogue-filters-toggle { justify-content: center !important; align-items: center; }
    body .ui-button.catalogue-filters-toggle .ui-icon { position: static !important; left: auto !important; top: auto !important; margin: 0 !important; }
    /* pagination du catalogue sur une ligne : fleches + « Page x / n » (compteur masque sur ordinateur) */
    #courseListForm .ui-paginator { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 0.3rem; padding: 0.4rem 0; }
    #courseListForm .ui-paginator .ui-paginator-pages { display: none; }
    #courseListForm .ui-paginator .ui-paginator-current { display: inline-block; padding: 0 0.6rem; font-size: 0.95rem; white-space: nowrap; }

    /* --- 2. diaporama --- */
    .catalogue-slideshow-wrapper { height: auto; min-height: 60vh; }
    .catalogue-slideshow-toolbar { justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
    .catalogue-slideshow-carousel .ui-carousel-container { position: relative; }
    .catalogue-slideshow-carousel .ui-carousel-items-content { width: 100%; }
    /* selecteur a 3 classes : doit l'emporter sur la regle generique des carrousels ci-dessous */
    .catalogue-slideshow-wrapper .catalogue-slideshow-carousel .ui-carousel-prev,
    .catalogue-slideshow-wrapper .catalogue-slideshow-carousel .ui-carousel-next {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        z-index: 2;
        margin: 0;
        width: 2.2rem; height: 2.2rem;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid #c8c8c8;
        color: #333333 !important;
    }
    .catalogue-slideshow-wrapper .catalogue-slideshow-carousel .ui-carousel-prev { left: 0.2rem; }
    .catalogue-slideshow-wrapper .catalogue-slideshow-carousel .ui-carousel-next { right: 0.2rem; }
    .catalogue-slideshow-card { max-width: 100%; }
    .catalogue-slideshow-card .course-card-college-image { max-height: 42vh; }
    /* plein ecran sur telephone : l'agrandissement de 33 % (regle generale) faisait deborder la
       vignette (373 px pour 358 disponibles, bords rognes par le carrousel) ; la vignette prend
       simplement toute la largeur et l'illustration monte a 55 % de la hauteur d'ecran */
    .catalogue-slideshow-wrapper:fullscreen { padding: 0.5rem; }
    .catalogue-slideshow-wrapper:-webkit-full-screen { padding: 0.5rem; }
    .catalogue-slideshow-wrapper:fullscreen .catalogue-slideshow-card,
    .catalogue-slideshow-wrapper:-webkit-full-screen .catalogue-slideshow-card { transform: none; max-width: 100%; }
    .catalogue-slideshow-wrapper:fullscreen .catalogue-slideshow-card .course-card-college-image,
    .catalogue-slideshow-wrapper:-webkit-full-screen .catalogue-slideshow-card .course-card-college-image { max-height: 55vh; }

    /* --- 3. carrousels d'offres --- */
    .ui-carousel .ui-carousel-container { position: relative; }
    .ui-carousel .ui-carousel-items-content { width: 100%; }
    .ui-carousel .ui-carousel-prev,
    .ui-carousel .ui-carousel-next {
        position: absolute;
        top: 5.5rem; /* a hauteur de l'illustration (11rem) */
        z-index: 2;
        margin: 0;
        width: 2rem; height: 2rem;
        background: rgba(255, 255, 255, 0.85) !important;
        border: 1px solid #c8c8c8;
        border-radius: 50%;
        color: #333333 !important;
    }
    .ui-carousel .ui-carousel-prev { left: 0.4rem; }
    .ui-carousel .ui-carousel-next { right: 0.4rem; }
    .product-item .product-item-content { margin: 0.3rem 0; padding: 0; }
    .course-card-carousel { width: 100% !important; }
    .course-card-carousel .course-card-college-image { width: 100%; height: 12rem !important; }
    .course-card-carousel .course-card-college-media { max-height: 12rem; }
    .ui-carousel .ui-carousel-indicators { padding: 0.4rem 0; }
    .ui-carousel .ui-carousel-indicator { margin: 0 0.15rem 0.3rem; }
    .ui-carousel .ui-carousel-indicator button { width: 1rem; height: 0.3rem; }

    /* FXL 261109 : panneaux repliables de l'accueil (Edito, « Qu'est-ce qu'une offre... », Guide DSP ;
       index.xhtml, toggleable sur telephone) : titre et icone +/- sur une meme ligne, tout l'en-tete cliquable */
    .ui-panel .ui-panel-titlebar:has(.ui-panel-titlebar-icon) { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
    .ui-panel .ui-panel-titlebar:has(.ui-panel-titlebar-icon) .ui-panel-title { flex: 1 1 auto; }
    .ui-panel .ui-panel-titlebar:has(.ui-panel-titlebar-icon) .ui-panel-title h3 { margin: 0; }
    .ui-panel .ui-panel-titlebar:has(.ui-panel-titlebar-icon) .ui-panel-titlebar-icon { float: none; margin: 0; flex: 0 0 auto; }
}

/* FXL 261109 : compteur « Page x / n » du catalogue reserve au telephone (cf. media query ci-dessus) */
@media screen and (min-width: 768px) {
    #courseListForm .ui-paginator .ui-paginator-current { display: none; }
}

/* FXL 261117 : angles des panneaux. "body .ui-panel" (responsive.css) arrondit le panneau a 0.52rem et rogne
   ce qui depasse, alors que l'en-tete et le contenu gardaient leur propre bordure a 4px (angles droits en bas
   de l'en-tete) : la bordure etait coupee et le bout de l'angle paraissait transparent, surtout sur un
   panneau replie (accueil sur telephone). Les angles interieurs suivent maintenant ceux du panneau. */
body .ui-panel > .ui-panel-titlebar { border-top-left-radius: 0.52rem; border-top-right-radius: 0.52rem; }
/* FXL 261119 : :last-child ne suffisait pas : un panneau repliable (Informations utiles de la fiche offre) se termine
   par un input cache (etat replie/deplie) ; le contenu n'etait donc pas le dernier enfant et gardait ses angles de 4px,
   rognes par ceux du panneau. On cible le dernier bloc de contenu, quel que soit ce qui suit. */
body .ui-panel > .ui-panel-content:not(:has(~ .ui-panel-content, ~ .ui-panel-footer)),
body .ui-panel > .ui-panel-footer:not(:has(~ .ui-panel-footer)) { border-bottom-left-radius: 0.52rem; border-bottom-right-radius: 0.52rem; }
/* panneau replie ou sans contenu : l'en-tete porte aussi les angles du bas */
body .ui-panel > .ui-panel-titlebar:last-child,
body .ui-panel > .ui-panel-titlebar:has(+ .ui-panel-content[style*="display: none"]),
body .ui-panel > .ui-panel-titlebar:has(+ .ui-panel-content[style*="display:none"]) { border-bottom-left-radius: 0.52rem; border-bottom-right-radius: 0.52rem; }

/* FXL 261117 : accueil sur telephone - un peu d'air entre le titre et le bloc Edito, et entre les deux
   boutons d'acces « Enseignants » et « Partenaires » (#panel-buttons) */
@media screen and (max-width: 767px) {
    .flex-container > .column-1 > .ui-panel:first-child { margin-top: 0.75rem; }
    #panel-buttons.action-buttons .homebutton-style { margin-top: 0.45rem !important; margin-bottom: 0.45rem !important; }
    /* en-tete mobile (bandeau gris fonce #menuS3e) : pas d'angles arrondis sur telephone */
    #menuS3e { border-radius: 0 !important; }
}

/* FXL 261117 : vignettes d'offre des carrousels - fond blanc impose. La vignette etait transparente : dans
   le bloc DSP de l'accueil (fond gris clair), la partie texte sous l'image apparaissait grise. */
table.course-card-college.course-card-carousel { background-color: #ffffff; }

/* FXL 261117 : carrousel editable de l'accueil (#first-galleria, index.xhtml). Illustration en haut dans une
   zone 23/25 qu'elle remplit entierement (object-fit: cover, rognee si besoin), bandeau texte de hauteur fixe en
   bas, noir opaque a 60 % mais sous l'image et non plus par-dessus.
   Le bandeau reste en position absolue (en flux, ses textes elargissaient toute la colonne) : sa place est
   reservee par le padding-bottom du conteneur, ce qui revient a une colonne flex image + texte. */
#first-galleria { max-height: none !important; overflow: hidden; }
#first-galleria .ui-galleria-item-container { display: flex !important; flex-direction: column !important; height: auto !important; padding-bottom: 7.5rem !important; box-sizing: border-box !important; overflow: hidden; position: relative; }
#first-galleria .ui-galleria-items { flex: 0 0 auto !important; width: 100%; aspect-ratio: 23 / 25; height: auto !important; min-height: 0 !important; }
#first-galleria .ui-galleria-item { height: 100% !important; position: relative; }
#first-galleria .ui-galleria-item > a { position: absolute !important; top: 0; right: 0; bottom: 0; left: 0; display: block !important; }
#first-galleria .ui-galleria-item img.container-img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover !important; object-position: center center !important; margin: 0 !important; border-radius: 0 !important; display: block; }
#first-galleria .ui-galleria-caption-items { position: absolute !important; left: 0; right: 0; bottom: 0 !important; top: auto !important; height: 7.5rem !important; margin: 0 !important; padding: 0 !important; }
#first-galleria .ui-galleria-caption-item { background: rgba(0, 0, 0, 0.6) !important; color: #fff; display: flex !important; flex-direction: column; justify-content: center; padding: 0.5rem 0.9rem !important; box-sizing: border-box; height: 100%; overflow: hidden; white-space: normal; text-align: center; }
#first-galleria .ui-galleria-caption-item h4 { margin: 0 0 0.25rem 0 !important; padding: 0 !important; color: #fff; font-size: 0.875rem !important; line-height: 1.2 !important; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#first-galleria .ui-galleria-caption-item p { margin: 0 !important; color: #fff; font-size: 0.75rem !important; line-height: 1.25 !important; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#first-galleria .ui-galleria-item-nav { top: calc((100% - 7.5rem) / 2) !important; transform: translateY(-50%); margin-top: 0 !important; }
@media (max-width: 48rem) { .flex-container > .column-2 { flex: 0 0 100% !important; min-width: 0; } }

/* FXL 261118 : fiche offre (show.xhtml) - boutons d'action alignes a droite, espaces regulierement */
/* meme hauteur pour tous les boutons (etires sur la ligne) ; le bouton Retour (styleorange) est plus court */
.offer-action-buttons { justify-content: flex-end !important; align-items: stretch !important; gap: 0.75rem; margin: 1rem 0; }
.offer-action-buttons > .ui-button { margin: 0 !important; height: auto !important; min-height: 3.5rem; top: 0 !important; left: 0 !important; align-self: stretch; }
/* Retour : contenu centre, memes marges a gauche du picto et a droite du libelle.
   Le picto (::before) porte deja 8px de padding de chaque cote : d'ou 1rem a gauche pour 1.5rem a droite. */
.offer-action-buttons > .ui-button.styleorange { display: inline-flex !important; align-items: center; justify-content: center; gap: 0; width: auto !important; min-width: 0; padding: 0 1.5rem 0 1rem !important; }
/* picto -> libelle : 0.9375rem (15px) = 8px padding + 8px marge du picto - 1px */
.offer-action-buttons > .ui-button.styleorange > .ui-button-text { position: static !important; top: auto !important; padding: 0 !important; margin: 0 0 0 -0.0625rem !important; line-height: 1; }
.offer-action-buttons > br { display: none; }
/* mobile : boutons empiles en pleine largeur, meme hauteur, libelles avec marge interieure */
@media (max-width: 767px) {
    .offer-action-buttons { flex-direction: column; align-items: stretch !important; gap: 0.6rem; padding: 0 0.75rem; }
    .offer-action-buttons > .ui-button,
    .offer-action-buttons > .ui-button.styleorange { width: 100% !important; min-height: 4rem; padding: 0.5rem 1rem !important; }
    .offer-action-buttons > .ui-button .ui-button-text { position: static !important; top: auto !important; padding: 0 !important; }
}

/* =====================================================================================
   FXL 261118 : fiche offre (show.xhtml, classe show-course) sur telephone - meme optimisation que le projet ecole.
   - largeur : les deux colonnes s'empilent en pleine largeur ; les retraits cumules (marge de colonne 16 px,
     .ml-5 32 px, padding 36/32 px des champs) laissaient ~180 a 260 px de texte sur 375 : ramenes a 0.5rem,
     texte aligne a gauche ; illustration en pleine largeur ;
   - niveaux sur une ligne, separes par une virgule (au lieu d'une ligne de tableau par niveau).
   Les rubriques vides sont masquees dans le xhtml (ui:fragment rendered), sur tous les ecrans.
   ===================================================================================== */
@media (max-width: 767px) {
    /* FXL 261119 : .flex.show-course (meme raison que .flex.seconnector-boxes : primeflex charge apres) */
    .flex.show-course { display: block !important; }
    .show-course > .form-side { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: 100% !important; }
    .show-course .ml-5 { margin-left: 0.5rem !important; }
    .show-course > .form-side.ml-5 { margin-left: 0 !important; }
    .show-course .mr-5 { margin-right: 0.5rem !important; }
    .show-course .candidature-detail.content,
    .show-course .course-detail.content { padding-left: 0.5rem !important; padding-right: 0.5rem !important; text-align: left !important; max-width: 100% !important; }
    .show-course .candidature-detail.ui-texteditor { text-align: left; }
    .show-course .show_image { padding: 0 !important; width: 100% !important; height: auto !important; max-height: 16rem; object-fit: cover; }
    .show-course .div1_show > div:first-child { display: block !important; width: 100%; }
    .show-course .ui-panel .ui-panel-content { padding: 0.75rem !important; }
    .show-course table.show-levels,
    .show-course table.show-levels tbody { display: block; }
    .show-course table.show-levels tr,
    .show-course table.show-levels td { display: inline; padding: 0; }
    .show-course table.show-levels tr:not(:last-child) td::after { content: ", "; }
}

/* FXL 261118 : fenetre « Gestion de vos preferences sur les cookies » (Orejime) sur telephone.
   Les marges s'empilaient (48 px autour de la fenetre, 24/48 px dedans, 13 px d'en-tete, 24 px sur le titre) :
   il restait ~150 px de texte sur 390. Marges ramenees a 0.75rem autour et 1rem dedans (~320 px de texte),
   titre sur deux lignes, espacements reguliers avant le texte et avant « Sauvegarder ». */
@media (max-width: 767px) {
    #orejime .ReactModal__Overlay { padding: 0.75rem !important; }
    #orejime .ReactModal__Content { padding: 1rem !important; width: 100% !important; max-width: 100% !important; max-height: calc(100vh - 1.5rem) !important; box-sizing: border-box; }
    #orejime .orejime-Modal-header,
    #orejime .orejime-Modal-footer { padding: 0 !important; }
    #orejime .orejime-Modal-title { display: block; padding: 0 2.25rem 0 0 !important; font-size: 1.25rem !important; line-height: 1.3 !important; margin: 0 !important; }
    #orejime .orejime-Modal-description { display: block; margin: 0.75rem 0 1rem 0 !important; padding: 0 !important; text-align: left !important; }
    #orejime .orejime-Modal-body { padding: 0.5rem !important; }
    #orejime .orejime-Modal-footer { margin-top: 0.75rem !important; }
}

/* FXL 261118 : picto « Actions departementales » du menu mobile = contour du departement de l'Essonne
   (trace simplifie a partir du contour administratif), a la place du graphique boursier pi-chart-line.
   Dessine en masque : il prend la couleur du texte du menu. Largeur 1.25em compensee par les marges pour que
   le libelle reste aligne sur ceux des autres entrees (16px de picto + 8px). */
.icon-essonne { display: inline-block; width: 1.25em !important; height: 1.25em !important; margin-left: -0.125em !important; margin-right: 0.375em !important; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' d='M11.3,1 13.6,3.1 14.3,2.1 15.5,2.3 15.6,3.5 17.9,3.7 18.4,3.1 19.7,2.9 20.3,4.4 21.9,5.3 20.4,6.3 20.7,7.4 19.9,7.6 20.7,8.7 19.9,9.6 20.3,10.1 19.3,12.2 19.9,13.1 19.4,16 20.8,17.8 18.9,17.9 18.9,18.6 17.3,19.5 17.7,19.9 17.4,20.8 16.5,20.8 16.5,21.3 15.5,21.9 13.8,20.9 13.3,21.9 12.5,21.6 11.9,22.4 12,21.6 11.6,21.6 11.9,20.9 10.7,20.3 9.9,21.8 9.1,21.6 9.4,22.4 7.9,22.4 8,22 6.1,22.5 5.8,23 3.8,22.8 3.4,22 4,21.5 3.8,19.8 4.3,19.5 3.6,18.7 3.9,17.7 2.6,17.7 2.4,17.3 2.9,16 2.1,14.7 3.3,12.3 4,12.2 2.6,11.2 2.7,10.5 4,11 5.1,10.8 5.6,8.6 6.4,8.2 4.9,6.2 5.4,6.3 5.9,5 7,5.1 7.9,3.8 7.5,2.8 8.6,2.7 9.1,2 10.2,1.9 10.1,1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' d='M11.3,1 13.6,3.1 14.3,2.1 15.5,2.3 15.6,3.5 17.9,3.7 18.4,3.1 19.7,2.9 20.3,4.4 21.9,5.3 20.4,6.3 20.7,7.4 19.9,7.6 20.7,8.7 19.9,9.6 20.3,10.1 19.3,12.2 19.9,13.1 19.4,16 20.8,17.8 18.9,17.9 18.9,18.6 17.3,19.5 17.7,19.9 17.4,20.8 16.5,20.8 16.5,21.3 15.5,21.9 13.8,20.9 13.3,21.9 12.5,21.6 11.9,22.4 12,21.6 11.6,21.6 11.9,20.9 10.7,20.3 9.9,21.8 9.1,21.6 9.4,22.4 7.9,22.4 8,22 6.1,22.5 5.8,23 3.8,22.8 3.4,22 4,21.5 3.8,19.8 4.3,19.5 3.6,18.7 3.9,17.7 2.6,17.7 2.4,17.3 2.9,16 2.1,14.7 3.3,12.3 4,12.2 2.6,11.2 2.7,10.5 4,11 5.1,10.8 5.6,8.6 6.4,8.2 4.9,6.2 5.4,6.3 5.9,5 7,5.1 7.9,3.8 7.5,2.8 8.6,2.7 9.1,2 10.2,1.9 10.1,1.2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.icon-essonne::before { content: none !important; }
/* libelle sur deux lignes : la 2e ligne (« departementales ») reste alignee sous « Actions » */
.menu-actions-dep > .ui-menuitem-link { display: flex !important; align-items: flex-start; }
.menu-actions-dep > .ui-menuitem-link > .ui-menuitem-icon { flex: 0 0 auto; }
.menu-actions-dep > .ui-menuitem-link > .ui-menuitem-text { flex: 1 1 auto; }

/* FXL 261118 : pages de choix de connexion (seconnector, refconnector, ... : classe seconnector-boxes) sur
   telephone. Les blocs etaient en flex-1 + w-full : selon leur nombre, le premier prenait toute la ligne et les
   autres se partageaient la suivante, avec des largeurs, hauteurs et logos differents. Ils sont empiles :
   meme largeur, meme hauteur (grille a rangees egales), logos a la meme hauteur, memes espacements. */
@media (max-width: 767px) {
    /* FXL 261119 : .flex.seconnector-boxes et non .seconnector-boxes : primeflex.css, charge APRES cette feuille,
       impose .flex { display: flex !important } ; a specificite egale il l'emportait et la grille n'etait jamais
       appliquee (constate sur la preprod apres deploiement). */
    .flex.seconnector-boxes { display: grid !important; grid-template-columns: 1fr; grid-auto-rows: 1fr; align-items: stretch !important; gap: 0.75rem; margin: 0.75rem 0 1.5rem 0; }
    .seconnector-boxes > div { flex-wrap: nowrap !important; width: auto !important; margin: 0 !important; padding: 0.75rem !important; min-height: 9.5rem; box-sizing: border-box; justify-content: space-between !important; }
    .seconnector-boxes > div > .h-1rem { display: none; }
    .seconnector-boxes > div > description { margin: 0.5rem 0 !important; }
    .seconnector-boxes > div img { height: 4.5rem !important; width: auto !important; max-width: 100%; }
    /* lien technique vide (ex. sponsorSubscribe de partconnector) : sorti de la grille pour ne pas creer une rangee vide */
    .seconnector-boxes > :not(div) { position: absolute !important; }
}

/* =====================================================================================
   FXL 261118 : formulaire « Partenaire, creez votre compte » (new_company.xhtml, classe new-company-form) sur
   telephone. Les champs avaient une largeur fixe (417 px dans une colonne de 284) et debordaient a droite ; les
   colonnes, libelles et boutons gardaient leurs retraits d'ordinateur.
   - une seule colonne en pleine largeur, libelle au-dessus de chaque champ, champs a 100 % ;
   - titres de section reduits, espacements reguliers (24 px avant, 8 px apres) ;
   - choix « Creer une nouvelle structure / Structure existante » et boutons Annuler / Valider empiles en
     pleine largeur (regle : boutons l'un au-dessus de l'autre en mobile) ;
   - logo : libelle en pleine largeur, boutons ajouter / supprimer dessous, alignes a gauche.
   ===================================================================================== */
@media (max-width: 767px) {
    .new-company-form #companyPanel,
    .new-company-form .contact-panel,
    .new-company-form #optionPanel { display: block !important; }
    .new-company-form .form-side { margin: 0 !important; width: 100% !important; max-width: 100% !important; float: none !important; }
    .new-company-form .form-side > div,
    .new-company-form .form-vertical-align { margin-top: 0 !important; margin-left: 0 !important; width: auto !important; }
    .new-company-form h2 { font-size: 1.15rem !important; line-height: 1.25 !important; margin: 1.5rem 0 0.5rem 0 !important; padding: 0 !important; height: auto !important; }
    .new-company-form label.ui-outputlabel { display: block !important; width: auto !important; margin: 0.6rem 0 0.25rem 0 !important; padding: 0 !important; }
    .new-company-form label.ui-outputlabel + br { display: none; }
    .new-company-form .ui-message:empty { display: none !important; }
    .new-company-form .ui-message { margin: 0.25rem 0 0 0 !important; }
    .new-company-form input.ui-inputtext,
    .new-company-form textarea.ui-inputtextarea,
    .new-company-form .ui-password,
    .new-company-form .ui-password > input { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
    .new-company-form .ui-selectonebutton { display: flex !important; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0 0 !important; }
    .new-company-form .ui-selectonebutton > .ui-button { flex: 1 1 100%; margin: 0 !important; border-radius: 4px !important; }
    .new-company-form table#teOrSelectCompanyTable,
    .new-company-form table#teOrSelectCompanyTable tbody,
    .new-company-form table#teOrSelectCompanyTable tr,
    .new-company-form table#teOrSelectCompanyTable td { display: block; width: 100%; padding: 0; }
    .new-company-form p.logo { display: block !important; width: 100% !important; margin: 0 !important; }
    .new-company-form p.logo > label#companyLogo { display: flex !important; align-items: center; width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; padding: 0 0.5rem !important; box-sizing: border-box; }
    .new-company-form #logoFile,
    .new-company-form .file-delete { display: inline-block !important; vertical-align: top; margin: 0.5rem 0 0 0 !important; float: none !important; width: auto !important; height: auto !important; }
    .new-company-form #logoFile .ui-fileupload-buttonbar { padding: 0 !important; border: 0 !important; background: none !important; }
    .new-company-form #create_panel { display: block !important; clear: both; }
    #requestForm.new-company-form .form-bottom .action-buttons { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0.6rem; clear: both; margin: 1.5rem 0 !important; padding: 0 !important; width: 100% !important; min-width: 100% !important; max-width: none !important; float: none !important; }
    #requestForm.new-company-form .form-bottom .action-buttons > .ui-button { float: none !important; position: static !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; min-height: 3rem; }
}

/* FXL 261118 : formulaire de creation de compte partenaire - complements (tous ecrans) */
/* bouton tutoriel : meme bleu que le titre H1 (rgb 0,71,163) au lieu du bleu clair par defaut */
.tutorial-button.ui-button { background: #0047a3 !important; border-color: #0047a3 !important; color: #ffffff !important; }
.tutorial-button.ui-button:hover,
.tutorial-button.ui-button:focus { background: #003a85 !important; border-color: #003a85 !important; }
/* Projets ACTE : case a cocher et libelle sur la meme ligne, alignes en haut */
.new-company-form .acte-line { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; }
.new-company-form .acte-line > .ui-chkbox { flex: 0 0 auto; margin: 0.1rem 0 0 0; }
/* le lien « projets ACTE » est hors du label : un clic dessus ne coche pas la case */
.new-company-form .acte-line > .acte-text { flex: 1 1 auto; margin: 0; }
.new-company-form .acte-line > .acte-text > label { display: inline !important; margin: 0 !important; }
/* Annuler / Valider : meme police que les autres boutons de la page (etaient en 12px majuscules graisse 100) */
#requestForm.new-company-form .form-bottom .action-buttons > .ui-button,
#requestForm.new-company-form .form-bottom .action-buttons > .ui-button .ui-button-text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important; font-size: 1rem !important; font-weight: 400 !important; text-transform: none !important; }
@media (max-width: 767px) {
    /* meme espacement au-dessus de « Projets ACTE » qu'au-dessus des titres de section */
    .new-company-form .form-title { margin: 1.5rem 0 0.5rem 0 !important; padding: 0 !important; }
    /* oeil du mot de passe : le conteneur etait en ligne et l'icone portait 25.6px de marge droite -> 12px du bord, centre */
    .new-company-form .ui-password { display: block !important; position: relative; }
    .new-company-form .ui-password > .ui-password-icon { right: 0.75rem !important; top: 50% !important; margin: -0.5rem 0 0 0 !important; }
    /* boutons du logo (ajouter / supprimer) sur la meme ligne de base : le bouton supprimer porte top:4px */
    .new-company-form p.logo { margin-bottom: 0.5rem !important; }
    .new-company-form #logoFile,
    .new-company-form .file-delete { vertical-align: top !important; margin-top: 0 !important; margin-bottom: 0 !important; }
    .new-company-form #logoFile { position: relative; top: 4px; margin-right: 0 !important; }
}

/* FXL 261118 : creation de compte partenaire - ligne « Je certifie avoir lu les conditions d'utilisation » alignee
   comme la ligne Projets ACTE (case + texte), et fenetre des conditions adaptee au telephone. */
.new-company-form .terms-line { display: flex; align-items: flex-start; gap: 0.5rem; }
.new-company-form .terms-line > .ui-chkbox { flex: 0 0 auto; margin: 0.1rem 0 0 0; }
.new-company-form .terms-line > .terms-text { flex: 1 1 auto; }
.new-company-form .acte-line a.acte-link { text-decoration: underline; }
@media (max-width: 767px) {
    .new-company-form .form-terms-of-use { margin: 1rem 0 0 0 !important; padding: 0 !important; }
    /* la fenetre s'ouvrait a 343 px de large sans retour a la ligne : centree, pleine largeur utile, defilable */
    .ui-overlaypanel.terms-overlay { position: fixed !important; left: 0.75rem !important; right: 0.75rem !important; top: 50% !important; transform: translateY(-50%) !important; width: auto !important; max-width: none !important; max-height: calc(100vh - 1.5rem); overflow-x: hidden; overflow-y: auto; box-sizing: border-box; }
    .ui-overlaypanel.terms-overlay,
    .ui-overlaypanel.terms-overlay * { white-space: normal !important; }
    .ui-overlaypanel.terms-overlay .overlaypanel-content,
    .ui-overlaypanel.terms-overlay .ui-overlaypanel-content { width: auto !important; min-width: 0 !important; max-width: 100% !important; padding: 1rem !important; }
    .ui-overlaypanel.terms-overlay .ui-overlaypanel-content .overlaypanel-content { padding: 0 !important; }
    .ui-overlaypanel.terms-overlay .overlay-title { font-size: 1.1rem; line-height: 1.3; margin: 0 2rem 0.75rem 0; }
    .ui-overlaypanel.terms-overlay ul { margin: 0; padding-left: 0; list-style: none; }
    .ui-overlaypanel.terms-overlay li { margin: 0 0 0.5rem 0; line-height: 1.35; text-align: left; }
}

/* FXL 261118 : creation de compte partenaire (telephone) - 24 px entre la ligne « Je certifie... » et le bouton
   Annuler. La ligne etait flottante (float:right) : la marge du bloc de boutons etait absorbee et ils se touchaient. */
@media (max-width: 767px) {
    .new-company-form .form-terms-of-use { float: none !important; position: static !important; height: auto !important; width: auto !important; }
    #requestForm.new-company-form .form-bottom { clear: both; float: none !important; height: auto !important; padding-top: 1.5rem !important; margin: 0 !important; }
    #requestForm.new-company-form .form-bottom .action-buttons { margin-top: 0 !important; }
}

/* FXL 261118 : creation de compte partenaire - espace au-dessus de « Autres illustrations » (tous ecrans),
   pour le detacher des boutons du logo. */
#requestForm.new-company-form #create_panel > label.ui-outputlabel:first-of-type { display: inline-block; margin-top: 1.25rem !important; }

/* FXL 261118 : creation de compte partenaire (telephone) - meme espace (8 px) entre chaque libelle et son champ.
   Il variait de 4 px (Logo, Nom, Prenom, mots de passe) a 9 px (les autres) selon la marge haute du champ. */
@media (max-width: 767px) {
    .new-company-form label.ui-outputlabel { margin-bottom: 0.5rem !important; }
    .new-company-form input.ui-inputtext,
    .new-company-form textarea.ui-inputtextarea,
    .new-company-form .ui-password,
    .new-company-form .ui-password > input,
    .new-company-form p.logo,
    .new-company-form p.logo > label#companyLogo { margin-top: 0 !important; }
    #requestForm.new-company-form #create_panel > label.ui-outputlabel:first-of-type { margin-bottom: 0.5rem !important; }
}

/* FXL 261118 : creation de compte partenaire (telephone) - mode « Structure existante ». La liste des structures
   faisait 427 px dans une colonne de 315 et debordait a droite : pleine largeur, meme espacement que les boutons. */
@media (max-width: 767px) {
    .new-company-form #companyPanelTitle { display: block !important; margin: 0.5rem 0 0 0 !important; padding: 0 !important; height: auto !important; }
    .new-company-form #companyPanelTitle > label.course-select { display: block !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
    .new-company-form select#existingCompany { display: block; width: 100% !important; max-width: 100% !important; min-height: 2.5rem; margin: 0 !important; box-sizing: border-box; }
    .new-company-form #optionActionCompany { margin-bottom: 0 !important; }
}

/* =====================================================================================
   FXL 261118 : formulaire de creation de compte partenaire - alignements sur ordinateur (>= 768px).
   - boutons « Creer une nouvelle structure / Structure existante » alignes a gauche sur le titre et le bouton
     tutoriel (le composant porte un margin-left:20px en ligne) ;
   - libelles alignes a gauche : les messages d'erreur vides (blocs en ligne de 16 px) decalaient le libelle
     suivant (« Descriptif de la structure » a 46 px au lieu de 30) -> masques quand ils sont vides ;
   - « Vos identifiants » : libelle au-dessus de chaque champ, champs alignes et de meme largeur que ceux de
     l'adresse (le 1er etait a cote de son libelle, les libellés a 835 / 851 / 859 px) ;
   - oeil des mots de passe a 12 px du bord droit du champ, centre.
   ===================================================================================== */
@media (min-width: 768px) {
    .new-company-form #createOrSelectCompany { margin-left: 0 !important; }
    .new-company-form .form-side label.ui-outputlabel:not(#companyLogo) { margin-left: 0 !important; padding-left: 0 !important; }
    .new-company-form .form-side .ui-message:empty { display: none !important; }
    .new-company-form .form-vertical-align label.ui-outputlabel { display: block !important; margin: 0.3rem 0 !important; }
    .new-company-form .form-vertical-align label.ui-outputlabel + br { display: none; }
    .new-company-form .form-vertical-align > input.ui-inputtext,
    .new-company-form .form-vertical-align > .ui-password { display: block !important; margin-left: 20px !important; }
    .new-company-form .form-vertical-align > .ui-password { position: relative; width: 75% !important; max-width: calc(100% - 20px); }
    .new-company-form .form-vertical-align > .ui-password > input { width: 100% !important; margin: 0 !important; box-sizing: border-box; }
    .new-company-form .form-vertical-align > .ui-password > .ui-password-icon { right: 0.75rem !important; top: 50% !important; margin: -0.5rem 0 0 0 !important; }
    .new-company-form .form-vertical-align > .ui-message { display: block; margin-left: 20px; }
}

/* FXL 261118 : creation de compte partenaire, ordinateur (>= 768px) - espacements homogenes autour des titres.
   32 px au-dessus du texte de chaque titre (Informations sur le partenaire, Projets ACTE, Informations du contact,
   Vos identifiants) ; premier champ des colonnes de droite a la meme hauteur que celui de gauche (la colonne
   Adresse passe de 51 a 30 px de marge haute dans le xhtml) ; 24 px au-dessus des boutons Annuler / Valider. */
@media (min-width: 768px) {
    .new-company-form #optionActionCompany { margin-bottom: 1.375rem !important; }
    .new-company-form .form-side > p.form-title.sponsor-fg-color { margin-top: 0.75rem !important; margin-bottom: 0.25rem !important; }
    .new-company-form .contact-panel > .form-side { margin-top: 0.125rem !important; }
    .new-company-form .contact-panel > .form-side.form-right > .form-vertical-align { margin-top: 0 !important; }
    #requestForm.new-company-form .form-bottom { margin-top: 1.5rem !important; }
}

/* FXL 261118 : creation de compte partenaire, ordinateur (>= 768px) - meme espace partout entre un libelle et son
   champ (5 px) et entre un champ et le libelle suivant (5 px). La colonne de gauche etait a 10 px (saut de ligne
   apres le libelle + marge du champ), « Logo » a 18 px. Les sauts de ligne sont neutralises, libelles en bloc.
   La rangee du logo (bloc en ligne) est remontee de 0.7rem pour retrouver les memes 5 px. */
@media (min-width: 768px) {
    .new-company-form .form-side label.ui-outputlabel:not(#companyLogo) { display: block !important; margin: 0.3rem 0 !important; }
    .new-company-form .form-side label.ui-outputlabel + br,
    .new-company-form .form-side label.ui-outputlabel ~ br,
    .new-company-form .form-side p.logo + br { display: none; }
    .new-company-form .form-side input.ui-inputtext,
    .new-company-form .form-side textarea.ui-inputtextarea { margin-top: 0 !important; margin-bottom: 0 !important; }
    .new-company-form .form-side textarea.ui-inputtextarea { display: block; }
    .new-company-form p.logo { margin: 0 !important; }
    .new-company-form p.logo > label#companyLogo { margin-top: 0 !important; }
    .new-company-form p.logo,
    .new-company-form #logoFile,
    .new-company-form .file-delete { position: relative; top: -0.7rem; }
    .new-company-form #create_panel { margin-top: -0.7rem; }
}

/* FXL 261118 : ligne Projets ACTE de « Modifier votre compte » (edit_company.xhtml) - memes regles que sur la
   creation de compte, sans dependre de la classe new-company-form. */
.acte-line { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; }
.acte-line > .ui-chkbox { flex: 0 0 auto; margin: 0.1rem 0 0 0; }
.acte-line > .acte-text { flex: 1 1 auto; margin: 0; }
.acte-line > .acte-text > label { display: inline !important; margin: 0 !important; }
.acte-line a.acte-link { text-decoration: underline; }

/* FXL 261119 : telephone - marges laterales de la page ramenees de 30 px a 16 px (#content-wrapperS3e) : 28 px de
   contenu en plus sur un ecran de 390 px. Le catalogue garde ses 8 px (regle du 09/11 ci-dessus). */
@media (max-width: 767px) {
    #content-wrapperS3e { padding-left: 1rem !important; padding-right: 1rem !important; }
    #content-wrapperS3e:has(#courseListForm) { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
}

/* =====================================================================================
   FXL 261119 : page « Deposer une offre » (public/login-sponsor.xhtml, .login-sponsor-box) sur telephone.
   Le titre « Deja membre ? Veuillez vous connecter... » avait une hauteur fixe de 48 px et debordait sur le texte,
   les champs depassaient a droite et l'oeil du mot de passe etait a gauche. Une colonne en pleine largeur,
   libelles au-dessus des champs, champs a 100 %, boutons empiles en pleine largeur dans la police des autres
   boutons (etaient en 12 px majuscules maigres).
   ===================================================================================== */
@media (max-width: 767px) {
    .login-sponsor-box { margin: 0 !important; width: 100% !important; }
    .login-sponsor-box > .left,
    .login-sponsor-box > .right { width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
    .login-sponsor-box .request-form { margin: 0 0 1.5rem 0 !important; width: 100% !important; }
    .login-sponsor-box .title { height: auto !important; line-height: 1.3 !important; font-size: 1.2rem !important; margin: 1rem 0 0.75rem 0 !important; padding: 0 0 0.5rem 0 !important; text-align: left !important; }
    .login-sponsor-box .request-form p { line-height: 1.45; margin: 0 0 0.5rem 0 !important; }
    .login-sponsor-box .request-form > br { display: none; }
    .login-sponsor-box label.ui-outputlabel { display: block !important; width: auto !important; margin: 0.75rem 0 0.5rem 0 !important; padding: 0 !important; }
    .login-sponsor-box input.ui-inputtext,
    .login-sponsor-box .ui-password,
    .login-sponsor-box .ui-password > input { width: 100% !important; max-width: 100% !important; margin: 0 !important; box-sizing: border-box; }
    .login-sponsor-box .ui-password { display: block !important; position: relative; }
    .login-sponsor-box .ui-password > .ui-password-icon { left: auto !important; right: 0.75rem !important; top: 50% !important; margin: -0.5rem 0 0 0 !important; }
    .login-sponsor-box .ui-message:empty { display: none !important; }
    .login-sponsor-box .action-buttons { display: flex !important; flex-direction: column; align-items: stretch !important; width: 100% !important; min-width: 0 !important; margin: 1.25rem 0 0 0 !important; padding: 0 !important; float: none !important; }
    .login-sponsor-box .action-buttons > .ui-button { width: 100% !important; max-width: 100% !important; min-height: 3rem; margin: 0 !important; float: none !important; position: static !important; }
    .login-sponsor-box .action-buttons > .ui-button,
    .login-sponsor-box .action-buttons > .ui-button .ui-button-text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important; font-size: 1rem !important; font-weight: 400 !important; text-transform: none !important; }
    .login-sponsor-box .login-link { margin: 0.75rem 0 0 0 !important; text-align: center; }
}

/* FXL 261119 : creation de compte partenaire - colonne Adresse : 30 px de marge haute sur ordinateur seulement (etait en
   style en ligne !important : 35 px de trou entre « Adresse e-mail administrateur » et « Adresse » sur telephone). */
@media (min-width: 768px) {
    .new-company-form .new-company-address { margin-top: 30px !important; }
}

/* =====================================================================================
   FXL 261119 : fiche d'une structure (public/company-detail.xhtml, classe company-page) sur telephone.
   - le logo remontait sur le titre « Fiche structure » (marge haute negative de 48 px) : remis dans le flux,
     a gauche du nom de la structure ;
   - les deux colonnes (description, bloc Contacts) s'empilent en pleine largeur (elles avaient 32 et 17 px de
     retrait de chaque cote) ; .flex.company-columns l'emporte sur primeflex charge apres ;
   - bloc Contacts : retraits ramenes a 1.5rem, espacements reguliers a la place des sauts de ligne.
   La rubrique « Acces » vide est masquee dans le xhtml (tous ecrans).
   ===================================================================================== */
@media (max-width: 767px) {
    .company-page .top-logo-img { margin: 0 0.75rem 0 0 !important; width: 4.5rem !important; height: auto !important; }
    .company-page .company-head > .flex { align-items: center; width: 100%; }
    .company-page .company-head h3 { margin: 0 !important; font-size: 1.15rem; line-height: 1.3; }
    .company-page .company-head br { display: none; }
    .company-page .company-head p { margin: 0; }
    .flex.company-columns { display: block !important; }
    .company-page .div2_show,
    .company-page .div1_show { margin: 0 0 1rem 0 !important; width: 100% !important; max-width: 100% !important; float: none !important; }
    .company-page .div2_show p.mtop { margin: 0.5rem 0 0 0 !important; text-align: left; }
    .company-page .div2_show > br { display: none; }
    .company-page [id$=Contact-Panel] .ui-panel-content { padding: 0.75rem 1rem !important; }
    .company-page [id$=Contact-Panel] .ui-panel-content br { display: none; }
    .company-page [id$=Contact-Panel] .ui-panel-content p { margin: 0 0 0.35rem 0; }
    .company-page [id$=Contact-Panel] .ui-panel-content p:has(> i) { margin-top: 0.75rem; }
    .company-page [id$=Contact-Panel] .ui-panel-content > p:first-child { margin-top: 0; }
    .company-page [id$=Contact-Panel] .ml-5 { margin-left: 1.5rem !important; }
    .company-page .card.mt-6 { margin-top: 1.5rem !important; }
}

/* FXL 261120 : « Modifier votre compte » partenaire (edit_company.xhtml) - l'adresse e-mail administrateur est un
   p:autoComplete, que la regle .ui-autocomplete { width: 100% !important } faisait passer sous son libelle :
   meme largeur et meme retrait que les champs voisins (.request-form input : 75 %, 1.25rem). */
.request-form .form-side .ui-autocomplete.admin-email-ac { width: 75% !important; margin-left: 1.25rem; vertical-align: middle; }
.request-form .form-side .ui-autocomplete.admin-email-ac input { width: 100% !important; margin-left: 0 !important; }
@media (max-width: 767px) {
    .request-form .form-side .ui-autocomplete.admin-email-ac { width: 100% !important; margin-left: 0; }
}
/* FXL 261120 : « Modifier votre compte » partenaire - bloc logo et case « Projets ACTE » en retrait de 1rem, comme l'editeur du descriptif (ml-3). */
@media (min-width: 768px) {
    .edit-company-form .form-side .acte-line { margin-left: 1rem !important; }
}
/* FXL 261120 : « Modifier votre compte » partenaire sur telephone. Les champs gardaient leur largeur de bureau
   (75 % + retrait) et debordaient a droite, le nom du logo aussi (min-width), « Photos supplementaires » etait centre,
   les boutons Annuler / Valider sortaient de l'ecran. Une colonne pleine largeur, libelles au-dessus. */
@media (max-width: 767px) {
    .edit-company-form .form-side input.ui-inputfield,
    .edit-company-form .form-side .ui-password,
    .edit-company-form .form-side .ui-autocomplete { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
    .edit-company-form .form-side .ui-password input.ui-inputfield { width: 100% !important; }
    .edit-company-form .form-side label.label-left { display: block; width: auto !important; }
    .edit-company-form [id$="create_panel"] { display: block !important; text-align: left; }
    .edit-company-form .form-side.form-bottom,
    .edit-company-form .form-terms-of-use { margin-left: 5% !important; margin-right: 5% !important; width: auto !important; float: none !important; }
    /* boutons Annuler / Valider empiles, chacun sur toute la largeur */
    .edit-company-form .action-buttons { display: flex !important; flex-direction: column; gap: 0.6rem; margin: 0 !important; padding: 0 !important; width: 100% !important; }
    .edit-company-form .action-buttons > .ui-button { flex: 0 0 auto; width: 100% !important; min-width: 0 !important; margin: 0 !important; }
}
/* FXL 261120 : « Modifier votre compte » partenaire - descriptif de la structure (editeur) a la largeur et au retrait
   des champs (75 %, 1.25rem) au lieu de ml-3 + pleine largeur ; champ mot de passe : enveloppe en bloc (l'icone oeil
   est positionnee par rapport a elle). */
.edit-company-form .form-side .ui-texteditor[id$="companyActivity"] { margin-left: 1.25rem !important; width: 75% !important; box-sizing: border-box; }
.edit-company-form .ui-password { display: block; position: relative; }
@media (max-width: 767px) {
    .edit-company-form .form-side .ui-texteditor[id$="companyActivity"] { margin-left: 0 !important; width: 100% !important; }
    /* « * Champs obligatoires » : une regle mobile generale (.contact-panel en colonne flex, order: -1) le faisait remonter
       en tete du bloc contact ; il reprend sa place, juste avant la case des conditions d'utilisation. */
    .edit-company-form .required-field { order: 0 !important; float: none !important; clear: both; display: block; align-self: stretch !important; width: auto !important; margin: 1rem 5% 0.5rem 5% !important; text-align: left; }
}

/* FXL 261120 : « Modifier votre compte » partenaire - ligne du logo (div.logo-row : nom du fichier + boutons Ajouter /
   Supprimer). Les deux boutons ont la meme taille (2.4rem) et sont alignes sur le nom du fichier ; « Photos
   supplementaires » est separe par un espace plus net. Sur telephone : nom du fichier en pleine largeur, boutons dessous,
   plus de vide sous « Photos supplementaires » (sauts de ligne et paragraphes vides du bloc) ni de double marge avant la
   colonne de droite. */
.edit-company-form .logo-row { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0 1rem; }
.edit-company-form .logo-row > [id$="companyLogo"] { flex: 0 1 22rem; min-width: 0 !important; width: auto !important; margin: 0 !important; display: block; box-sizing: border-box;
    padding: 0.4rem 0.5rem !important; border: 1px solid #a8a8a8; border-radius: 4px; line-height: 1.4; font-size: 0.95rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-company-form .logo-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.edit-company-form .logo-actions [id$="logoFile"],
.edit-company-form .logo-actions .file-delete { display: block; margin: 0 !important; position: static !important; top: auto !important; width: auto !important; height: auto !important; padding: 0 !important; }
.edit-company-form .logo-actions .ui-fileupload-buttonbar { padding: 0 !important; background: none !important; border: 0 !important; }
.edit-company-form .logo-actions .ui-fileupload-choose,
.edit-company-form .logo-actions .file-delete .ui-button { width: 2.4rem !important; height: 2.4rem !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; top: auto !important;
    border-radius: 6px !important; display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; }
.edit-company-form .logo-actions .ui-icon { position: static !important; margin: 0 !important; left: auto !important; top: auto !important; }
.edit-company-form [id$="create_panel"] { margin-top: 1.25rem !important; }
@media (max-width: 767px) {
    .edit-company-form .logo-row { flex-wrap: wrap; margin-left: 0; }
    .edit-company-form .logo-row > [id$="companyLogo"] { flex: 1 1 100%; }
    .edit-company-form [id$="create_panel"] { margin-bottom: 0 !important; }
    .edit-company-form [id$="create_panel"] > br,
    .edit-company-form [id$="create_panel"] > p:empty { display: none; }
    .edit-company-form .form-side.form-left { margin-bottom: 0 !important; }
    .edit-company-form .form-side.form-right { margin-top: 1.25rem !important; }
}
