/***** Media queries *****/

.side-menu,
.burger {
  display: none;
}

@media (max-width: 1349px) {

  :root { 
    --side-padding: 4rem;
  }

  .logo-text {
    display: none;
  }
  
  nav ul {
    grid-template-columns: repeat(4, minmax(12rem, 1fr));
  }

  #hero {
    padding: 2rem var(--side-padding) 0;
  }

  #hero h2 {
    font-size: 2rem;
    font-family: var(--font-title);
    margin: 1.5rem 0;
  }

  .pipe {
    margin: auto 1rem;
  }

  .hero-img {
    flex: 1.5;
  }
}


@media (max-width: 999px) {

  :root { 
    --side-padding: 3rem;
  }

  h1 {
    text-align: center;
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }


  /* Nav */ 
  .navline {
    display: none;
  }

  .side-menu,
  .burger {
    display: block;
    position: absolute;
    padding: 2rem 3rem;
    top: 0;
    right: 0;
    cursor: pointer;
  }

  .burger-line {
    background: var(--light-color);
    display: block;
    height: 2px;
    position: relative;
    width: 2rem;
  }

  .burger-line::before,
  .burger-line::after{
    background: var(--light-color);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
  }

  .burger-line::before {
    top: 5px;
  }

  .burger-line::after {
    top: -5px;
  }

  /* Toggle menu icon */

  .side-menu:checked ~ nav {
    height: 100vh;
  }

  .side-menu:checked ~ .burger .burger-line {
    background: transparent;
  }

  .side-menu:checked ~ .burger .burger-line::before {
    transform: rotate(-45deg);
    top: 0;
  }

  .side-menu:checked ~ .burger .burger-line::after {
    transform: rotate(45deg);
    top: 0;
  }

  nav {
    overflow: hidden;
    align-items: flex-start;
    width: 100%;
  }

  nav .logo {
    position: absolute;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    top: calc(var(--nav-height) + 0.5rem);
    display: flex;
    flex-direction: column;
    width: calc(100% - 6rem);
    align-items: center;
  }

  nav ul li {
    padding: 1.5rem;
    width: calc(100% - 3rem);
  }

  nav ul li.active {
    background-color: unset;
  }

  nav ul li.active::after {
    content: '';
    position: absolute;
    background: var(--secondary-color);
    height: 4px;
    width: 50%;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
  }

  nav .btn-rdv {
    width: 60%;
    min-width: 15rem;
    height: 4rem;
    margin: 1rem auto 0;
  }

  /* homepage */
  .homepage header {
    position: fixed;
  }

  #hero {
    height: 100%;
    padding: calc(var(--nav-height) + 1rem) var(--side-padding) 2rem;
    flex-direction: column;
    overflow: unset;
  }

  .hero-text,
  .hero-img {
    flex: auto;
  }

  h1 .pipe {
    display: block;
    rotate: 90deg;
  }

  #hero h2 {
    font-size: 1.5rem;
    margin: 2rem auto 0;
  }

  .highlight {
    margin: 3rem 1.5rem;
  }
  .highlight::before {
    width: 105%;
  }

  .doctolib {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem 0;
  }

  footer div:nth-child(2) {
    width: 100%;
  }

  footer > div:nth-child(n+3) {
    min-width: 30%;
  }

  section.rdv,
  .section-text-img,
  .section-col-2,
  .section-col-3 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  section.rdv > div:last-child {
    color: var(--secondary-color);
    text-align: center;
  }

  .rdv h3 {
    color: var(--primary-color);
  }

  section.rdv .circle-highlight::before {
    border-color: var(--secondary-color);
    border-right-color: transparent;
    left: -12%;
  }

  section.rdv .circle-highlight::after {
    border-color: var(--secondary-color);
    border-left-color: transparent;
    border-top-color: transparent;
  }

  section {
    padding: 2rem var(--side-padding);
  }

  .scrolling-title {
    flex-direction: column;
    text-align: center;
  }

  .scrolling-words span {
    margin-bottom: 0.8rem;
  }

  .col-2,
  section.info:nth-child(even) .col-2 {
    flex-direction: column-reverse;
  }

  .col-2-img,
  section.info:nth-child(even) .col-2 .col-2-img {
    text-align: center;
    margin-top: 1.5rem;
  }

  .circle-highlight::before {
    left: -11%;
  }

  .subpage-hero-text {
    padding-bottom: unset;
    padding: 0 1rem;
    margin: auto;
    font-weight: 600;
  }

  .subpage-hero-text h1 {
    font-size: 2.25rem;
  }

  .section-col-2 img {
    display: flex;
    margin: auto;
    max-height: 300px;
  }

  form .section-col-3 {
    gap: 0;
  }

}
