/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

#content {
    flex-direction: column; /* ou row si tu veux des éléments côte à côte */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0 auto;
    max-width: 960px; /* largeur max pour desktop */
    width: 100%;       /* prend toute la largeur possible sur mobile */
    box-sizing: border-box;
}

#budget {
    color: #F85A20; /* orange vif */
    font-weight: bold;
  }
  
.orange {
color: #F85A20;
font-weight: bold;
}  

.flex {
    display:flex;
    flex-direction: column;
}

body {
    font-family: 'Sora', sans-serif;
    margin:0;
}

input::placeholder {
    opacity: 0.5;
}


h1 {
    text-align: center;
}

.selection {
    width: 100%;
}

.title {
    background: rgb(5,52,76);
    background: -moz-linear-gradient(128deg, rgba(5,52,76,1) 0%, rgba(237,79,86,1) 100%);
    background: -webkit-linear-gradient(128deg, rgba(5,52,76,1) 0%, rgba(237,79,86,1) 100%);
    background: linear-gradient(128deg, rgba(5,52,76,1) 0%, rgba(237,79,86,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#05344c",endColorstr="#ed4f56",GradientType=1);
    padding:30px;
    color:#fff;
}

select, input[type="number"] {
    display: block;
    font-size: 16px;
    margin: 30px auto;
    min-width:70%;
}

select {
    padding: 0.75rem 2.5rem 0.75rem 1rem; /* top right bottom left */
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #edf0f2;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
  }
  

table {
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #ECEFF1;
}

th, td {
    border: 1px solid black;
    padding: 20px;
    text-align: center;
}

.checkbox {
    display: flex;
}

.checkbox-flex {
    display: flex;
    margin: 0 auto;
}

.checkbox-flex input {
    margin:0 10px;
    width: auto;
}

#buttons > button {
  background-color: #F85A20;
  margin: 30px auto;
}

button {
    display: block;
    margin: 20px 0;
    width: 200px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#buttons > button:hover {
  background-color: #F85A20;
  transition: .2s;
}

.export_button {
  background-color: #FF3F68;
}

.export_button:hover {
  background-color: #FF3F68;
  transition: .2s;
}

select, input, button {
font-family: 'Sora', sans-serif;
padding:20px;
background-color: #ECEFF1;
}

/*responsive*/

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }
  
    thead {
      display: none;
    }
  
    tr {
      margin-bottom: 1rem;
      border: 1px solid #ccc;
      background: #fff;
      padding: 1rem;
    }
  
    td {
      position: relative;
      padding-left: 50%;
      border: none;
      border-bottom: 1px solid #eee;
      text-align: left;
    }
  
    td::before {
      content: attr(data-label);
      position: absolute;
      top: 0.75rem;
      left: 1rem;
      width: 45%;
      font-weight: bold;
      white-space: nowrap;
      color: #333;
    }
  }


#tableaux-simples {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-width: 90%;
    margin: 0 auto;
}

.tableau-mini {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tableau-mini table {
    width: 100%;
    border-collapse: collapse;
}

.tableau-mini th, .tableau-mini td {
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.tableau-mini th {
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
}