*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
    --bg-color: linear-gradient(180deg, #040918 0%, #091540 100%);
    --second-color: hsl(226, 25%, 17%);
    --text-color : hsl(200, 60%, 99%);
}

[data-theme="clair"] {
    --bg-color: hsl(217, 61%, 90%);
    --second-color: hsl(200, 60%, 99%);
    --text-color : hsl(227, 75%, 14%);    
}

html, body{
    min-height: 100%;
    background: var(--bg-color);
    background-repeat: no-repeat;
    padding: 0 5%;
}

.entete{
    background: var(--second-color);
    border-radius: 15px;;
}
.entete .container img{
    color:var(--text-color);
}
.entete .navbar-brand{
    background: hsl(226, 11%, 37%);
    border-radius: 5px;
    padding: 0 7px;
    padding-top: 5px;
}

[data-theme="clair"] .entete .navbar-brand{
    background: hsl(0, 0%, 78%);
}

.entete .navbar-brand:hover{
    background: hsl(0, 0%, 78%);
}
.entete .navbar-brand:focus{
    border: 1px solid hsl(3, 86%, 64%);
}
.jc-nav{
    background: transparent;
}
.jc-nav .navbar .container a{
    color: var(--text-color);
    font-family: "Karla", sans-serif;
    font-weight: 500;
}

.jc-nav .navbar .container .navbar-brand{
    font-size: 25px;
}


.jc-nav .nav-item .nav-link{
    background: var(--second-color);
    margin-left: 10px;
    border-radius: 30px 30px 30px 30px;
}

.jc-nav .nav-item .nav-link:hover{
    border: 2px solid hsl(227, 75%, 14%);
    background: hsl(3, 86%, 64%);
    outline: 2px solid hsl(3, 86%, 64%);

}


.jc-nav .nav-item .nav-link:focus{
    border: 2px solid hsl(227, 75%, 14%);
    background: hsl(3, 86%, 64%);
    outline: none;
    color: hsl(200, 60%, 99%);
}

.jc-nav .nav-item:hover a{
    color: hsl(227, 75%, 14%);

} 

[data-theme="clair"] .jc-nav .nav-item .nav-link:hover{
    border: none;
    outline: none;
}

                /** =========== CARD SECTION =========*/

section{
    padding-bottom: 3%;
}

.jc-row .col .card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--second-color);
    border: 1px solid hsl(0, 0%, 58%);
    border-radius: 20px;
    padding: 5%;
    color: var(--text-color);
    padding-bottom: 0;
}

.jc-row .col .card .card-top{
    display: flex;
    gap: 10px;
    align-items: flex-start; 
}
.jc-row .col .card .card-top img{
    width: 15%;
    height: auto;
}

.jc-row .col .card .card-top .text-block{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.jc-row .col .card .card-top .text-block p
{
    margin: 0;          
    padding-top: 1%;
    color: hsl(0, 0%, 78%);
}

[data-theme="clair"] .jc-row .col .card .card-top .text-block p{
    color: hsl(226, 11%, 37%);
}


.jc-row .col .card .button{
    display: flex;
    justify-content: space-between;
    margin: 0 2%;
}

.jc-row .col .card .button .button-1{
    border: 1px solid hsl(217, 61%, 90%);
    border-radius: 30px 30px 30px 30px;
    color: var(--text-color);
    font-family: "Karla", sans-serif;
    font-weight: 500;
    padding: 5px;
    margin: auto 0;
}

.jc-row .col .card .button .button-1:hover{
    border: 2px solid hsl(227, 75%, 14%);
    background: hsl(226, 11%, 37%);
    outline: 2px solid hsl(3, 86%, 64%);  
}

.jc-row .col .card .button .button-1:focus{
    border: 2px solid hsl(227, 75%, 14%);
    background: hsl(3, 86%, 64%);
    color: hsl(227, 75%, 14%);
    outline: none;  
}

[data-theme="clair"] .jc-row .col .card .button .button-1:hover{
    background: hsl(3, 86%, 64%);
    outline: none;
    border: none;
    color: hsl(217, 61%, 90%);
}

.form-check-input {
  appearance: none;      
  -webkit-appearance: none;
  background-color: #ccc;
  border-radius: 34px;
  position: relative;
  cursor: pointer;
  box-shadow: none;
  margin: 15px;
}

.form-check-input,
.form-check-input:focus,
.form-check-input:checked,
.form-check-input:checked:focus {
  box-shadow: none;
  outline: none;
  border: none;
}

.form-check-input:checked {
  background-color: hsl(3, 86%, 64%);
  box-shadow: none;
}

.form-check-input:checked::after {
  left: 27px;
  box-shadow: none;
}  




.attribution{
    color: #fff;
    font-weight: 500;
    margin-bottom: 1%;
}

                /** =========== ANIMATION JS =========*/


@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}
.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

.hide {
  display: none !important;
}