/* === Layout général === */
.claris-calculateur {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    color: #1f2e4b;
}

/* === Boutons de sélection === */
.claris-btn {
    padding: 12px 20px !important;
    margin: 8px 5px;
    border: 2px solid #f1ebe4 !important;
    background: #f1ebe4 !important;
    color: #2e2e2e !important;
    cursor: pointer;
    border-radius: 0px;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}
.claris-btn.selected {
    background: #829693 !important;
    color: #ffffff !important;
    border-color: #829693 !important;
}
.devis {
    margin: 0 !important;
    display:none;
}

/* === Liste de zones === */
div#claris-zones {
    /*margin: 30px 0 50px 0;*/
}

.claris-zone-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-left: 0px;
}
.claris-zone-list li {
    margin-bottom: 10px;
}
.claris-zone-list li label {
    margin: 0 0 0 5px;
}
ul.claris-zone-list li:before {
    content: '' !important;
    display: none;
}

.claris-zone-list label {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
}
.claris-zone-list input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #829693;
    margin-right: 10px;
    flex-shrink: 0;
    border:1px solid #829693;
    border-radius:0 !important;
}

/* === Tableau récapitulatif === */
#claris-summary {
    margin-top: 30px;
}

.claris-summary {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.05);*/
    border-radius: 0px;
    overflow: hidden;
    border: 0 !important;
}
table.claris-result {
    border: 0px !important;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100% !important;
}
.claris-summary thead {
    background-color: #ffffff;
}

.claris-summary th, .claris-summary td {
    padding: 12px 16px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #f1ebe4;
}

.claris-summary td:last-child {
    font-weight: bold;
}

table.claris-summary th {
    border: 0 !important;
}
table.claris-summary tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: hsl(32deg 42.86% 93.14%);
}

.claris-result {
    background: #F5EEE6;
    padding: 20px 32px;
    border-radius: 0px;
    margin:0px;
    font-size: 16px;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.05);*/
}
.claris-result-div{
    background-color: #F5EEE6 !important;
    padding: 40px;
}
.claris-result tbody tr td {
    border: 0px !important;
    background-color: #F5EEE6 !important;
    padding: 5px;
}

.claris-result p {
    margin: 10px 0;
}

.claris-result .barre {
    text-decoration: line-through;
    color: #999;
}

p.eco {
    color: #829693;
}
p.eco span {
    font-weight: bold;
    color: #829693;
}
.eco a{
    color: #829693 !important;
}
p.price{
    font-weight: bold;
    font-size:20px;
    color: #829693;
}

/* === Groupes de sélection harmonisés === */
.claris-group {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.claris-label {
    flex: 0 0 140px;
    font-weight: 300;
    font-size: 20px;
    color: rgb(130, 150, 147);
    font-family: var(--font-title);
}

.claris-buttons {
    display: flex;
    flex: 1;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.claris-buttons .claris-btn {
    flex: 1 1 0;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    background-color: #ffffff !important;
    border: 1px solid #829693 !important;
    padding: 10px 10px !important;
    border-radius: 0px;
    font-size: 15px;
    color: #829693 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500 !important;
    box-shadow: 0 0 0 !important;
}

.claris-buttons .claris-btn.selected {
    background-color: #829693 !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info {
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
    color: #9a9a9a;
    text-align: center;
    padding: 20px;
}

@media (max-width: 600px) {
  .claris-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
  }

  .claris-label {
    flex: 1 1 100%;
    margin-bottom: 5px;
  }

  .claris-buttons {
    flex-direction: column;
    gap: 0px;
  }

  .claris-buttons .claris-btn {
    flex: 1 1 100%;
  }
  .claris-summary {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .claris-summary table {
    min-width: 600px;
  }
}

.claris-btn.flash {
    animation: flashHighlight 0.8s;
}

@keyframes flashHighlight {
    0% { background-color: #d2e4e0; }
    50% { background-color: #829693; }
    100% { background-color: #829693; }
}