@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #091747;
    --fontcolor:  white;
    --gray: #333;
    --swissclr: red;
    --card-bg-color: linear-gradient(135deg, rgba(255,255,255,0.3) 0%,rgba(120 120 120/30%) 65%, rgba(50 50 50/30%) 100%);
    --card-bx-shdw: 6px 6px 12px #1f1f1f,-2px -2px 12px #717172;
    --btn-bx-shdw: 6px 6px 12px #313131;
    --brdr-rds: 7.5px;
    --card-brdr: 2px solid rgba(255, 255, 255, 0.325);
    --bd-fltr: blur(3.5px);
    --clr-one: rgba(255, 255, 255, 0.325);
}

@keyframes navbar-bounce-top {
    0% {
        opacity: 0;
        transform: translateY(-250px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes h1 {
    0% {
        opacity: 0;
        transform: translateX(-250px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes from-right {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hero-button {
	0% {
		animation-timing-function: ease-out;
		transform: scale(1);
		transform-origin: center center;
	}

	10% {
		animation-timing-function: ease-in;
		transform: scale(0.91);
	}

	17% {
		animation-timing-function: ease-out;
		transform: scale(0.98);
	}

	33% {
		animation-timing-function: ease-in;
		transform: scale(0.87);
	}

	45% {
		animation-timing-function: ease-out;
		transform: scale(1);
	}
}

@keyframes gradient-animation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
}

/* RESET */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

.gregory,
.titanic {
    float:none;
}

:is(p) {
    font-family: 'Nunito_Sans', sans-serif;
}

:is(h1,h2,h3,h4,a,.price) {
    font-family: 'Roboto_condensed', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito_sans', sans-serif;
    color: var(--fontcolor);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-width: 360px;
}

.gradient-background {
    background: linear-gradient(130deg,#091747,#091747,#00aa77,#091747,#091747,#00aa77,#091747,#091747);
    background-size: 480% 480%;
    animation: gradient-animation 60s ease infinite;
  }
  
.navbar {
    position: relative;
    top: 1.5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 4em;
    width: 90%;
    margin: 0 auto;
    border-radius: var(--brdr-rds);
    backdrop-filter:  var(--bd-fltr);
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%,rgba(120 120 120/30%) 65%, rgba(50 50 50/30%) 100%);
    border: 2px solid rgba(255, 255, 255, 0.325);
    box-shadow:  var(--card-bx-shdw);
    padding: 0 1em;
    animation: navbar-bounce-top 2s ease-in-out 0s 1 alternate both;
    z-index: 1;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: "Montserrat", sans-serif;
}

.flag {
    height: clamp(2.4vh, 4vh, 5vh);
    aspect-ratio: 1 / 1;
    display: grid;
    border: 2px solid white;
    background: red;
    grid-template-columns: repeat(5, 2fr);
    grid-template-rows: repeat(5, 2fr);
}

.flag div {
    background: white;
}

.flag .vertical {
    grid-column: 3 / 4;
    grid-row: 2 / 5;
}

.flag .horizontal {
    grid-column: 2 / 5;
    grid-row: 3 / 4;
}

.swiss, .solution {
    /* font-family: "Montserrat", sans-serif; */
    font-size: clamp(1.5vh, 3vh, 5vh);
    font-weight: 800;
    margin-left: -2px;
}

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
    height: 50px;
}

.menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style-type: none;
    margin-top: 65px;
    padding: 0;
    border-radius: 15px;
    z-index: 1;
}

.menu > li {
    margin: 0 1rem;
    overflow: hidden;
    font-size: 1.3vw;
    font-weight: bold;
}

.menu a {
    color: var(--fontcolor);
    text-decoration: none;
}

.menu-button-container {
    display: none;
    height: 95%;
    width: 15px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: var(--fontcolor);
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
    margin-right: 1em;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: transparent;
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

/* home Section */
#home {
    position: relative;
    margin:  3.2em auto 0;
    width: 100%;
    height: 80vh;
    max-height: 100vh;
    background-image: url('../graphics/Rectification-Impôt-source-Genève-660x330.avif');
    background-repeat: no-repeat;
    background-position:top;
    background-size: cover;
    background-attachment:scroll;
    z-index: 0;

    h1 {
        position: relative;
        margin: 0 auto 2em;
        text-shadow: #000000 1px 0 10px;
        max-width:  90%;
        max-height: 3.8rem;
        /* padding: 0.5em 0 0.7em 0; */
        font-size: clamp(2.5em, 10vw, 5em);
        animation: h1 2s ease-in-out 1s 1 alternate both;
    }
    p {
        position: relative;
        margin: 1.5em auto ;
        max-width: 90%;
        padding: 3.5em 0 0 0;
        text-shadow: #000000 1px 0 10px;
        font-size: clamp(0.2em, 1.8em, 2.5em);
        animation: from-right 2s ease-in-out 1s 1 alternate both;
    }
    button {
        width: 80%;
        border-radius: var(--brdr-rds);
        height: 3em;
        margin: 4em auto 2em;
        border: var(--card-brdr);
        background: var(--card-bg-color);
        box-shadow: var(--btn-bx-shdw);
        backdrop-filter: var(--bd-fltr);
        font-size: clamp(0.5rem, 2em, 1.5em);
        text-shadow: #333 1px 0 10px;
        color: var(--fontcolor);
        animation: hero-button 3s ease-in-out 2s 3 normal none;
    }

}

/* Services Section */
#services {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2em auto;
    justify-content: space-around;
    max-width: 90%;


    .container-mobile {
        display: none;
    }
    
    .container {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap:wrap;
      margin: 0 auto;
      gap:4.5em;
    }

    .material-icons {
        font-size: 5em;
    }
    
    h2 {
        font-size: 2.5em;
        margin: 1em auto 1.5em;
    }
    
    .container .glass {
      position: relative;
      width: 180px;
      height: 200px;
      background: var(--card-bg-color);
      border: var(--card-brdr);
      box-shadow: var(--card-bx-shdw);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: 0.5s;
      border-radius: 10px;
      margin: 0;
      backdrop-filter: blur(10px);
      transform: rotate(calc(var(--r) * 1deg));
    }
    
    .container:hover .glass {
      transform: rotate(0deg);
      margin: 0 0.5em;
    }
    
    .container .glass::before {
      content: attr(data-text);
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 40px;
      background: rgba(255, 255, 255, 0.05);
      display: flex;
      font-weight: 600;
      backdrop-filter: blur(0px);
      justify-content: center;
      align-items: center;
      color: #fff;
    }
    .container .glass svg {
      font-size: 2.5em;
      fill: #fff;
    }
    
    
    @media (max-width: 700px) {

        .container {
            display:none;
        }
    
        .container-mobile {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap:wrap;
            margin: 0 auto;
            width: 80%;
            gap:3em;
          }
          
          .container-mobile .glass {
            position: relative;
            width: 180px;
            height: 200px;
            background: linear-gradient(#fff2, transparent);
            border: 1px solid rgba(255, 255, 255, 0.325);
            box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: 0.5s;
            border-radius: 10px;
            margin: 0 -45px;
            backdrop-filter: blur(10px);
            transform: rotate(calc(var(--r) * 1deg));
          }
          
          .container-mobile:hover .glass {
            transform: rotate(0deg);
            margin: 0 10px;
          }
          
          .container-mobile .glass::before {
            content: attr(data-text);
            position: absolute;
            font-weight: 600;
            bottom: 0;
            width: 100%;
            height: 40px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            backdrop-filter: blur(0px);
            justify-content: center;
            align-items: center;
            color: #fff;
          }
          .container-mobile .glass svg {
            font-size: 2.5em;
            fill: #fff;
          }
        
    }
}
    
/* Pricing Section */

#pricing {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    color: var(--fontcolor);
    width: 100% ;
    height: auto;

    h2 {
        font-size: 2.5em;
        margin: 1em auto;
    }


    packs {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      align-self: center;
      width: 80%;
      text-align: center;
      background: var(--card-bg-color);
      border: var(--card-brdr);
      box-shadow: var(--card-bx-shdw);
      border-radius: var(--brdr-rds);
      margin: 2em auto 3.5em;
      padding: 2em 0;
    }

    features {
        padding: 0;
        font-size: clamp(3vh, 3.8vh, 4.5vh);
    }

    pack {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      margin: 2.5em auto 1em ;

      price {
          font-size: clamp(3vh, 3.8vh, 4.5vh);
          margin-bottom: 1em;
      }
      includes {
          margin: 1em 1em 0.75em;
      }
    }

    .card {
        display: none;
        position: relative;
        top:  0;
        left: 0;
        
    }
    .card.active {
        display: flex;
    }

    .card::before {
        content: "<";
        position: absolute;
        top: 50%;
        left: -0.5em;
        transform: translateY(-50%);
        font-size: 5em; 
        color: rgba(255, 255, 255, 0.325);
        pointer-events: auto;
    }
    
    .card::after {
        content: ">";
        position: absolute;
        top: 50%;
        right: -0.5em;
        transform: translateY(-50%);
        font-size: 5em; 
        color: rgba(255, 255, 255, 0.325);
        pointer-events: auto;
    }

    .ribbon {
        position: absolute;
        left: -5px; top: -5px;
        z-index: 1;
        overflow: hidden;
        width: 75px; height: 75px;
        text-align: right;
      }
      .ribbon span {
        font-size: 10px;
        font-weight: bold;
        color: #FFF;
        text-transform: uppercase;
        text-align: center;
        line-height: 20px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        width: 100px;
        display: block;
        background: #79A70A;
        background: linear-gradient(#F70505 0%, #8F0808 100%);
        box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
        position: absolute;
        top: 19px; left: -21px;
      }
      .ribbon span::before {
        content: "";
        position: absolute; left: 0px; top: 100%;
        z-index: -1;
        border-left: 3px solid #8F0808;
        border-right: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-top: 3px solid #8F0808;
      }
      .ribbon span::after {
        content: "";
        position: absolute; right: 0px; top: 100%;
        z-index: -1;
        border-left: 3px solid transparent;
        border-right: 3px solid #8F0808;
        border-bottom: 3px solid transparent;
        border-top: 3px solid #8F0808;
      }
}


#contact {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 0 0 5em;
    padding: 1em;
    width: 100%;

    h2 {
        font-size: 2.5em;
        margin: 0 auto 2em;
    }
    

    form {
        display: flex;
        flex-direction: column;
        padding: 0.5em 1em 1em 1em;
        width: 85%;
        margin: 0 auto;
        border-radius: 15px;
        backdrop-filter:  var(--bd-fltr);
        border: var(--card-brdr);
        border-radius: var(--brdr-rds);
        background: var(--card-bg-color);
        box-shadow:  var(--card-bx-shdw);  

    }

    .form-control {
        position: relative;
        margin: 1em 0.5em 0;
    }
    
    .form-control input,
    .form-control textarea {
        background-color: transparent;
        border: 0;
        border-bottom: 2px #fff solid;
        display: block;
        padding: 15px 0;
        width: 100%;
        font-size: 18px;
        color: #fff;
    }
    
    .form-control input:focus,
    .form-control input:valid,
    .form-control textarea:focus,
    .form-control textarea:valid {
        outline: 0;
        border-bottom-color: var(--fontcolor);
    }
    
    .form-control label {
        position: absolute;
        top: 25px;
        left: 0;
        pointer-events: none;
    }
    
    .form-control label span {
        display: inline-block;
        font-size: 18px;
        min-width: 5px;
        color: #fff;
        transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .form-control input:focus+label span,
    .form-control input:valid+label span,
    .form-control textarea:focus+label span,
    .form-control textarea:valid+label span {
        color: var(--fontcolor);
        transform: translateY(-35px);
    }

    #message {
        overflow: hidden;
    }
    
    button {
        margin: 2em auto 1em;
        padding: 1em;
        background-color: var(--card-bg-color);
        box-shadow: var(--btn-bx-shdw);
        cursor: pointer;
        border: var(--card-brdr);
        color: var(--fontcolor);
        border-radius: var(--brdr-rds);
    }
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2em auto 0;
    background-color: var(--card-bg-color);
    box-shadow: var(--card-bx-shdw);
    border: var(--card-brdr);
    backdrop-filter: var(--bd-fltr);
    width: 90%;
    border-radius: var(--brdr-rds);
    padding: 2em;
    gap: 1.5em;

    .foologo {
        display: flex;
        flex-direction: row;
        /* justify-content: space-between; */
        align-items: center;
        font-family: "Montserrat", sans-serif;
        /* margin-left: 0.5rem; */
    }
    
    .fooflag {
        height: clamp(1.3vh, 2.75vh, 3.5vh);
        aspect-ratio: 1 / 1;
        display: grid;
        border: 2px solid white;
        background: red;
        grid-template-columns: repeat(5, 2fr);
        grid-template-rows: repeat(5, 2fr);
    }
    
    .fooflag div {
        background: white;
    }
    
    .fooflag .foovertical {
        grid-column: 3 / 4;
        grid-row: 2 / 5;
    }
    
    .fooflag .foohorizontal {
        grid-column: 2 / 5;
        grid-row: 3 / 4;
    }
    
    .fooswiss, .foosolution {
        /* font-family: "Montserrat", sans-serif; */
        font-size: clamp(16px, 2.5vw,22px);
        font-weight: 800;
        margin-left: -2px;
    }
    
    .foolink {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-content: center;
        text-align: left;
        /* margin: 20px auto; */
        
        ul, li {
            list-style-type: none;
            font-size: 1.1em;
            /* margin-top: 10px; */
        }
        
        a{
            color: var(--fontcolor);
        text-decoration: none;
        }

        .map {
            margin-bottom: 20px;
        }

        .social {
            display: flex;
            flex-direction: row;
            justify-content: space-between;

            li {
            margin: 0 1em;
            }
            
        }
    }

}

@media (max-width: 390px) {
    #home {
        height: 85vh;
     
        h1 {
            padding-top: 1em;
            margin: 0 auto;
            font-size: clamp(2.5em, 3vw, 5em);
        }
        p{
            padding-top: 4.5em;
            text-shadow: 2px 2px 2px #333;
            margin: 1em auto 0;
        }
        button {
            margin: 0 0 0 0;
        }
    }

    
}

@media (max-width: 929px) {
    .menu {
        display: none;
    }

    .menu-button-container {
        display: flex;
    }

    .menu-button-container:hover {
        cursor: pointer;
    }

    .menu-button,
    .menu-button::before,
    .menu-button::after {
        background-color: #f5f5f5;


    }

    #menu-toggle:checked ~ .menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        background-color: var(--card-bg-color);
        border: var(--card-brdr);
        height: auto;
        justify-content: center;
        align-items: center;
    }

    #menu-toggle:checked ~ .menu > li {
        margin: 1.5em;
        font-size: clamp(1.25em, 1.5vw, 2em);
        color: var(--primary);
    }

    #menu-toggle:checked ~ .menu-button-container .menu-button::before {
        margin-top: 0px;
        transform: rotate(45deg);
    }

    #menu-toggle:checked ~ .menu-button-container .menu-button {
        background: transparent;
    }

    #menu-toggle:checked ~ .menu-button-container .menu-button::after {
        margin-top: 0px;
        transform: rotate(-45deg);
    }

    #home {
        height: 85vh;
     
        h1 {
            padding-top: 1em;
            margin: 0 auto;
            font-size: clamp(2.5em, 3vw, 5em);
        }
        p{
            padding-top: 4.5em;
            text-shadow: 2px 2px 2px #333;
            margin: 2em auto 0;
        }
        button {
            margin: 1em auto;
        }
    }

}

@media (min-width: 930px) {
    .menu {
        margin-top: 0;
    
        a {
            color: var(--fontcolor);
        }
    }

    .map {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        
        li {
            margin: 0 1em;
        }
    }

    #home {
        height: fit-content;
    }
    
}


@media (min-width: 920px) {

    #pricing {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 80%;
        margin: 2em auto;
    }

    .pricingcontent {
        display: flex;
        flex-direction: row !important;
    }

    #pricing packs {
        width: 25%;
        display: flex;
    }

    #pricing .card {
        display: flex;
    }
    
    #pricing .card::before,
    #pricing .card::after {
        content: "";
    }
}

/* Styles généraux pour la section et les conteneurs */
.services {
    margin: 2em auto;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.title {
    font-size: clamp(25px, 4.5em, 5vw);
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.servcontainer {
    margin-bottom: 20px;
    border: var(--card-brdr);
    padding: 10px;
    border-radius: var(--brdr-rds);
    background: var(--card-bg-color);
    box-shadow: var(--card-bx-shdw);
    position: relative;
}

.servcontainer abbr {
    font-weight: bold;
    cursor: pointer;
}

.servheader {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center items vertically */
}

/* Cachez les checkboxes */
.servcontainer input[type="checkbox"] {
    display: none;
}

/* Styles pour les paragraphes */
.servcontainer p {
    display: none;
    margin-top: 10px;
    text-align: justify;
}

/* Affichez le paragraphe quand la checkbox est cochée */
.servcontainer input[type="checkbox"]:checked + label + p {
    display: block;
}

/* Styles pour les labels */
.servcontainer label {
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    padding-left: 20px; /* Pour l'espace du signe plus/minus */
}

/* Ajouter le signe plus par défaut */
.servcontainer label::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Changer en signe moins quand la checkbox est cochée */
.servcontainer input[type="checkbox"]:checked + label::before {
    content: "-";
}


.accordion {
    width: 90%;
    height: 75vh;
    margin:  3em auto;
    padding: 2em;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
  
  .accordion--row {
    flex-direction: row;
    width: 100%;
    gap: .5rem;
  }
  
  .accordion__item { 
    flex-basis: 15%;
    height: 100%;
    margin-bottom: 1em;
    border-radius: var(--brdr-rds);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: helvetica;
    background-color: var(--card-bg-color);
    border: var(--card-brdr);
    cursor: pointer;
    box-shadow: var(--card-bx-shdw);
    backdrop-filter: blur(0px);
    transition: 
      flex-grow .3s linear,
      backdropfilter 0.2s ease-in
  }
  
  .accordion__item:hover { 
      background-color: var(--card-bg-color);
      backdrop-filter: blur(5px);
      flex-grow: 3;
  } 
  
  .accordion__item:active { 
    box-shadow: 1px 1px .1em #67adb5;
    background-color: #bde6fc;
    color: white;
  } 
  