/* Containers principaux */
.pwc-trombinoscope-container,
.pwc-bureau-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Contrôles et pagination */
.pwc-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.pwc-items-per-page {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pwc-items-per-page label {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.pwc-items-per-page select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 36px 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E") no-repeat right 12px center;
  color: #333;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwc-items-per-page select:hover {
  border-color: #2271b1;
  background-color: #f0f7ff;
}

.pwc-items-per-page select:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Pour Firefox */
.pwc-items-per-page select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #333;
}

/* Responsive */
@media (max-width: 768px) {
  .pwc-items-per-page {
      width: 100%;
      justify-content: space-between;
  }
  
  .pwc-items-per-page select {
      flex: 1;
      max-width: 150px;
  }
}

/* Index alphabétique */
.pwc-alphabet-index {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.letter-link {
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.letter-link:hover {
    background: #e0e0e0;
}

/* Grille des membres */
.pwc-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Carte membre */
.pwc-member-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pwc-member-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pwc-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwc-member-info {
    padding: 15px;
}

.pwc-member-name {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

.pwc-member-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row i {
    color: #666;
    width: 16px;
}

.pwc-member-bikes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pwc-member-bikes h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: #333;
}

.bikes-list {
    font-size: 0.9em;
    color: #666;
}
.life-member-icon {
    display: inline-block;
    margin-left: 8px;
    color: #b8860b; /* Couleur dorée */
    font-size: 0.8em;
    vertical-align: super;
}

.life-member-icon i {
    opacity: 0.9;
}

.life-member-icon:hover {
    color: #daa520; /* Couleur dorée plus claire au survol */
}



/* Safety Officers */
/* Container principal */
.pwc-safety-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pwc-safety-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #1a1a1a;
}

/* Grille des membres */
.pwc-safety-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Carte membre */
.pwc-safety-member-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    perspective: 1000px;
}

.pwc-safety-member-card:hover {
    transform: translateY(-5px);
}

.pwc-safety-member-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.pwc-safety-member-card:hover .pwc-safety-member-inner {
    transform: rotateY(180deg);
}

/* Face avant */
.pwc-safety-member-front {
    position: relative;
    width: 100%;
    min-height: 400px;
    backface-visibility: hidden;
    background: #fff;
}

/* Photo */
.pwc-safety-member-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.pwc-safety-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Informations */
.pwc-safety-member-info {
    padding: 20px;
}

.pwc-safety-member-name {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #1a1a1a;
}

.pwc-safety-member-firstname {
    display: block;
    font-size: 0.8em;
    color: #666;
}

/* Badges et rôles */
.pwc-safety-member-roles {
    margin: 15px 0;
}

.pwc-safety-officer-badge {
    display: inline-block;
    background: #d4af37;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9em;
}

.pwc-safety-officer-badge i {
    margin-right: 5px;
}

.pwc-safety-bureau-role {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9em;
}

.pwc-safety-member-since {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.pwc-safety-member-since i {
    margin-right: 5px;
}

/* Face arrière */
.pwc-safety-member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Liens de contact */
.pwc-safety-member-contact {
    padding: 20px;
}

.pwc-safety-contact-link {
    display: block;
    margin: 10px 0;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pwc-safety-contact-link:hover {
    background: #e0e0e0;
}

.pwc-safety-contact-link i {
    margin-right: 10px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pwc-safety-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .pwc-safety-member-card {
        margin-bottom: 20px;
    }

    .pwc-safety-member-photo {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .pwc-safety-container {
        padding: 10px;
    }

    .pwc-safety-title {
        font-size: 1.5em;
    }

    .pwc-safety-member-name {
        font-size: 1.2em;
    }
}
/* Boîte à idées */
.pwc-idea-box-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 20px;
}

.pwc-idea-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pwc-idea-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwc-idea-form label {
    font-weight: 600;
}

.pwc-idea-form input,
.pwc-idea-form textarea,
.pwc-idea-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pwc-submit-button {
    background-color: #003366;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    align-self: flex-start;
}

.pwc-submit-button:hover {
    background-color: #004488;
}

/* Pour le Trombi avoir un bouton Back To Top */

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e62117; /* Couleur rouge du thème PWC */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d41d1d; /* Version plus foncée au survol */
    transform: translateY(-3px);
}

.back-to-top:before {
    content: "↑";
    font-size: 20px;
    font-weight: bold;
}
/* Style spécifique pour les mobiles */
@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 70px; /* Position plus haute sur mobile pour éviter les menus de navigation */
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

.pwc-perm-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pwc-perm-responsables {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.pwc-perm-responsables .responsable {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pwc-perm-responsables label {
    font-weight: bold;
    min-width: 120px;
}

.pwc-perm-inscription {
    background: #e96e07;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pwc-perm-inscription:hover {
    background: #d65c00;
}

/* Style pour les produits d'inscription dans le panier */
.pwc-inscription-product {
    background-color: rgba(233, 110, 7, 0.05); /* Orange PWC très léger */
    border-left: 3px solid #e96e07; /* Orange PWC */
}

/* Style spécifique pour le mini-panier */
.wc-block-mini-cart__products .pwc-inscription-product {
    padding-left: 10px;
    margin-left: -10px;
}

/* Modales et messages pour les occasions */
.pwc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

.pwc-modal-content {
    position: relative;
    background: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pwc-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.pwc-modal-close:hover {
    color: #333;
}

/* Container des messages */
.pwc-messages-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Style des messages */
.pwc-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.pwc-message.sent {
    background: #e3f2fd;
    margin-left: auto;
}

.pwc-message.received {
    background: #f5f5f5;
    margin-right: auto;
}

.pwc-message-content {
    margin-bottom: 5px;
}

.pwc-message-meta {
    font-size: 0.8em;
    color: #666;
}

/* Formulaire de message */
.pwc-message-form {
    margin-top: 20px;
}

.pwc-message-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.pwc-send-message {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.pwc-send-message:hover {
    background: #006291;
}

/* Boutons d'action sur les occasions */
.pwc-occasion-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.pwc-contact-seller,
.pwc-toggle-favorite {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.2s;
}

.pwc-contact-seller {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pwc-contact-seller:hover {
    background: #006291;
}

.pwc-toggle-favorite {
    color: #666;
}

.pwc-toggle-favorite.active {
    color: #e91e63;
    border-color: #e91e63;
}

/* Notifications */
.pwc-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pwc-occasions-form {
    max-width: 800px;
    margin: 2em auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pwc-occasions-form .form-group {
    margin-bottom: 1.5em;
}

.pwc-occasions-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.pwc-occasions-form input[type="text"],
.pwc-occasions-form input[type="number"],
.pwc-occasions-form select,
.pwc-occasions-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pwc-occasions-form .help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.3em;
}

.pwc-occasions-form .pwc-submit-button {
    background-color: #c00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.pwc-occasions-form .pwc-submit-button:hover {
    background-color: #a00;
}

.pwc-occasions-form .form-actions {
    text-align: center;
    margin-top: 2em;
}
