 <div  id="idcookies">
        <p id="idpcookies">Nous utilisons les cookies afin d’améliorer l’expérience de nos utilisateurs. En cliquant sur ”J’accepte”, vous acceptez l’utilisation des cookies. <a  id="idacookies" href="https://carhaix2020.bzh/?id=4"><u>En savoir plus.</u></a>
        <input id="idbcookies" type="button" value=" J'accepte " onclick="effacercookies()"></p>
        
         <style>
           #idcookies {
            background-color: #0055ee;
            position: fixed;
            left: 0;
            bottom: 0;
            //width: 100%;
            //text-align: center;
            padding: 10px;
            }
        
        #idpcookies {
            display: block;
            font-size: 20px;
            color: white;
            margin: 10px;
            width: 90%;
            text-align: center;
           }

           #idacookies {
            font-size: 20px;
            color: white;
            }

           #idbcookies {
            font-size: 20px;
            background-color: white;
            color: #0055ee;
            font-weight: bold;
            margin: 5px;
            padding: 5px 20px 5px 20px;
            
           }
      

         </style>
         <script>
            function effacercookies() {
               document.getElementById("idcookies").style.display = 'none';
               setCookie("rgpd", "valider", 2)
            }
           
             if(getCookie("rgpd")=="valider") 
               document.getElementById("idcookies").style.display = 'none';
                 
                 
            function setCookie(cname, cvalue, exdays) {
  var d = new Date();
  d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
  var expires = "expires="+d.toUTCString();
  document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}

function getCookie(cname) {
  var name = cname + "=";
  //alert(document.cookie);
  var ca = document.cookie.split(';');
  for(var i = 0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0) == ' ') {
      c = c.substring(1);
    }
    if (c.indexOf(name) == 0) {
      return c.substring(name.length, c.length);
    }
  }
  return "";
}
        </script>
        </div>