/* CSS BANDO */
#bandoInfo{
    height:20px;
    background:#FFFF00;
    position: fixed; 
    z-index: 10;
    filter:alpha(opacity=85);/*IE*/
    -moz-opacity:0.85; /*autres nav*/
    opacity: 0.85;} 
    
    :root{
        /* Warm, elegant palette */
        --site-bg: #f6f4ef;       /* warm off-white */
        --panel-bg: #fff8ee;      /* soft cream for “tools” */
        --text: #0f2d3f;          /* deep blue-grey */
        --accent: #0f5c7a;        /* refined blue */
        --accent-dark: #0b4257;   /* darker blue */
        --link: #0f5c7a;
        --link-hover: #c6473a;    /* terracotta accent */
    }

    body{
        margin:0px;
        background-color: var(--site-bg);
        color: var(--text);
    }
    
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }
    
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
    }
    
    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    
    input:checked + .slider {
        background-color: #2196F3;
    }
    
    input:checked + .slider:before {
        transform: translateX(26px);
    }
    
    .slider:hover {
        background-color: #b0b0b0;
    }
    
    input:checked + .slider:hover {
        background-color: #0b7dda;
    } 
    
    #select_jours {
        background: transparent;
        position: fixed;
        top: 70%;
        left: 50%;
        z-index: 10;
        width: 250px;
        height: 360px;
        margin-left: -125px;
        margin-top: -180px;
        }
    
    
    
    a {
        text-decoration: none;
        color: var(--link);
    }

    a:hover {
        color: var(--link-hover);
    }

    /* Mobile navbar components */
    .site-nav__toggle {
        display: none;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--accent);
        color: var(--accent);
        width: 44px;
        height: 40px;
        border-radius: 10px;
        cursor: pointer;
    }

    .site-nav__menu {
        display: none;
        padding: 10px 20px 14px;
        border-top: 1px solid rgba(15, 92, 122, 0.18);
        background-color: inherit;
    }

    .site-nav__menu a {
        display: block;
        padding: 10px 0;
        font-family: Verdana, Arial, sans-serif;
        font-size: 16px;
        color: var(--link);
    }

    .site-nav__menu-lang {
        display: flex;
        gap: 10px;
        padding-top: 6px;
    }

    .site-nav__menu-lang a {
        display: inline-block;
        padding: 6px 10px;
        border: 1px solid var(--accent);
        border-radius: 8px;
    }

    /* Desktop Input Styling */
    .input-group {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
        gap: 0;
    }

    .input-group-separator {
        display: none; /* Hide on desktop, show on mobile */
        color: #006699 !important;
        font-weight: bold !important;
        font-size: 14px !important;
        margin: 0 2px !important;
    }

    .desktop-only {
        display: inline !important;
        font-size: 13px !important;
        color: #006699 !important;
        padding: 0 2px !important;
        font-weight: normal !important;
    }

    .mobile-only {
        display: none !important;
    }

    /* Mobile Specific Overrides */
    @media (max-width: 768px) {
        body { overflow-x: hidden; }
        img { max-width: 100%; height: auto; }

        .site-nav__links,
        .site-nav__actions {
            display: none !important;
        }

        .site-nav__inner {
            padding: 0 12px !important;
            gap: 10px;
        }

        .site-nav__brand a {
            max-width: calc(100vw - 80px);
        }

        .site-nav__toggle {
            display: inline-flex;
        }

        .site-nav.is-open .site-nav__menu {
            display: block;
        }

        td[width="40%"],
        td[width="30%"],
        td[width="20%"],
        td[width="310"] {
            display: none !important;
        }

        h1, h2, h3, p, li, td, th {
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .titre,
        .titre * {
            white-space: normal !important;
        }

        .titre {
            height: auto !important;
            padding-top: 16px !important;
            padding-bottom: 8px !important;
            word-break: break-word;
            overflow-wrap: break-word;
            min-height: unset !important;
        }

        .titre h1 {
            font-size: clamp(20px, 7vw, 40px) !important;
            line-height: 1.2 !important;
            margin: 0 !important;
            padding: 0 5px !important;
            max-width: 100% !important;
            display: block;
            overflow-wrap: break-word;
            word-wrap: break-word;
            hyphens: auto;
        }

        p {
            padding: 0 10px;
        }

        /* Calculator tables on mobile */
        table.ShadRB[width="525"],
        table.ShadRB[width="500"],
        table.border1px[width="525"],
        table#table_total_toto[width="525"],
        table#entete_sem[width="525"],
        table#entete_imp[width="525"] {
            width: 100% !important;
            max-width: 525px;
            margin-left: auto !important;
            margin-right: auto !important;
            border-spacing: 0 2px !important;
            border-collapse: separate !important;
        }

        table#matable[width="514"],
        table[width="514"] {
            width: 100% !important;
        }

        .input-group {
            display: flex !important;
            gap: 2px !important;
        }

        .desktop-only {
            display: none !important;
        }

        .mobile-only {
            display: inline-block !important;
        }

        .input-group-separator {
            display: inline-block !important;
        }

        .heure, .heure_soust {
            width: 30px !important;
            height: 22px !important;
            font-size: 13px !important;
        }

        .tempsVert, .result {
            width: 60px !important;
            height: 22px !important;
            font-size: 13px !important;
        }

        td, th {
            padding: 2px !important;
            font-family: Verdana, Arial, sans-serif !important;
            font-size: 13px !important;
            color: #006699 !important;
            vertical-align: top !important;
        }

        th[nowrap], td[nowrap] {
            white-space: normal !important;
        }

        #entete_sem th[nowrap], 
        #entete_sem td[nowrap],
        #entete_sem th,
        #entete_sem td {
            white-space: nowrap !important;
        }

        th {
            text-align: center !important;
            font-weight: bold !important;
        }

        .ShadRB th div, .ShadRB td div[align="center"] {
            font-size: 11px !important;
            line-height: 1.1 !important;
            font-weight: bold !important;
        }
    }
     
    #barre {
        width: 100%;
        background: transparent;
        /*padding:8px 0;*/
        padding:8px 0;
        font-family:  "Trebuchet MS";
        text-align: center;
        font-size:11px;
        margin-top:-30px;
        margin-bottom:10px;
       /* border-bottom: 10px solid #2e1b27;*/
    }
     
    #fermer {
        background: url(../img/fermer.png);
        width: 18px;
        height:18px;
        display: block;
        cursor: pointer;
        float:right;
        margin-right:30px;
        margin-top:-50px;
    }
     
    #fermer:hover {
    /* J'utilise un gif en :hover pour animer la croix de fermeture */
        background: url(../img/fermer.gif);
    }
    
    .localize {
        font-family: Verdana;
        font-size: 16px;
        font-weight: bold;
        background: #CC0000;
        color:#000000;
        cursor:pointer;
        width: 140px;
        height : 50px;
        margin-left:40px;
        float:left;
        margin-top:-60px;
    
    }
    
    .localizeOver {
        font-family: Verdana;
        font-size: 16px;
        font-weight: bold;
        background: #FFCC33;
        color:#000000;
        cursor:pointer;
        width: 140px;
        height : 50px;
        margin-left:40px;
        float:left;
        margin-top:-60px;
    }
    
    
    
    /* FIN CSS BANDO */
    
    
    table {
        font-family: Verdana;
        font-size: 13px;
        color: #006699;
        padding: 0px 0px 5px;
        text-align: left;
        margin-bottom: 5px;
    }
    
    
    th {
        font-family: Verdana;
        font-size: 14px;
        color: #006699;
        padding: 3px 5px;
        text-align: center;
    }
    
    
    td {
        font-family: Verdana;
        font-size: 14px;
        color: #006699;
        vertical-align: top;
        text-align: left;
        color: #006699;
        padding: 3px;
    }
    
    A:link {
        color: #CC6666;
        text-decoration: none;
        text-align: left;
        border: 0px none;
        }
    
    A:visited {
        text-align: left;
        color: #CC6666;
        text-decoration: none;
        border: 0px none;
        }
    
    A:active {
        text-align: left;
        text-decoration: none;
        border: 0px none;
        }
    
    A:hover {
        text-align: left;
        color: #CC0000;
        border: 0px none;
        /*font-weight: bolder;*/
        }
        
    
    .titre {
        font-size: 18px;
        font-weight: bold;
        color: #006699;
        text-align: center;
        height: auto;
        min-height: 75px;
        vertical-align: middle;
        padding-top: 25px;
        padding-bottom: 15px;
        text-shadow: 0px 2px 6px #999;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .titre40 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        color: #006699;
        text-align: center;
        height: 30px;
        vertical-align: middle;
        padding-top: 25px;
        text-shadow: 0px 2px 6px #999;
    }
    
    .shadowText {
        text-shadow: 0px 2px 6px #999;
    }
    
    
    .tempsVert {
        height: 15px;
        width: 70px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #006699;
        border: 1px solid #00FF00;
        text-align: right;
        vertical-align: middle;
        padding-right: 2px;
    }
    
    .tempsNormal {
        height: 15px;
        width: 70px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #006699;
        border: 1px solid #006699;
        text-align: right;
        vertical-align: middle;
        padding-right: 2px;
    }
    
    .tempsRouge {
        height: 15px;
        width: 70px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #006699;
        border: 1px solid #990000;
        text-align: right;
        vertical-align: middle;
        padding-right: 2px;
        background-color: #CCCCCC;
    
    }
    
    /*input::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }
    */
    .heure {
        height: 15px;
        width: 21px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #006699;
        border: 1px solid #006699;
        text-align: right;
        vertical-align: middle;
        padding-right: 2px;
    }
    
    .libelle {
        height: 15px;
        width: 100%;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #006699;
        border: 1px solid #006699;
        text-align: left;
        vertical-align: middle;
        padding-right: 2px;
    }
    
    .heure_soust {
        height: 15px;
        width: 35px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #006699;
        border: 1px solid #006699;
        text-align: right;
        vertical-align: middle;
        padding-right: 2px;
    }
    
    .result {
        height: 15px;
        width: 70px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #006699;
        border: 1px solid #006699;
        text-align: right;
        vertical-align: middle;
        padding-right: 2px;
    }
    
    .bouton_l60 {
        font-family: Verdana;
        font-size: 11px;
        color: #006699;
        width: 60px;
        text-align: center;
        vertical-align: top;
        
    /*	box-shadow: 0px 0px 15px #aaa;
    */	}
    
    .bouton_w130 {
        font-family: Verdana;
        font-size: 11px;
        color: #006699;
        width: 170px;
        text-align: center;
        vertical-align: top;
        }
    
    .bouton_w30 {
        font-family: Verdana;
        font-size: 11px;
        color: #006699;
        width: 30px;
        text-align: center;
        vertical-align: top;
        }
    
    .bouton_w70 {
        font-family: Verdana;
        font-size: 11px;
        color: #006699;
        width: 70px;
        text-align: center;
        vertical-align: top;
        }
    
    
    hr {
        color: #006699;
        background-color: #006699;
        height: 1px;
        border: none;
    
    }
    .centrer {
        text-align: center;
    }
    
    .ShadB {
        box-shadow: 0px 0px 15px #aaa;
    }
    
    .ShadR {
        box-shadow: 0px 0px 20px #aaa;
    }
    .ShadRB {
        box-shadow: 0px 0px 15px #aaa;
    }

    /* Keep original calculator/tool background colors (no override) */
    
    .border1px {
        border: 1px solid #006699;
    }
    
    
    .DivShad{
        box-shadow: 0px 0px 15px #aaa;
        border-radius:15px 15px 15px 15px ;
        -moz-border-radius:15px 15px 15px 15px ;
        -webkit-border-radius:15px 15px 15px 15px ;
        background: antiquewhite;
        
    }
    
    
    .ShadIma {
        box-shadow: 0px 0px 10px #aaa;
    }
    
    
    .zoom {
    width: 16px;
    height: 16px;
    }
    .image {
    width: 100%;
    height: 100%;
    }
    .image img {
    /* La transition s'applique Ã  la fois sur la largeur et la hauteur, avec une durÃ©e de 0.2 seconde. */
    -webkit-transition: all 0.2s ease; /* Safari et Chrome */
    -moz-transition: all 0.1s ease; /* Firefox */
    -ms-transition: all 0.1s ease; /* Internet Explorer 9 */
    -o-transition: all 0.1s ease; /* Opera */
    transition: all 0.1s ease;
    }
    .image:hover img {
    /* L'image est grossie de 10% */
    -webkit-transform:scale(1.1); /* Safari et Chrome */
    -moz-transform:scale(1.1); /* Firefox */
    -ms-transform:scale(1.1); /* Internet Explorer 9 */
    -o-transform:scale(1.1); /* Opera */
    transform:scale(1.1);
    }
