/*

Theme Name: Twenty Twenty Four Child Theme
Theme URI: http://theme.co/x/
Author: CHM
Author URI: http://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.1
Template: twentytwentyfour

*/

p, span, a.x-btn {
   /* font-family: Montserrat !important;*/
}


/* Masque "Connexion" quand connecté */
body.user-logged-in .logged-out-only {
    display: none !important;
}

/* Masque "Mon compte" quand déconnecté */
body.user-logged-out .logged-in-only {
    display: none !important;
}

/* Icône utilisateur pour "Connexion" */
.logged-out-only .wp-block-navigation-item__content::before {
    font-family: 'dashicons';
    content: "\f110"; /* dashicons-admin-users */
    margin-right: 0.5em;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Icône maison pour "Mon compte" */
.logged-in-only > .wp-block-navigation-item__content::before {
    font-family: 'dashicons';
    content: "\f102"; /* dashicons-admin-home */
    margin-right: 0.5em;
    font-size: 1.2em;
    vertical-align: middle;
}

.x-navbar .desktop .x-nav > li > a {
    font-size: 13px !important;
}

.masthead-inline .x-navbar.x-navbar-fixed-left .desktop .sub-menu {
    top: 30px !important;
    left: 0 !important;
}

body {
    background-image: url("http://www.culture-crous.paris/wp-content/uploads/2024/09/Carre_blanc.jpg") !important;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.page-id-23309 {
    background: none !important;
}

.x-navbar .x-nav-wrap .x-nav > li > a {
    text-align: left;
    padding-left: 40px !important;
}


.desktop .sub-menu {
    border-radius: 0 !important;
}

.page-id-23309 .list-date {
	display:none;
}

table {
	width: 100%;
	overflow: auto;
}

.x-navbar-inner {
    overflow-y: auto;
}


a.nf-modal-link, a.nf-edit-post, a.ninja-forms-feditor-delete-post {
	text-transform: uppercase;
    FONT-SIZE: 15px;
    padding: 10px 10px 10px 10px;
	margin: 20px 5px 20px 0px;
    background-color: #a90e00;
    color: white;
    border-radius: 5px;
	border-bottom-style: outset;
	border-bottom-width: 3px;
	border-bottom-color: #a90e00;
}

a.nf-modal-link {
	margin: 15px 15px 15px 15px;
}

.projets {
    background-color: white;
    padding: 15px 15px 15px 15px;
	border-radius: 5px;
	margin: 15px 0px 15px 0px;
}

#ninja_forms_field_2269_div_wrap, #ninja_forms_field_2277_div_wrap {
	OVERFLOW: scroll;
    height: 200px;
}

p.requis, span.requis {
	color: red !important;
}

#menu-cas {
	list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    float: left;
}

.menu li a, .sub-menu li a {
	text-transform : uppercase;
    display: block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

a.menu:hover {
	color: dark red;
	background-color: dark red;
}

div.menu_cas {
	background-color : #FFF;
	margin-bottom: 70px !important ;
}

div.menu_cas a {
    border-bottom-right-radius: 5px;
    background-color: white;
}

.x-social-global {
    font-size: 30px;
    text-align: center;
    margin: 5px;
}

.x-topbar { 
    border-bottom: none !important;
}

/* ============================================
   BANNIÈRES DE STATUT ÉTUDIANT
   ============================================ */

.banniere-statut {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

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

/* Bannière validée (verte) */
.banniere-validee {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 5px solid #4caf50;
}

/* Bannière non validée (orange/rouge) */
.banniere-non-validee {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ff9800;
}

/* Icône */
.banniere-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.banniere-validee .banniere-icon {
    color: #4caf50;
}

.banniere-non-validee .banniere-icon {
    color: #ff9800;
}

/* Contenu */
.banniere-content {
    flex: 1;
}

.banniere-titre {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--contrast);
}

.banniere-validee .banniere-titre {
    color: #2e7d32;
}

.banniere-non-validee .banniere-titre {
    color: #e65100;
}

.banniere-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--wp--preset--color--contrast-2);
}

.banniere-text strong {
    color: var(--wp--preset--color--contrast);
    font-weight: 600;
}

.banniere-text a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.banniere-text a:hover {
    color: var(--wp--preset--color--accent-3);
}

/* Bouton d'action */
.banniere-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.banniere-btn:hover {
    background: var(--wp--preset--color--accent-3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bouton fermer */
.banniere-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--wp--preset--color--contrast-2);
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.banniere-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .banniere-statut {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .banniere-icon {
        font-size: 2rem;
    }
    
    .banniere-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* Animation de fermeture */
.banniere-statut.banniere-fermee {
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ============================================
   CARTES D'ACCÈS RAPIDE - DASHBOARD
   ============================================ */

.cartes-acces-rapide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Carte individuelle */
.carte-acces {
    background: var(--wp--preset--color--base-2, #fff);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Effet de fond coloré au hover */
.carte-acces::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.carte-acces:hover::before {
    transform: scaleX(1);
}

.carte-acces:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Icône */
.carte-icone {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.carte-acces:hover .carte-icone {
    transform: scale(1.1);
}

/* Si c'est un dashicon */
.carte-icone .dashicons {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 3.5rem;
}

/* Titre */
.carte-titre {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--contrast);
}

/* Description */
.carte-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--wp--preset--color--contrast-2);
    margin-bottom: 2rem;
    flex: 1;
}

/* Call-to-action */
.carte-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.carte-cta:hover {
    background: var(--wp--preset--color--accent-3);
    transform: translateX(4px);
}

.carte-fleche {
    transition: transform 0.2s;
}

.carte-cta:hover .carte-fleche {
    transform: translateX(4px);
}

/* ============================================
   VARIANTES DE COULEUR
   ============================================ */

/* Violet */
.carte-violet::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.carte-violet:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #f3ecff 100%);
}

.carte-violet .carte-icone {
    color: #667eea;
}

/* Orange */
.carte-orange::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.carte-orange:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.carte-orange .carte-icone {
    color: #f5576c;
}

/* Jaune */
.carte-jaune::before {
    background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
}

.carte-jaune:hover {
    background: linear-gradient(135deg, #fffbf0 0%, #fff4e6 100%);
}

.carte-jaune .carte-icone {
    color: #f59e0b;
}

/* Bleu */
.carte-bleu::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.carte-bleu:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.carte-bleu .carte-icone {
    color: #0ea5e9;
}

/* Vert */
.carte-vert::before {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.carte-vert:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.carte-vert .carte-icone {
    color: #10b981;
}

/* Rose */
.carte-rose::before {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.carte-rose:hover {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.carte-rose .carte-icone {
    color: #ec4899;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .cartes-acces-rapide {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cartes-acces-rapide {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carte-acces {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   VARIANTE : Cartes en mode compact
   ============================================ */

.cartes-acces-rapide.compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.cartes-acces-rapide.compact .carte-acces {
    padding: 1.5rem 1rem;
}

.cartes-acces-rapide.compact .carte-icone {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cartes-acces-rapide.compact .carte-titre {
    font-size: 1.125rem;
}

.cartes-acces-rapide.compact .carte-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* CAS styling */

/* ============================================
   STRUCTURE CAS - Conteneur principal
   ============================================ */

.cas-container {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin: 0 auto;
    padding: var(--wp--preset--spacing--50, 2rem);
}

/* ============================================
   GRILLE DEUX COLONNES - 75% / 25%
   ============================================ */

.cas-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile : 1 colonne */
    gap: 2rem;
}

/* Desktop : 75% / 25% */
@media (min-width: 782px) {
    .cas-grid {
        grid-template-columns: 3fr 1fr; /* 75% / 25% */
    }
}

/* ============================================
   COLONNE PRINCIPALE (gauche)
   ============================================ */

.cas-col-main {
    min-width: 0; /* Empêche le débordement */
}

.cas-article {
    background: var(--wp--preset--color--base-2, #fff);
}

.cas-featured-image {
    margin-bottom: 2rem;
}

.cas-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cas-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--wp--preset--color--contrast-3, #ddd);
}

.cas-title {
    font-size: var(--wp--preset--font-size--x-large, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cas-excerpt {
    font-size: var(--wp--preset--font-size--medium, 1.125rem);
    margin-bottom: 1rem;
    color: var(--wp--preset--color--contrast-2, #666);
}

.cas-categories {
    margin-bottom: 1rem;
    font-size: var(--wp--preset--font-size--small, 0.875rem);
}

.cas-content {
    /* Styles pour le contenu principal */
}

/* ============================================
   SIDEBAR (droite)
   ============================================ */

.cas-col-sidebar {
    /* La sidebar s'empile en mobile, côte-à-côte en desktop */
}

/* Mobile : ajoute de l'espace entre les widgets */
@media (max-width: 781px) {
    .cas-col-sidebar > * {
        margin-bottom: 2rem;
    }
}

/* ============================================
   MODE ÉDITION FORMULAIRE
   ============================================ */

.cas-form-wrapper {
    background: var(--wp--preset--color--base-2, #fff);
    padding: 2rem;
    border-radius: 8px;
}

/* ============================================
   BOUTONS X
   ============================================ */

.x-btn, input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--contrast, #111);
    color: var(--wp--preset--color--base, #fff);
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.x-btn:hover, input[type="submit"]:hover {
    opacity: 0.85;
}

.x-btn-rounded, input[type="submit"] {
    border-radius: 50px;
}

/* ============================================
   RESPONSIVE - Points de rupture
   ============================================ */

/* Tablette */
@media (min-width: 600px) and (max-width: 781px) {
    .cas-container {
        padding: var(--wp--preset--spacing--40, 1.5rem);
    }
}

/* Mobile */
@media (max-width: 599px) {
    .cas-container {
        padding: var(--wp--preset--spacing--30, 1rem);
    }
    
    .cas-title {
        font-size: var(--wp--preset--font-size--large, 2rem);
    }
}

.cas-meta {
    padding:15px;
    background: white !important;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}


.cas-block {
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 15px;
    background: white !important;
    border-radius: 5px;
}

.cas-block header {
    border-bottom: solid 1px grey;
    margin-bottom: 15px;
}

.cas-block .col-1 {
    width:100%;
    margin-bottom: 10px;
}

span.cas_user_value {
    color: #bb3523;
}

a.btn-disabled {
    background-color: #c7a3a3 !important;
    border-color: #bf8787 !important;
}

.cas-actions {
    text-align: right;
    padding-top: 15px;
    padding-right: 15px;
    width: 100%;
}

.cas-actions li {
    display: inline-block;
}

.ui-datepicker{
    z-index: 1000 !important;
}


.progress {
    clear:left;
    background-color: gainsboro !important;
    height: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.progress-bar {
    background-color: darkseagreen !important;
    height: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

a.action-cas{
}

a.link-cas {
    border: solid 2px green;
    display: inline-block;
    padding: 7px;
    text-transform: uppercase;
    color: green;
    border-radius: 5px;
}


span.yellow {
    color: skyblue;
}

span.orange {
    color : #FC9219;
}

span.green {
    color: green;
}

span.red {
    color: brown;
}

div.form_cas {
	background-color : #FFF;
	padding: 25px 25px 25px 25px;
	border-radius: 5px;
}

.commissions > .x-accordion-inner {
background-color: rgba(255, 255, 255, 0.5) !important;
}

span.note {
    display: block;
    text-align: center;
}


/* ============================================
   MES PROJETS CAS - Container
   ============================================ */

.cas-mes-projets {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin: 0 auto;
    padding: var(--wp--preset--spacing--50, 2rem);
}

.cas-projets-header h2 {
    font-size: var(--wp--preset--font-size--x-large, 2.5rem);
    margin-bottom: 2rem;
}

/* ============================================
   RÉSUMÉ ET STATUT COMMISSION
   ============================================ */

.cas-projets-summary {
    background: var(--wp--preset--color--base-2, #fff);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.cas-count {
    font-size: var(--wp--preset--font-size--medium, 1.125rem);
    margin-bottom: 1.5rem;
}

.cas-commission-status {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.cas-commission-status.cas-open {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.cas-commission-status.cas-closed {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.cas-notice {
    color: var(--wp--preset--color--contrast-2, #666);
    font-style: italic;
}

.cas-warning {
    color: #d32f2f;
    font-weight: 500;
}

/* ============================================
   GRILLE DE PROJETS
   ============================================ */

.cas-projets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 600px) {
    .cas-projets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cas-projets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   CARTE PROJET
   ============================================ */

.cas-projet-card {
    background: var(--wp--preset--color--base-2, #fff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cas-projet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cas-projet-thumbnail {
    overflow: hidden;
}

.cas-projet-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cas-projet-card:hover .cas-projet-thumbnail img {
    transform: scale(1.05);
}

.cas-projet-content {
    padding: 1.5rem;
}

.cas-projet-title {
    font-size: var(--wp--preset--font-size--medium, 1.25rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cas-projet-title a {
    color: var(--wp--preset--color--contrast, #111);
    text-decoration: none;
}

.cas-projet-title a:hover {
    color: var(--wp--preset--color--accent-3, #d8613c);
}

.cas-projet-status {
    margin-bottom: 1rem;
}

/* ============================================
   BARRE DE PROGRESSION
   ============================================ */

.cas-projet-progress {
    margin-bottom: 1rem;
}

.cas-progress-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--contrast-2, #666);
}

.cas-progress-bar {
    height: 8px;
    background: var(--wp--preset--color--contrast-3, #ddd);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.cas-progress-fill {
    height: 100%;
    background: var(--wp--preset--color--accent-3, #4caf50);
    transition: width 0.3s;
}

.cas-progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--contrast, #111);
}

.cas-projet-date {
    font-size: 0.875rem;
    color: var(--wp--preset--color--contrast-2, #666);
    margin-bottom: 1rem;
}

.cas-projet-content .x-btn {
    margin-top: 0.5rem;
}

/* ============================================
   COMMISSION CAS - Header
   ============================================ */

.cas-commission {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin: 0 auto;
    padding: var(--wp--preset--spacing--50, 2rem);
}

.cas-commission-header {
    margin-bottom: 2rem;
}

.cas-commission-title {
    font-size: var(--wp--preset--font-size--xx-large, 3rem);
    margin-bottom: 1rem;
}

.cas-commission-content {
    background: var(--wp--preset--color--base-2, #fff);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cas-commission-dates {
    background: #e3f2fd;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

/* ============================================
   GROUPES PAR STATUT - Accordéons
   ============================================ */

.cas-commission-projets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cas-statut-group {
    border: 1px solid var(--wp--preset--color--contrast-3, #ddd);
    border-radius: 8px;
    overflow: hidden;
}

/* Toggle button */
.cas-statut-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--wp--preset--color--base-2, #fff);
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s;
}

.cas-statut-toggle:hover {
    background: var(--wp--preset--color--accent, #f5f5f5);
}

.cas-statut-toggle.is-open {
    background: var(--wp--preset--color--accent, #f5f5f5);
}

.cas-statut-label {
    flex: 1;
}

.cas-statut-count {
    color: var(--wp--preset--color--contrast-2, #666);
    font-weight: 400;
}

.cas-statut-icon {
    transition: transform 0.2s;
}

.cas-statut-toggle.is-open .cas-statut-icon {
    transform: rotate(180deg);
}

/* Couleurs selon statut */
.cas-statut-cree .cas-statut-toggle {
    border-left: 4px solid #9e9e9e;
}

.cas-statut-sauvegarde .cas-statut-toggle {
    border-left: 4px solid #2196f3;
}

.cas-statut-soumis .cas-statut-toggle {
    border-left: 4px solid #ff9800;
}

.cas-statut-en-rendez-vous .cas-statut-toggle {
    border-left: 4px solid #ffc107;
}

.cas-statut-rejete .cas-statut-toggle {
    border-left: 4px solid #f44336;
}

.cas-statut-soutenu .cas-statut-toggle {
    border-left: 4px solid #4caf50;
}

/* Contenu accordéon */
.cas-statut-content {
    padding: 0;
}

.cas-statut-content[hidden] {
    display: none;
}

/* ============================================
   TABLEAU DE PROJETS
   ============================================ */

.cas-projets-table-wrapper {
    overflow-x: auto;
    padding: 1.5rem;
}

.cas-projets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cas-projets-table thead {
    background: var(--wp--preset--color--base, #f9f9f9);
}

.cas-projets-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--wp--preset--color--contrast-3, #ddd);
}

.cas-projets-table td {
    padding: 1rem;
}

.cas-projets-table tr {
    border-bottom: 1px solid var(--wp--preset--color--contrast-3, #eee);
}

.cas-projets-table tbody tr:hover {
    background: var(--wp--preset--color--base, #f9f9f9);
}

.cas-projet-nom a {
    color: var(--wp--preset--color--contrast, #111);
    text-decoration: none;
    font-weight: 500;
}

.cas-projet-nom a:hover {
    color: var(--wp--preset--color--accent-3, #d8613c);
    text-decoration: underline;
}

/* Mini barre de progression */
.cas-projet-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cas-mini-progress {
    flex: 1;
    height: 6px;
    background: var(--wp--preset--color--contrast-3, #ddd);
    border-radius: 3px;
    overflow: hidden;
    max-width: 100px;
}

.cas-mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s;
}

.cas-progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 40px;
}

/* Bouton imprimer */
.cas-btn-print {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--wp--preset--color--contrast, #111);
    color: var(--wp--preset--color--base, #fff);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.cas-btn-print:hover {
    opacity: 0.85;
}

.cas-no-projects {
    padding: 2rem;
    text-align: center;
    color: var(--wp--preset--color--contrast-2, #666);
    font-style: italic;
}

div#ninja_forms_form_537_all_fields_wrap .hidden-wrap {
    max-height: 0 !important;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .cas-projets-table {
        font-size: 0.875rem;
    }
    
    .cas-projets-table th,
    .cas-projets-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .cas-mini-progress {
        max-width: 60px;
    }
}

/* ============================================
   PAGINATION
   ============================================ */

.cas-pagination {
    text-align: center;
    margin-top: 3rem;
}

/* Tribe Events - Version mise à jour */

/* États des événements */
span.en-ligne {
    color: green;
}
span.trop-tard {
    color: red;
}
span.complet {
    color: gray;
}

/* Conteneur principal */
.tribe-events-pro-photo {
    max-width: 1400px;
    display: block;
    margin: auto;
}

/* Titre */ 
h2.tribe-events-page-title {
    text-transform: uppercase;
    padding: 25px;
    text-align: center;
    font-size: 2em;
}

/* Grille responsive */
.tribe-common-g-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tribe-common-g-col {
    flex: 1 1 300px;
    max-width: 300px;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tribe-common-g-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Images des événements */
.tribe-events-pro-photo__event-featured-image-wrapper {
    height: 190px;
    overflow: hidden;
    background: black;
    position: relative;
}

.tribe-events-pro-photo__event-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 1s ease, transform 0.3s ease;
}

.tribe-events-pro-photo__event-featured-image:hover {
    filter: blur(2px);
    transform: scale(1.05);
}

/* Wrapper des détails */
.tribe-events-pro-photo__event-details-wrapper {
    display: flex;
    min-height: 95px;
}

/* Tag de date */
.tribe-events-pro-photo__event-date-tag {
    flex-shrink: 0;
    width: 60px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 5px;
    border-right: 1px solid #e9ecef; 
    max-width: 30% !important;
}

.tribe-events-pro-photo__event-date-tag-month {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.tribe-events-pro-photo__event-date-tag-daynum {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-top: 2px;
}

/* Détails de l'événement */
.tribe-events-pro-photo__event-details {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
}

/* Horaires */
.tribe-events-pro-photo__event-datetime {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

/* Titre de l'événement */
.tribe-events-pro-photo__event-title {
    font-size: 14px !important;
    line-height: 1.3;
    margin: 8px 0 !important;
    font-weight: 600;
}

.tribe-events-pro-photo__event-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tribe-events-pro-photo__event-title-link:hover {
    color: #007cba;
}

/* Prix */
.tribe-events-c-small-cta {
    margin-top: auto;
}

.tribe-events-c-small-cta__price {
    background: #a91101;
    color: white;
    padding: 4px 12px !important;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* Événements complets */
.tribe-events-complet .tribe-events-pro-photo__event-featured-image {
    filter: grayscale(100%);
}

.tribe-events-complet .tribe-events-pro-photo__event-featured-image:hover {
    filter: grayscale(100%) !important;
}

.tribe-events-complet .tribe-events-pro-photo__event-title,
.tribe-events-complet .tribe-events-pro-photo__event-datetime {
    color: #666 !important;
}

.tribe-events-complet .tribe-events-c-small-cta__price {
    background: #666;
}

/* Masquer les éléments non nécessaires */
.tribe-events-ical,
.tribe-events-after-html {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .tribe-common-g-col {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .tribe-common-g-row {
        gap: 15px;
        margin: 0;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .tribe-common-g-col {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (min-width: 1201px) {
    .tribe-common-g-col {
        flex: 1 1 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

/* Styles pour les pages spécifiques */
.single-tribe_events .tribe-events-before-html,
.events-category-evenements .tribe-events-before-html {
    display: none;
}

/* Styles spéciaux pour la catégorie "nos événements" */
.events-category-evenements .tribe-events-pro-photo__event-featured-image-wrapper {
    height: 400px !important;
}

.events-category-evenements .tribe-events-pro-photo__event-details {
    min-height: 400px;
}

.events-category-evenements .tribe-events-sticky-events,
.events-category-evenements .tribe-events-upcoming-events {
    display: none;
}

/* En-têtes et barres */
.tribe-events-page-title,
.tribe-events-before-html,
#tribe-events-footer {
    background-color: white;
    padding: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#tribe-events-bar {
    background-color: white;
}

.tribe-events-list h2.tribe-events-page-title {
    margin-bottom: 15px;
    clear: left;
    font-weight: 400 !important;
}

/* Masquer les barres de défilement */
.tribe-events-pro-photo__event-details::-webkit-scrollbar {
    display: none;
}

/* Support Firefox */
@-moz-document url-prefix() {
    .tribe-events-pro-photo__event-details {
        scrollbar-width: none;
    }
}

.tribe-common .tribe-common-g-row--gutters>.tribe-common-g-col {
	padding-right:0 !important;
	padding-left:0 !important;
}

/* Modal window */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 60%; /* Could be more or less, depending on screen size */
}

.single-event-modal {
    display: none;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}