




body td{font-family: inherit;} /* correction bug */
#content .woocommerce-loop-product__link img{width: 100%;}




.emoji{
	font-size: 10px;
}




/* Calendrier responsive */

#calendar, .fc {
  max-width: 100%;
}
.fc-toolbar {
  flex-wrap: wrap;
  gap: 5px;
}
@media (max-width: 768px) {
  .fc-toolbar {
    flex-direction: column;
    align-items: center;
  }
  .fc .fc-toolbar-title {
    font-size: 1rem;
  }
}

/* Cacher le titre natif uniquement pour la page planning */
body.hide-default-title .entry-title {
    display: none;
}
.page-id-18832 .entry-content{
	padding-top: 0;
}
.page-id-18832 #content h1{
	margin-top: 0;
}



/* edition page produit */

/* Container filtre */
#ptw-session-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
}

/* Inputs et selects prennent toute la largeur disponible */
#ptw-session-filter input,
#ptw-session-filter select,
#ptw-session-filter button {
    flex: 1 1 150px; /* largeur flexible minimum 150px */
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Espacement spécifique pour les boutons si besoin */
#ptw-session-filter button {
    flex: 1 1 120px; /* légèrement plus petit que les champs */
}

/* Table sessions */
.ptw-sessions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ptw-sessions-table th,
.ptw-sessions-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.ptw-sessions-table th {
    background: #f1f1f1;
}


/* fin edition page produit */




#ptw-intro{
  margin-bottom: 0;
  margin-top: 50px;
}
#ptw-intro .titre-intro{
font-size: 14px;
  padding: 8px 12px;
  margin: 0;
  line-height: 1.4;
  border-bottom: 1px solid #c3c4c7;
}
#ptw-intro .description-intro{
	line-height: 1.4;
}
.ptw-session-intro{
  margin-bottom: 10px;
  border-bottom: 1px solid #c3c4c7;
  padding-bottom: 10px;
}

line-height: 1.4;

.fc .fc-event {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}
.fc .fc-event:hover {
    background-color: #005a87;
    border-color: #005a87;
}
/* Styles pour la vue annuelle */
.fc-year-month-header {
    font-weight: bold;
    text-align: left;
    padding: 4px 0;
    border-bottom: 1px solid #ccc;
    background-color: #f9f9f9;
    width: 100%;
    clear: both;
}
#ptw-calendar-year h2 {
    margin-top: 20px;
    margin-bottom: 10px;
	padding-left : 10px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}
.fc .fc-scrollgrid {
  background-color: white;
}


/* Weekends */
.fc-day-sat,
.fc-day-sun {
    background-color: #f0f0f0; /* gris clair pour les week-ends */
}

/* Hors du mois */
.fc-day-other {
	background-color: white;
	background-image: repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 5px );
}

/* Jours fériés */
.fc-day-holiday {
    background-color: #ecffcf;
}

/* cache l'heure */
.fc-event-time {
    display: none;
}






body .ptw-event-product-list li {
  display: block;
}




/* POPUP */


.ptw-event-popup {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.ptw-event-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ptw-event-product-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.ptw-event-product-list li:last-child {
    border-bottom: none;
}

.ptw-product-title {
    flex: 1;
}

.ptw-btn-edit,
.ptw-btn-delete {
    margin-left: 5px;
    font-size: 12px;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
}

.ptw-btn-edit {
    background-color: #0073aa;
    color: #fff;
}

.ptw-btn-delete {
    background-color: #dc3232;
    color: #fff;
    border: none;
}




.ptw-day-popup{
	background-color : white;
	color :black;
}


#poststuff #ptw_product_calendar .inside .liste-sessions h2{
	font-size: 14px;
	padding: 30px 0 10px 0;
	margin: 0;
	line-height: 1.4;
	font-weight: bold;
	border-bottom: 1px solid #c3c4c7;
}
#poststuff #ptw_product_calendar .inside .ptw-sessions-table th,
#poststuff #ptw_product_calendar .inside .ptw-sessions-table td{
	border: 1px solid #dddddd;
}
#poststuff #ptw_product_calendar .inside .ptw-sessions-table th{
	border-bottom : none;
	/*background-color : #f2f2f2;*/
	color : #2271b1;
}
#poststuff #ptw_product_calendar .inside .ptw-sessions-table td{
	padding : 5px; 
	text-align : center;
}
#poststuff #ptw_product_calendar .inside .ptw-sessions-table .ptw-session-delete {
	background-color: #2C3E50;
	border-color: #2C3E50;
	color: white;
}
#poststuff #ptw_product_calendar .inside .ptw-sessions-table .ptw-session-delete:hover {
  background-color: #1e2b37;
  border-color: #1a252f;
}


/* Tooltip */


.ptw-session-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 9999;
    pointer-events: none;
    max-width: 70%;
    width: 350px;
    font-size: 12px;
}



.ptw-session-tooltip table tr th,
.ptw-session-tooltip table tr td{
	width : calc(100% / 6);
}

.ptw-session-tooltip .session-container{
	border-bottom : 2px solid #ccc;
	padding : 5px;
}
.ptw-session-tooltip .session-container:nth-child(even){
	background-color : #f2f2f2;
}

.session-combo-stages {
	margin-top: 5px;
	font-size: 12px;
	color: #0073aa;
}
.session-combo-stages ul {
	margin: 3px 0 0 15px;
	padding: 0;
}
.session-combo-stages li {
	margin-bottom: 2px;
}
.session-content {
	margin-bottom: 5px;
	font-size: 11px;
	color: #555;
}

.ptw-tooltip-card {
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: #fff;
  padding: 10px;
  max-width: 350px;
  font-size: 12px;
  pointer-events: none;
}

.ptw-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.ptw-tooltip-title {
  font-weight: bold;
  font-size: 16px;
  color : #346697;
}

.ptw-tooltip-price {
  background: #f39c12;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 12px;
  margin-left: 20px;
}

.ptw-tooltip-content {
  margin-bottom: 5px;
  font-size: 11px;
  color: #555;
}

.ptw-tooltip-info div {
  margin-bottom: 2px;
}

.ptw-tooltip-combo {
  margin-top: 5px;
}

.ptw-tooltip-combo ul {
  margin: 2px 0 0 15px;
  padding: 0;
  list-style : disc;
}

.ptw-tooltip-combo li {
  font-size: 11px;
}

/* Fin Tooltip */




/* Material design button */
.fc-button {
    display: inline-block;
    position: relative;
    cursor: pointer;
    min-height: 36px;
    min-width: 88px;
    line-height: 36px;
    vertical-align: middle;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    border-radius: 2px;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    border: 0;
    padding: 0 6px;
    margin: 6px 8px;
    letter-spacing: .01em;
    background: transparent;
    color: currentColor;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    font-style: inherit;
    font-variant: inherit;
    font-family: inherit;
    text-decoration: none;
    overflow: hidden;
    -webkit-transition: box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1);
    transition: box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1);
}

.fc-button:hover {
    background-color: rgba(158,158,158,0.2);
}

.fc-button:focus, .fc-button:hover {
    text-decoration: none;
}


.fc-event-title-container{
	cursor : pointer;
}

.metabox-infos{
	border-bottom : 1px solid black;
	padding-bottom : 10px;
}

#ptw_product_calendar_front{
	position: relative;
}










/* generateur de déclinaisons */ 


/* === OVERLAY === */
.ptw-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

#popup-generateur {
    max-height: 600px;
    overflow: auto;
}
#sessions-container{
	position: relative;
}

/* === POPUP CONTENT === */
.ptw-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 950px;
    width: 100%;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    position: relative;
    font-family: "Segoe UI", Roboto, sans-serif;
    animation: slideIn 0.3s ease;
}

/* Animation d’apparition */
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* === CLOSE BUTTON === */
.ptw-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    color: #888;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s;
}
.ptw-popup-close:hover { color: #000; }

/* === TITRES ET TEXTES === */
.ptw-popup-content h2 {
    margin: 0 0 15px;
    font-size: 26px;
    font-weight: 600;
    color: #222;
}
.ptw-popup-content h3 {
    margin: 20px 0 30px;
    font-size: 18px;
    font-weight: 500;
    color: #444;
}
.ptw-popup-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* === SESSION ROWS === */
.session-row {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fafafa;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: center;
}

/* Petit header flottant sur chaque bloc */
.session-row::before {
    content: "Session";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #1976d2;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* === INPUTS & SELECT === */
.session-row label {
    font-size: 13px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-row input,
.session-row select {
    padding: 7px 9px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.session-row input:focus,
.session-row select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.2);
    outline: none;
}

/* === REMOVE SESSION === */
.session-row .remove-session {
    grid-column: 1 / -1;
    justify-self: end;
    background: #ff5252;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.session-row .remove-session:hover {
    background: #e53935;
}

.session-combo-wrapper,
.generate-daily-wrapper {
    grid-column: 1 / -1;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.generate-daily-wrapper label,
.session-combo-wrapper label{
	display : block;
}

/* === COMBO OPTIONS === */
.combo-options {
    padding: 12px;
    background: #fff;
    border-radius: 6px;
	box-sizing: border-box;
}
.combo-stage-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f0f0f0;
    font-size: 13px;
}
.combo-stage-item button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    color: #555;
}
.combo-stage-item button:hover { color: #000; }

.session-combo-wrapper .combo-options {
    width: 100%;
    margin-top: 8px;
}


/* === DAILY DETAILS === */
.daily-container {
    max-height: 400px;
    overflow-y: auto;          /* scroll vertical si trop de jours */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px;
}
.daily-container > div {
    display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee;
	justify-content: space-between;
}
.daily-container span {
    font-size: 13px;
    font-weight: 500;
    color: #1976d2;
}
.daily-container > div > * {
    flex: 0 0 auto;
}

/* === BOUTONS GLOBAUX === */
.btn-add-option-daily,
.btn-add-combo-stage,
.btn-add-option-global,
#add-session,
#save-declinaisons,
#cancel-declinaisons {
    margin-top: 15px;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-add-option-daily{
	margin-top: 0;
}
.btn-add-option-daily,
.btn-add-combo-stage,
.btn-add-option-global,
#add-session {
    background: #1976d2;
    color: #fff;
}

.btn-add-option-daily:hover,
.btn-add-combo-stage:hover,
.btn-add-option-global:hover,
#add-session:hover { background: #1565c0; }
#save-declinaisons {
    background: #43a047;
    color: #fff;
}
#save-declinaisons:hover { background: #388e3c; }
#cancel-declinaisons {
    background: #e53935;
    color: #fff;
}
#cancel-declinaisons:hover { background: #c62828; }

#add-session:active,
#save-declinaisons:active,
#cancel-declinaisons:active {
    transform: scale(0.97);
}

.option-items-daily{
	grid-column: span 2;
}

/* === RESPONSIVE === */
@media(max-width: 720px) {
    .ptw-popup-content {
        padding: 20px;
    }
    .session-row {
        grid-template-columns: 1fr;
    }
	.daily-container > div {
        overflow-x: auto;
    }
}



/* fin generateur de déclinaisons */ 










/* Loader */

.ptw-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 50%;
}

.ptw-loader::after {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: auto;
  border: 4px solid #ccc;
  border-top: 4px solid #0073aa; /* couleur WP */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Fin Loader */




/* menu wordpress */


.section-menu{
	background-color : white;
	pointer-events: none;
	cursor: default;
	color: #1d2327;
	font-weight: bold;
}
#adminmenu .section-menu a{
	color: #1d2327;
}

body #adminmenu li.wp-menu-separator {
height: 2px;
  margin: 15px 0;
  border-bottom: 1px solid;
}


















/* Look des popups */


/* Overlay noir transparent */
.ptw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

/* Popup */
.ptw-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    z-index: 9999;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Bouton fermer */
.ptw-popup .ptw-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.ptw-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ptw-popup-content {
    background: #fff;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
}

.ptw-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
}



/* Fin Look des popups */





.liste-sessions-table{
	max-height : 600px;
	overflow : auto;
}


#product-session-search {
    margin: 20px 0 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}

.pss-search-form {
  display: flex;
  flex-wrap: wrap;        /* permet le retour à la ligne */
  gap: 12px 20px;         /* espace vertical et horizontal */
}

.pss-row {
  flex: 1 1 calc(50% - 20px); /* 2 colonnes */
  display: flex;
  flex-direction: column;     /* label au-dessus de l’input */
}

/* Le bloc avec le bouton doit prendre toute la ligne */
.pss-actions {
  flex: 1 1 100%;
  text-align: right; /* tu peux mettre center ou left si tu préfères */
}

.pss-row label {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    color: #333;
}

.pss-input {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
	width: 100%;
}

.pss-actions {
    grid-column: span 4;
    text-align: right;
}

.pss-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.pss-btn:hover {
    background: #005f8d;
}



/*
body #content tr td {
	padding: 5px;
	vertical-align: middle;
}
*/





/* page planning */

.ds-table,
.ss-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

#content .ds-table th,
#content .ds-table td,
#content .ss-table th,
#content .ss-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
	text-align: center;
	vertical-align: middle;
	padding: 5px;
	font-size: 14px;
}


.ds-table th,
.ss-table th {
    background: #f5f5f5;
}

.ds-form {
  margin-bottom: 15px;
  display: flex;
  align-items: end;
}
.ds-form #ds-search{
  margin-bottom: 1px;
}
.ds-form #ds-lieu,
.ds-form #ds-date{
	margin-right : 10px;
}
#content tr th, 
#content thead th {
  border: 1px solid #ccc;
}
#daily-stats i{
  font-size : 12px;
}
#daily-stats .color-alert i{
  color : red;
}
#daily-stats .color-warning i{
  color : orange;
}
#daily-stats .color-good i{
  color : green;
}

#ss-results{
	margin-top : 15px;
}


#session-search,
#daily-stats {
  margin: 50px 0;
}
#session-search h3,
#daily-stats h3{
  margin-top : 0;
}
.ds-summary {
	margin-top: 20px;
	margin-bottom: 20px;
}
.ds-summary h3 {
    margin-top: 0;
    font-size: 18px;
    color: #222;
}
.ds-summary ul {
    margin: 0;
    padding-left: 20px;
}
.ds-summary li {
    margin: 5px 0;
    font-size: 15px;
}

.ds-summary-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
  margin-top: 10px;
}

.ds-summary-flex div {
  flex: 1 1 150px; /* largeur mini 150px, s'adapte sinon */
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  background-color : white;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .ds-summary-flex {
    flex-direction: column;
    gap: 10px;
  }
  .ds-summary-flex div {
    flex: 1 1 100%;
    text-align: left;
  }
}





/* fin page planning */





/* Stats produits */

.ptw-stats {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 5px;
}

.ptw-stats h3 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.ptw-stats h4 {
    margin-top: 20px;
    font-size: 1em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
}

.ptw-stats p {
    margin: 5px 0;
    font-weight: 500;
}

.ptw-stats-lieux {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ptw-stats-lieux th, 
.ptw-stats-lieux td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: left;
}

.ptw-stats-lieux th {
    background-color: #efefef;
    font-weight: 600;
}

.ptw-stats-lieux tr:nth-child(even) {
    background-color: #f5f5f5;
}

/* fin stats produits */


/* === Styles spécifiques popup inscription session === */
/* === Popup d'inscription === */
/* Popup d'inscription */
.ptw-popup-inscription {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  font-family: "Segoe UI", Roboto, sans-serif;
  animation: fadeInScale 0.25s ease;
  z-index: 9999;
  overflow: hidden; /* pour arrondir aussi le header */
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* === HEADER === */
.ptw-popup-inscription .ptw-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0073aa;
  color: #fff;
  padding: 12px 16px;
}

.ptw-popup-inscription .ptw-popup-header h2 {
  margin: 0;
  font-size: 25px;
  color: white;
}

.ptw-popup-inscription .ptw-popup-header .ptw-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.ptw-popup-inscription .ptw-popup-header .ptw-close:hover {
  color: #e2e2e2;
}

/* === CONTENU === */
.ptw-popup-inscription-content {
  padding: 20px;
}

#content .ptw-popup-inscription h2 {
	color: white;
	font-size: 25px;
}


body #content .woocommerce-tabs .ptw-popup-inscription-content h3 {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 600;
  color: #0073aa;
  margin-top: 0;
}

.ptw-popup-inscription p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* Boutons type lien */
.ptw-popup-inscription a.ptw-btn {
	display: block;
	padding: 8px 14px;
	background: #0073aa;
	color: #fff !important;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	margin-top: 20px;
	text-align: center;
}
.ptw-popup-inscription a.ptw-btn:hover {
  background: #005f8d;
}

/* === FORMULAIRE === */
.ptw-popup-inscription form {
  margin-top: 15px;
}

.ptw-popup-inscription select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.ptw-popup-inscription .child-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pss-btn-register,
#ptw-register-btn, 
.ptw-popup-inscription button {
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* Boutons spécifiques */
.ptw-popup-inscription #add-child {
  background: #1976d2;
  color: #fff;
}
.ptw-popup-inscription #add-child:hover { background: #1565c0; }

.ptw-popup-inscription #ptw-register-form button[type="submit"],
#ptw-register-btn,
.pss-btn-register  {
  background: #43a047;
  color: #fff;
  font-weight: 600;
}
.ptw-popup-inscription #ptw-register-form button[type="submit"]:hover,
#ptw-register-btn:hover,
.pss-btn-register:hover {
  background: #388e3c;
}

.ptw-popup-inscription .child-row button {
  background: #e53935;
  color: #fff;
}
.ptw-popup-inscription .child-row button:hover {
  background: #c62828;
}



/* === fin Styles spécifiques popup inscription session === */



body #content .pss-results-table tr td {
	padding: 10px 9px 10px;
  vertical-align: middle;
  text-align: center;
}

body #content .woocommerce-table__line-item.order_item td{
	padding: 0;
	text-align: left;
}
body #content .woocommerce-table__line-item.order_item td.woocommerce-table__product-total.product-total{
	text-align: center;
}
#content table.ptw-order-item-meta{
	margin : 0;
}
#content table.ptw-order-item-meta tr th {
	width: 150px;
}
body #content .woocommerce ul.order_details {
	margin: 1em 0 3em;
}
body p.order-again { display: none !important; }










/* Desktop : table classique */
.pss-results-table {
  width: 100%;
  border-collapse: collapse;
}

.pss-results-table th,
.pss-results-table td {
  padding: 2px;
  border: 1px solid #ddd;
  text-align: center;
  min-width: 90px;
}


  



/* Mobile < 680px : on transforme chaque ligne en carte */
@media (max-width: 768px) {
	
	
	body #annonce {
	  position: relative;
	  background-attachment: fixed;
	  height: auto;
	  padding: 20px;
	}
	body #annonce .texte-annonce {
		width: 100%;
    transform: inherit;
    position: relative;
    top: 0;
    left: auto;
	  }
	
	
	.page:not(.woocommerce-account) #main #forbottom {
		padding: 10px;
		margin: 10px;
		margin-bottom: 50px;
	  }

	
	
	.pss-input {
	  width: 100%;
	}
	

	  .pss-row {
		flex: 1 1 100%;
		min-width: auto;
	  }

	  .pss-btn {
		width: 100%; /* bouton en pleine largeur */
	  }
	#content table.pss-results-table{
		border : none;
	}
	.pss-actions {
	  text-align: center;
	}
	.product .summary,
	.woocommerce #content div.product div.images {
	  border-radius: 10px !important;
	}
	
	.product .summary .posted_in {
		display : none;
	}
	.product  .woocommerce-tabs .tabs{
		border: 1px solid #d3ced2;
		border-radius: 10px 10px 0 0;
	}
	
  .pss-results-table,
  .pss-results-table thead,
  .pss-results-table tbody,
  .pss-results-table th,
  .pss-results-table td,
  .pss-results-table tr {
    display: block;
    width: 100%;
  }

  .pss-results-table thead {
    display: none; /* on cache les en-têtes */
  }

  .pss-results-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #fafafa;
  }

  .pss-results-table td {
    border: none;
    padding: 6px 10px;
    position: relative;
  }

  .pss-results-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
    color: #333;
  }
  
  .pss-results-table [data-label="Période"],
  .pss-results-table [data-label="Prix"],
  .pss-results-table [data-label="Fin"],
  .pss-results-table [data-label="Début"]{
	  width : 50%;
	  display : inline-block;
  }
  .pss-results-table [data-label="Actions"]:before{
	  display : none;
  }
  .pss-results-table [data-label="Actions"] .pss-btn-register{
	  width: 100%;
  }
 .pss-results-intro{
	margin-bottom: 10px;
  }
  .pss-results-intro h3{
	margin-top: 0;
  }
}





/* ===== Table de statistiques journalières ===== */

/* Responsive table */
@media (max-width: 768px) {
	
	.ds-form {
		flex-direction: column;
		align-items: stretch;
	}
	.ds-form #ds-lieu, 
	.ds-form #ds-date {
		margin-right: 0;
	}
	.ds-form #ds-search{
		margin-top: 20px;
	}
  #content .ds-table td,
  #content table.ds-table{
	  border : none;
	  text-align: left;
	  padding: 0;
  }
  .ds-table thead {
    display: none; /* cacher l'en-tête */
  }

  .ds-table,
  .ds-table tbody,
  .ds-table tr,
  .ds-table td {
    display: block;
    width: 100%;
  }

  .ds-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
  }

  .ds-table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px;
    text-align: right;
    position: relative;
  }
  
  .ds-table td:last-child {
    border-bottom: none;
  }
  .ds-table td:first-child {
	background-color: #dde7f9;
  }

  .ds-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
  }
  
  .ds-form {
    flex-direction: column;
    align-items: stretch;
  }
  .ds-form #ds-lieu, 
  .ds-form #ds-date {
    margin-right: 0;
  }
  .ds-form #ds-search {
    margin-top: 20px;
  }

  .ds-table thead {
    display: none; /* cacher l'en-tête */
  }

  .ds-table,
  .ds-table tbody,
  .ds-table tr,
  .ds-table td {
    display: block;
    width: 100%;
  }

  .ds-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    overflow: hidden;
    padding: 0; /* pas de padding ici, géré au niveau des td */
  }
  


  .ds-table td {
    display: grid;
    grid-template-columns: 40% 60%; /* 2 colonnes : label + valeur */
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
  }

  .ds-table td:last-child {
    border-bottom: none;
  }

  .ds-table td::before {
	content: attr(data-label);
	font-weight: normal;
	color: #555;
	text-align: left;
	background-color: #dde7f9;
	padding: 2px 5px;
  }
  
}




/* ===== Table recherche de sessions ===== */

/* Responsive */
@media (max-width: 768px) {
	
	body #content .products h2 {
	  font-size: 36px;
	}


  #content table.ss-table td,
  #content table.ss-table {
    border: none;
  }
	
  .ss-table thead {
    display: none;
  }

  .ss-table,
  .ss-table tbody,
  .ss-table tr,
  .ss-table td {
    display: block;
    width: 100%;
  }

  .ss-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    overflow: hidden;
  }

  .ss-table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px;
    text-align: right;
    position: relative;
  }

  .ss-table td:last-child {
    border-bottom: none;
  }

  .ss-table td::before {
    content: attr(data-label);
    font-weight: bold;
    width: 100%;
    display: block;
  }
}



.ptw-cart-badge{
	background: rgb(0, 115, 170);
		color: rgb(229, 234, 236);
		border-radius: 3px;
		padding: 4px 7px;
		font-size: 12px;
		margin-left: 6px;
		display: inline-block;
		line-height: 1;
}

#ptw-session-participants .inside tbody{
	text-align : center;
}




.ds-duplicate {
    background-color: rgba(255, 200, 0, 0.25); /* jaune transparent */
}

.ds-badge-dup {
    display: inline-block;
    padding: 2px 6px;
    background: #e6b800;
    color: #000;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 5px;
    font-weight: bold;
}




