/* Gabarit Selector Styles */
.gabarit-section {
    background: #111827;
    color: white;
    position: relative;
}

.gabarit-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
background-image: url('<?php echo get_template_directory_uri(); ?>/images/splash.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.gabarit-section .container {
    position: relative;
    z-index: 10;
}

.gabarit-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Onglets */
.gabarit-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gabarit-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    color: #fff;
    margin: 0.25rem;
    transition: all 0.3s ease;
    border: none;
}

.gabarit-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.gabarit-tab.active[data-technique="broderie"] {
    background-color: #e7ac00;
    box-shadow: 0 0 10px #e7ac00;
}
.gabarit-tab.active[data-technique="dtf"] {
    background-color: #d2143f;
    box-shadow: 0 0 10px #d2143f;
}
.gabarit-tab.active[data-technique="flocage"] {
    background-color: #0075a7;
    box-shadow: 0 0 10px #0075a7;
}

/* Grille des gabarits */
.gabarits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

/* Cartes */
.gabarit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gabarit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.gabarit-card.popular {
    border-color: #ffffff;
}

.gabarit-card.selected {
    border-width: 3px;
}

/* Icônes */
.gabarit-icon {
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gabarit-icon-square { width: 3rem; height: 3rem; }
.gabarit-icon-portrait { width: 3.5rem; height: 4rem; }
.gabarit-icon-landscape { width: 5rem; height: 2rem; }
.gabarit-icon-a4 { width: 3rem; height: 4rem; }
.gabarit-icon-a3 { width: 4rem; height: 5rem; }
.gabarit-icon-a3-large { width: 4.5rem; height: 5rem; }
.gabarit-icon-initial { width: 2rem; height: 3rem; }

.gabarit-text {
    font-weight: bold;
    color: #ffffff;
    font-size: 0.875rem;
}

.gabarit-info {
    color: white;
}

.gabarit-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gabarit-dimensions {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.gabarit-info-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gabarit-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gabarit-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gabarit-info-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #d2143f;
}

.gabarit-info-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Cartes sélectionnées dynamiques */
body.technique-broderie .gabarit-card.selected {
  border: 3px solid #e7ac00;
  box-shadow: 0 0 0 2px #e7ac00;
}

body.technique-dtf .gabarit-card.selected {
  border: 3px solid #d2143f;
  box-shadow: 0 0 0 2px #d2143f;
}

body.technique-flocage .gabarit-card.selected {
  border: 3px solid #0075a7;
  box-shadow: 0 0 0 2px #0075a7;
}

/* Badge Populaire dynamique */
.badge-populaire {
  background-color: #ffffff;
  color: white;
}

body.technique-broderie .badge-populaire {
  background-color: #e7ac00;
}
body.technique-dtf .badge-populaire {
  background-color: #d2143f;
}
body.technique-flocage .badge-populaire {
  background-color: #0075a7;
}