/* Forcer le style natif du navigateur pour les select */

.simulateur-container select,
select {
    all: revert !important;
    cursor: pointer !important;
    width: 90% !important;
    margin: 0 auto !important;
    font-size: 0.9em !important;
    height: 30px !important;
/*
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background: initial !important;
    border: initial !important;
    padding: initial !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: initial !important;
    box-shadow: none !important;
    border-radius: initial !important;
    height: auto !important;
    width: auto !important;
*/
}

button {
    all: revert !important;
    cursor: pointer !important;
    border: 1px solid#000 !important;
    border-radius: 5px !important;
    background-color: var(--wp--preset--color--bleu-fonce) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

#sort-direction {
    width: 20% !important;
    height: 30px !important;
}
/*
.save-buttons {
    display:flex;
	flex-direction: column;
	gap: 12px;
    width: 90%;
    margin: 10px auto;
}
*/
.save-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    margin: 0 auto;
}


.save-buttons button .appButton {
  padding: 10px 20px !important; /* Espace autour du contenu */
  width: auto !important;       /* Largeur automatique */
  height: 40px !important;       /* Hauteur automatique */
}

/* Supprimer tous les styles WooCommerce spécifiques */
.simulateur-container select:focus,
.simulateur-container select:hover,
select:focus,
select:hover {
    outline: initial !important;
    border: initial !important;
    box-shadow: none !important;
}
/* < /style>

<style type="text/css" > */

/**
  * Déclaration de la police variable
  * 
  * @font-face {
  *     font-family : "Roboto Flex";
  *     font-variation-settings:
  *         "opsz", --> Optical Size: Auto
  *         "wght", --> Weight: 403
  *         "GRAD", --> Grade: 150
  *         "slnt", --> Slant: 0
  *         "wdth", --> Width: 132.4
  *         "XOPQ", --> Thick Stroke: 27
  *         "YOPQ", --> Thin Stroke: 25
  *         "XTRA", --> Counter Width
  *         "YTUC", --> Uppercase Height: 528
  *         "YTLC", --> Lowercase Height: 416
  *         "YTAS", --> Ascender Height: 854
  *         "YTDE", --> Descender Depth: -237
  *         "YTFI"; --> Figure Height
  *     "Size: 28"; 
  * }
  *
  */

@font-face {
    /* Commentaire de référence n° 20250806-095505-4 */
    font-family: 'Roboto Flex';
    /* src: url('path/to/RobotoFlex-VariableFont.woff2') format('woff2-variations');
    src: url(./assets/fonts/RobotoFlex-VariableFont.woff2) format('woff2'); */
    src: url('<?php echo get_stylesheet_directory_uri(); ?>/assets/fonts/RobotoFlex-VariableFont.woff2') format('woff2');
    font-weight: 100 1000;
    font-stretch: 25% 151%;
    font-variation-settings:
        "opsz" 8 144,
        "slnt" -10 0,
        "grad" -200 200,
        "XTRA" 240 600,
        "XOPQ" 27 175,
        "YOPQ" 27 135,
        "YTLC" 400 520,
        "YTUC" 525 750,
        "YTAS" 649 854,
        "YTDE" -305 -98,
        "YTFI" 648 788;
}

/**
  * Commentaire de référence n° 20250806-100804-2
  **/

:root {

    --cgh--simulator--settings--heading-1:
        'opsz' 22,
        'slnt' 0,
        'wdth' 135,
        'wght' 800,
        'grad' 150,
        'XOPQ' 27,
        'YOPQ' 25,
        'YTAS' 854,
        'YTLC' 416,
        'YTUC' 528;
    --cgh--simulator--settings--heading-2:
        'opsz' 22,
        'slnt' 0,
        'wdth' 135,
        'wght' 700,
        'grad' 150,
        'XOPQ' 45,
        'YOPQ' 25,
        'YTAS' 854,
        'YTLC' 416,
        'YTUC' 528;
    --cgh--simulator--settings--label-1:
        'wght' 600;
    --cgh--simulator--settings--label-2:
        'wght' 600;
    --cgh--simulator--settings--label-2:
        'wght' 500;
    --cgh--simulator--settings--space-5: 5px;
    --cgh--simulator--settings--space-7: 7px;
    --cgh--simulator--settings--space-10: 10px;
    --cgh--simulator--settings--space-15: 20px;
    --cgh--simulator--settings--space-20: 20px;
     --cgh--simulator--settings--gap-7: var(--cgh--simulator--settings--space-7);
     --cgh--simulator--settings--gap-10: var(--cgh--simulator--settings--space-10);
     --cgh--simulator--settings--gap-20: var(--cgh--simulator--settings--space-20);
}

body {
    font-family: 'Roboto Flex', sans-serif;
    display: flex;
    /* justify-content: center; */
    gap: var( --cgh--simulator--settings--gap-10);
}

#main-container {
    display: flex;
    flex-direction: column;
    gap: var( --cgh--simulator--settings--gap-20);
    margin-top: 20px;
    padding: 20px;
    border: 1px solid black;
    width:100%;
    min-width:1240px;
    min-width:1280px;
}

#controls-container {
    display: flex;
    justify-content: space-between;
    gap: var( --cgh--simulator--settings--gap-20);
    height: 775px;
}

#left-panel {
    min-width: 36%;
}

#center-panel {
    min-width:calc(32% - var(--cgh--simulator--settings--gap-20));
}

#right-panel {
    display: flex;
    min-width:calc(32% - var(--cgh--simulator--settings--gap-20));
}

#title {
    text-align: center;
    min-width: 450px;
}

/* Traduction CSS pour un titre h1 */

h1 {
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: var(--cgh--simulator--settings--heading-1);
    font-size: 40px;
    margin-top: var(--cgh--simulator--settings--space-20);
    margin-bottom: var(--cgh--simulator--settings--space-20);
}

h1 span {
    white-space: nowrap;
}

h2 {
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: var(--cgh--simulator--settings--heading-2);
    font-size: 28px;
    margin-top: var(--cgh--simulator--settings--space-5);
    margin-bottom: var(--cgh--simulator--settings--space-5);
    text-align: center;
}

#sort-controls,
#colors-container,
#informations-container,
#color-control,
#motif-control,
#forme-control,
#selectColor-control,
#color-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sort-group {
    display: flex;
    justify-content: space-between;
    width: 88%;
    margin: 0 6% 0 6%;
}

.sort-select {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#sort-select {
    flex-grow: 1;
    margin: 0 !important;
    width: 70% !important;
}

.channels-wrapper {
    position: relative;
    width: 100%;
    min-height: 25px;
}
    
#rgb-channels, #cmyk-channels {
    /* position: absolute;
    top: 0;
    left: 0; */
    width: 100%;
    display: none;
    gap: 5px;
    grid-template-columns: 50px repeat(3, 1fr);
    margin-left: 15px;
}

#cmyk-channels {
    grid-template-columns: 50px repeat(4, 1fr);
}

#rgb-channels label, #cmyk-channels label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#rgb-channels.active, #cmyk-channels.active {
    display: flex;
}

/*
 * référence n° 20250807-111030-2
 */
 
#color-display {
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f0f0f0; /* Pour visualiser le conteneur */
    margin: 15px 0 2px 0;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    /* position: relative;
    height: 100%; */
    width: 90%;
    height: auto;
    /* Rapport hauteur/largeur 4:3 */
    aspect-ratio: 1/1;
    align-self: center;
    /* padding-bottom: 100%; */
    overflow: hidden;
    flex: 1;
}


#color-display img {
    /* position: absolute; */
    top: 0;
    left: 0;
    /* width: 100%;
    height: 100%; */
/*    transform: translateX(-50%); */
    object-fit: cover;
}

/*
#left-panel > * {
border: 1px solid grey;
  margin-bottom: 20px;
}

/* Optionnel : supprime la marge basse du dernier élément */

/*
#left-panel > *:last-child {
  /margin-bottom: 0;
}
*/

#left-panel, #center-panel, #right-panel {
    display: flex;
    flex-direction: column;
    gap: var( --cgh--simulator--settings--gap-7); /* Espace entre le titre et le contrôle de tri */
    min-height: 0; /* Ajoutez juste ça */
}

/* Appliquez un espacement horizontal aux groupes de contrôles */
#sort-controls, #sort-group, #channels-wrapper, /* #rgb-channels, #cmyk-channels, */
#colors-container, #color-control, #motif-Control, #selectColor-control, #color-list-container,
#informations-container, #color-info, #color-infos-container {
    display: flex;
    flex-direction: column;
    gap: var( --cgh--simulator--settings--gap-7); /* Espace entre les labels, les selects, les boutons, etc. */
}

#colors-container {
    display: flex;
    flex-direction: column;
    gap: var( --cgh--simulator--settings--gap-7); /* Espace entre le titre et le contrôle de tri */
    min-height: 0; /* Ajoutez juste ça */
}

/* Alignement vertical pour les canaux */
/*
#rgb-channels, #cmyk-channels {
  flex-direction: column;
}
*/

.lab-1 {
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: var(--cgh--simulator--settings--label-1);
    font-size: 18px;
    padding-bottom:8px;
    margin-bottom: 0;
}

.lab-2 {
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: var(--cgh--simulator--settings--label-2);
    font-size: 15px;
    margin-top:1px;
    margin-bottom:10px;
}

/*
.lab-3 {
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: var(--cgh--simulator--settings--label-3);
    font-size: 15px;
    margin-top:1px;
    margin-bottom:10px;
}

#controls-panel-container,
#informations-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 500px;
    width: 50%;
}
*/

#selectColor-list {
    display: flex;
    flex-direction: column;
}

#selectColor-list > label {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center; /* Centre les éléments verticalement */
    gap: 10px;
}

#selectColor-list > label > input[type="checkbox"],
#selectGlobalColor-control > label > input[type="checkbox"],
input[type="radio"] {
    width: 20px; 
    height: 20px;
    margin: 0 5px;
    border: 1px solid #777 !important;
}

#color-list-container,
#selectColor-list-container /*,
 #color-infos-container */ {
    width: 90%;
    max-height: 300px;
    margin: 0 auto;
    border: 1px solid #ccc;
    overflow-y: auto;
    font-size: 0.9em;
    box-sizing: border-box;
}

#color-list,
#selectColor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.color-group {
    margin: 0;
    padding: 0;
}

.color-group-label {
    font-weight: bold;
    padding: 5px 10px;
    background-color: #e9e9e9;
    position: sticky;
    top: 0;
}

.color-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-item:hover,
.color-item.selected {
    background-color: #e0e0e0;
}

.color-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#informations-container, #color-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#color-infos-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: calc(100% - 5px);
    max-height: calc(100% - 5px);
    text-align: left;
    border: 1px solid #999;
    padding: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    font-size: 0.9em;
    overflow-y: auto;
    border-radius: 10px;
    margin: 0 auto;
}

#color-infos-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

#color-infos-container p {
    margin: 0;
    padding: 4px 0;
    display: flex;
}

#color-infos-container p span:first-child {
    /* font-weight: regular; */
    font-weight: 400;
    margin-right: 5px;
    white-space: nowrap;
}

#color-infos-container p span:last-child {
    white-space: nowrap;
}

#color-infos-container p {
    font-weight: 400;
    line-height: 1.3;    /* Multiplicateur (recommandé) */
}

.channel-label {
    font-weight: bold;
}

#color-infos-container
.channel-info-list {
    display: grid;
    grid-template-columns: 90px 25px 1fr;
    align-items: center;
    gap: 10px;
    margin: 10px 0 10px 10px;
    max-width: 180px;
}

.channel-info-list .label {
    text-align: left;
    width: 125px;
}

.channel-info-list .value {
    text-align: right;
    padding-right: 5px;
}

.channel-info-list .color-box {
    margin-right: 0;
    border: 1px solid #777;
}

.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    margin-right: 5px;
    flex-shrink: 0;
}

/*
#motif-controls {
    display: flex;
    flex-direction: column;
}

*/
.color-controls {
    display: flex;
    flex-direction: column;
    height: 34%;
}


#svg-container {
    border: 1px solid black;
    width: 1200px;
    height: 900px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

#zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

#zoom-controls button {
    cursor: pointer;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid #ccc !important;
    background-color: #f0f0f0 !important;
    font-weight: bold;
    font-size: 1.2em;
}

#zoom-in, #zoom-out {
    color: black !important;
    font-size: 1em;
}

#controls {
    width: 300px;
}


/**
forme {
    stroke: black;
    stroke-width: 1;
    cursor: pointer;
}

.cadre-surbrillance {
    fill: none;
    stroke: yellow;
    stroke-width: 5;
    pointer-events: none;
}

/**
 * référence n° 20250802-142500-35
 */
/*
#left-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 400px;
    min-width: 400px;
}
      
.center-panel {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    box-sizing: border-box;
}

.channels-container {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 5px;
    margin-top: 10px;
}
        
*/
/* Styles de triage */
/*
#sort-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
*/
#sort-direction {
    flex-shrink: 0;
    padding: 5px 10px;
    width: 25% !important;
    height: 30px !important;
}
/*
#right-panel {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#color-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#color-panel span {
    justify-content:center;
}

#color-panel label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

use {
    pointer-events: none;
}

.hover-clone {
    pointer-events: none;
}

*/

        /* Styles pour la popup */
        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }
        
        .popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            width: 95%;
            max-width: 800px;
            max-height: 85%;
            overflow: hidden;
            z-index: 1001;
        }
        
        .popup-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .popup-title {
            margin: 0;
            font-size: 24px;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }
        
        .close-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        /* Actions header */
        .actions-header {
            padding: 15px 20px;
            background: #f8f9fa;
            border-bottom: 1px solid #ddd;
            display: flex;
            justify-content: flex-end;
        }
        
        .save-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .save-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }
        
        /* Onglets */
        .tabs-container {
            display: flex;
            border-bottom: 1px solid #ddd;
            background-color: #f8f9fa;
            overflow-x: auto;
            min-height: 60px;
        }
        
        .tab-button {
            padding: 15px 20px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 14px;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 120px;
            justify-content: center;
        }
        
        .tab-button:hover {
            background-color: #e9ecef;
        }
        
        .tab-button.active {
            background-color: white;
            border-bottom-color: #667eea;
            color: #667eea;
            font-weight: bold;
        }
        
        .color-indicator {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid #fff;
            box-shadow: 0 0 0 1px #ddd;
        }
        
        .tab-content {
            display: none;
            padding: 20px;
            max-height: 400px;
            overflow-y: auto;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Fiche couleur */
        .color-card {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .color-header {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid #ddd;
        }
        
        .main-color-swatch {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 15px;
            border: 3px solid #fff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        
        .usage-count {
            background: #667eea;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            display: inline-block;
            margin-top: 10px;
        }
        
        .color-details {
            padding: 25px;
        }
        
        .color-details p {
            margin: 12px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .color-details p:last-child {
            border-bottom: none;
        }
        
        .color-details span:first-child {
            font-weight: bold;
            color: #495057;
        }
        
        .color-details span:last-child {
            color: #6c757d;
            font-family: monospace;
        }
        
        /* Channels containers */
        /*
        .channels-container {
            margin: 20px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }
        
        .channel-label {
            font-weight: bold;
            font-size: 16px;
            color: #495057;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .channel-info-list {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #dee2e6;
        }
        
        .channel-info-list:last-child {
            border-bottom: none;
        }
        
        .channel-info-list .label {
            font-weight: 500;
            color: #495057;
            flex: 1;
        }
        
        .channel-info-list .color-box {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            margin: 0 15px;
            border: 1px solid #dee2e6;
        }
        
        .channel-info-list .value {
            font-family: monospace;
            font-weight: bold;
            color: #6c757d;
            min-width: 60px;
            text-align: right;
        }
        */

        /* Contours styles */
        .color-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 15px;
        }
        
        .color-item {
            text-align: center;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            transition: transform 0.3s, box-shadow 0.3s;
            background: white;
        }
        
        .color-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .color-swatch {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin: 0 auto 8px;
            border: 2px solid #ddd;
            position: relative;
            overflow: hidden;
        }
        
        .color-info {
            font-size: 12px;
            line-height: 1.4;
        }
        
        .color-value {
            font-weight: bold;
            margin: 4px 0;
            font-family: monospace;
            background: #f8f9fa;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .color-value:hover {
            background: #e9ecef;
        }
        
        .color-count {
            color: #666;
            font-size: 11px;
            margin-top: 4px;
        }
        
        /* Animation notifications */
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .popup {
                width: 95%;
                max-height: 90%;
            }
            
            .tabs-container {
                flex-wrap: wrap;
            }
            
            .tab-button {
                min-width: auto;
                flex: 1;
                font-size: 12px;
                padding: 12px 8px;
            }
            
            .color-indicator {
                width: 12px;
                height: 12px;
            }
        }
        
        /* CSS pour la nouvelle organisation des boutons */

/* Case à cocher en haut */
.checkbox-container {
    /* display: flex;
    justify-content: center;
    margin-bottom: 5px; */
    width: 20px; 
    height: 20px;
    margin: 0 5px;
    border: 1px solid #777 !important;

}
/*
.global-mode-label {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    gap: 8px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.global-mode-label:hover {
    background-color: #f8f9fa;
}
*/

#selectGlobalColor-control {
	width: 90%;
	margin: 8px auto;
}
/*
.global-mode-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    cursor: pointer;
}
*/
/* Ligne du milieu : deux boutons de sauvegarde côte à côte */

.save-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.save-button {
	width: 45% !important;
	padding: 7px !important;
/*    flex: 1;
    padding: 10px 15px !important;
    width: auto !important;
    height: 40px !important;
    font-size: 13px !important;
    text-align: center; */
}

/* Ligne du bas : manuel à droite, espace libre à gauche */
.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-slot {
    flex: 1;
    /* Espace réservé pour un futur bouton */
    min-height: 40px;
    /* Optionnel : bordure en pointillés pour visualiser l'espace */
    border: 2px dashed transparent;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.empty-slot:hover {
    border-color: #dee2e6;
}

.manual-button {
	width: 100% !important;
	padding: 7px !important;
/*    flex: 1;
    padding: 10px 15px !important;
    width: auto !important;
    height: 40px !important;
    font-size: 13px !important;
    margin-left: 10px; */
}

/* Responsive : sur petits écrans, tout en colonne */
@media (max-width: 768px) {
    .save-row {
        flex-direction: column;
    }
    
    .bottom-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .manual-button {
        margin-left: 0;
    }
    
    .save-button,
    .manual-button {
        font-size: 12px !important;
    }
}

/* État actif de la case à cocher */
#global-color-change:checked + .global-mode-label {
    color: #28a745;
    font-weight: 600;
}

/* Animation pour la case à cocher */
#global-color-change {
    transition: transform 0.1s;
}

#global-color-change:checked {
    transform: scale(1.1);
}

.popup-content p {
    margin: 0.5em 0;
    line-height: 1.4;
}

.popup-content p:empty {
    display: none;
}

.popup-content h1, .popup-content h2, .popup-content h3 {
    margin: 1em 0 0.5em 0;
}

.mobile-only-message {
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}

.mobile-only-message h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.mobile-only-message p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.mobile-only-message .icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.7;
}