/* 
    ⓒ 2025 - Design et styles créés par Van Massenhove Jérémy
    Ne pas copier sans autorisation.
*/
body {
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1;
    margin-top: 0;
    overflow-x: hidden;
}

.header-content {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    position: relative;
}

.alerte-avertissement {
    display: inline-block;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.95rem;
    margin: 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

  .item {
    flex: 1 1 30%;
  }  

  .logos {
    margin-bottom: 10px;
  }

.logos {

    display: flex;
    justify-content: center;
    align-items: center;
}

.logocarpe1 {
    width: 600px;
}

.logofarine, .logoliquide, .logooeuf, .logocout, .logokilos {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.dark-mode .logocarpe1 {
    filter: invert(100%);
}

.titrelogo {
    display: flex;
    align-items: center;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    margin-top: 20px;
    color: #5a6b7a;
}
h2, h3 {
    color: #5a6b7a;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}
td, th {
    padding: 10px;
    text-align: center;
    vertical-align: middle; 
    }
.unitCost {
    text-align: right;
    vertical-align: middle;
    margin-top: 5px;
}

tr {
    display: flex;
    flex-wrap: wrap;
}
input, select {
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #ccc;
}
.result {
    font-weight: bold;
}



.button-green {
    border: none;
    border-radius: 20px;
    padding: 10px 20px; 
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block; 
}

.button-red {
       border: none;
    border-radius: 20px; 
    padding: 5px 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block; 
}

.button-green {
    background-color: #155515;
}

.button-red {
    background-color: #831212
}

.button-green:hover, .button-red:hover {
    transform: scale(1.1); 
}

.button-green:active, .button-red:active {
    transform: scale(0.95);
}

.button-green:hover {
    background-color: darkgreen; 
}

.button-red:hover {
    background-color: darkred; 
}

.button-green.noanim:hover {
    transform: none;
    background-color: #155515;
}
.button-red.noanim:hover {
    transform: none;
    background-color: #831212;
}

#theme-toggle {
    position: absolute;
    top: 20px;  
    left: 80%;
    transform: translate(-50%, -50%);
    width: 50px;  
    height: 50px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: none;
    visibility: visible;  
    z-index: 10;  
}

.sun-icon,
.moon-icon {
    font-size: 24px; 
    width: 24px; 
    height: 24px; 
    transition: opacity 0.3s ease;
    position: absolute;
    visibility: visible; 
}

.sun-icon, .moon-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

body.dark-mode .sun-icon {
    opacity: 0; 
    color: white;
}

body.dark-mode .moon-icon {
    opacity: 1; 
}

body {
    transition: background-color 0.5s ease, color 0.5s ease; 
}

body {
    background-color: rgb(183, 183, 183);
    color: black;
}

body.dark-mode {
    background-color: rgb(36, 33, 33);
    color: white;
}

#oeuf select {
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #ccc;
    margin: 10px;                  
}

#oeufDetails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}

#oeufPrixKilo, #oeufGrammes, #oeufBoite, #oeufParBoite, #oeufUtilise {
    flex: 0 1 10%;
}

.tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tabs {
    display: flex;
    justify-content: center;
    margin-right: 0px;
}
.tab-button {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.tab-button:hover {
    background-color: #333;
    color: white;
}

.tab-button.active {
    background-color: #333;
    color: white;
}

#savePdf {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    margin: 0;
}

#savePdf:hover {
    background-color: #333;
    color: white;
}

.tab-content {
    opacity: 0;                 
    visibility: hidden;          
    position: relative;          
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    width: 100%;              
    border: none;
    box-sizing: border-box;
    padding: 15px;
    border-top: none;
    display: none;
}

.tab-content.active {
    opacity: 1;                
    visibility: visible;       
    position: relative;          
    display: block;
    transition: opacity 0.3s ease, visibility 0s linear 0s; 
}

body.dark-mode .tab-button {
    background-color: rgb(36, 33, 33);
    color: white;
    border: 1px solid white;
}

body.dark-mode .tab-button.active {
    background-color: white;
    color: black;
}
body.dark-mode #savePdf {
    background-color: rgb(36, 33, 33);
    color: white;
    border: 1px solid white;
}

body.dark-mode #savePdf:hover {
    background-color: white;
    color: black;
}

.site-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  .site-footer a {
    color: #4CAF50; 
    text-decoration: none;
  }
  
  .site-footer a:hover {
    text-decoration: underline;
  }

#videoboudin {
    width: 400px;
    height: 225px;
}

@media screen and (max-width: 600px) {

    html, body {
        overflow-x: hidden; 
    }

    header {
        align-items: center;
        text-align: center;
    }
    
    .header-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        position: relative;
    }

    .logocarpe1 {
        width: 80%;
    }
    #theme-toggle {
        top: 20px;
        right: 100%; 
        width: 40px; 
        height: 40px;
    }

    .tabs-container {
        width: 100%;
        display: flex;
        justify-content: space-around;
        margin-top: 15px;
    }

    .tabs {
        width: auto;
    }

    .tab-button {
        padding: 10px;
        font-size: 0.9rem;
    }

    .button-green {
        font-size: 14px; 
        padding: 8px 15px; 
        min-width: 80px;
    }

    #savePdf {
        width: 100%;
    }

    section {
        margin-bottom: 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }

    .farine-row {
        grid-template-columns: 1fr 1fr; 
    }

    .farine-row td:nth-child(1),
    .farine-row td:nth-child(2) {
        grid-column: span 2; 
    }

    .farine-row td:nth-child(3),
    .farine-row td:nth-child(4) {
        justify-content: center;
    }

    .farine-row td:nth-child(5) {
        justify-content: flex-end;
    }

    .liquide-row {
        grid-template-columns: 1fr 1fr; /
    }

    .liquide-row td:nth-child(1),
    .liquide-row td:nth-child(2) {
        grid-column: span 2; 
    }

    .liquide-row td:nth-child(3),
    .liquide-row td:nth-child(4) {
        justify-content: center;
    }

    .liquide-row td:nth-child(5),
    .liquide-row td:nth-child(6) {
        justify-content: flex-end;
    }


    #oeufPrixKilo, #oeufGrammes {
        flex: 1 1 45%; 
    }

    #oeufBoite, #oeufParBoite, #oeufUtilise {
        flex: 1 1 100%; 
    }

    .result {
        font-size: 1rem;
    }

    .select {
        width: 50%;
        padding: 8px;
        margin-top: 8px;
    }

    #videoboudin {
        width: 100%;
        height: auto;
        margin-top: 15px;
    }

    #oeufDetails {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    #xkilos ul {
        padding-left: 25px;
    }
s
    ul {
        word-wrap: break-word;
        overflow-wrap: break-word; 
        white-space: normal; 
        max-width: 100%; 
    }
    
    li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .site-footer {
        padding: 5px 5px;
        font-size: 0.85rem;
        width: 100%;
        box-sizing: border-box; 
        margin: 0; 
    }
    
    .site-footer p, .site-footer a {
        margin: 0;
        padding: 0;
    }

}
