@import "theme.css";

*{
    font-family: var(--font-family);
    font-size:17px;
    line-height: 25px;
    box-sizing: border-box;
    font-weight: unset;
    font-style: unset;
    border:unset;
    background-color: unset;
    outline: unset;
    margin:unset;
    padding: unset;
    color:var(--default-dark-color);
}

body{
    background-color: white;
    width:100%;
    margin:0 auto;
}

h1{
    font-size: 2.5rem;
    line-height: 4rem;
    font-weight: bold;
    color:var(--red);
    text-transform: uppercase;
}

h1.littleBottomMargin{
    margin: -40px auto;
}

@media screen and (max-width: 700px) {
    *{
        font-size:16px;
    }
    h1{
    font-size: 2rem;
    line-height: 3rem;
}
}

strong{
    font-weight: bold;
}

.textAlignCenter{
    text-align: center;
}

a{
    text-decoration: none;
}


a:hover, a.active{
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    cursor: pointer;
}

button{
    background-color: var(--default-dark-color);
    color:white;
    height:50px;
    border-radius: 5px;
    padding:0 20px;
    cursor:pointer;

}

button:hover:not(button.loading, button:disabled,){
    background-color: var(--default-darker-color);
    cursor:pointer;
}

button.halfDark, button.loading{
    background-color: #868686;
}

button:disabled:not(button.loading){
    background-color: var(--gray);
    color: #a8a8a8;
}

button:disabled:hover:not(button.loading){
    background-color: var(--gray);
    color: #a8a8a8;
    cursor: not-allowed;
}



@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg); /* Fait tourner le cercle */
    }
    
}

.whiteText{
    color:white;
}



/* 1. On cache la flèche par défaut */
details summary {
    list-style: none; /* Pour Chrome/Firefox */
    cursor: pointer;
}
details summary::-webkit-details-marker {
    display: none; /* Pour Safari */
}

/* 2. On crée notre propre flèche */
summary::before {
    content: "▼";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s; /* Petit effet fluide sympa */
    
    /* On la met droite par défaut (pointant vers la droite) */
    transform: rotate(-90deg); 
}

/* 3. On la fait pivoter quand c'est ouvert */
details[open] summary::before {
    transform: rotate(0deg);
}

details div:first-of-type{
    display: flex;
    flex-direction: column;
    gap:20px;
    margin:20px 20px 10px;
    background-color: rgba(182, 182, 182, 0.3);
    padding:20px;
}


@media screen and (max-width: 700px) {
    details div:first-of-type{
        display: flex;
        flex-direction: column;
        gap:20px;
        margin:20px 0px 0;
        background-color: rgba(173, 173, 173, 0.2);
        padding:20px;
    }
}

.checkboxDiv{
    display: flex;
    flex-direction: row;
    gap:10px;
    align-items: center;
}
span.checkbox {
  min-width: 20px;
  width: 20px;
  height: 20px;
  background-color: white;
  display: flex;
  color: transparent;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-bottom: 10px; 
  padding-left: 5px;
  border: 1px solid white;
}

span.checkbox.active:after {
  content: '✔';
  color: var(--black) !important;
  font-size: 20px;
  margin-top:5px;
}

span.checkbox.active,
span.checkbox:hover {
  background-color: var(--white); 
  cursor: pointer;
}