@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
:root {
    --cyan:  #23a1d1;
    --darkGray: hsl(220, 1%, 41%);
    --varyDarkBlue: hsl(234, 12%, 34%);
    --grayishBlue: hsl(0, 0%, 37%);
    --veryLightGray: hsl(0, 0%, 98%);
    --weight1: 200;
    --weight2: 400;
    --weight3: 600;
}

body {
  height: 100%;
  margin: 0 auto;
  padding: 0;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  background-color: var(--veryLightGray);
  color: var(--grayishBlue);
  overflow-x: hidden;
  text-wrap: pretty;
}

.dropdown {
    font-size: 0.8em;
}

.margin {
  margin: 5em;
}

h1 {
  font-weight: var(--weight1);
  color: var(--varyDarkBlue);
  text-align: center;

}
h2 {
  color: var(--cyan);
  font-weight: var(--weight3);
}
h4 {
  font-size: medium;
  text-decoration: underline;
}
.quote {
    text-align: center;
    color: var(--darkGray);
    font-size: medium;  
  }
.header {
    line-height: 0.8;
    margin-bottom: 5%;

}
.cyan {
    border-top: 3px solid var(--cyan);
}

h3 {
    color: var(--varyDarkBlue);
    font-weight: var(--weight3);
}

h6 {
  text-align: center;
  font-weight: var(--weight1);
}
.header p {
  margin: 0 auto;
  line-height: 2;
  color: var(--grayishBlue);
}

.secondary-title {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

.first {
    flex: 1;
    margin-bottom: 20px;
  }

.second {
    margin-left: 20px; 
    margin-top: 20px;
.box p {
    color: var(--grayishBlue);
}
  }

.box {
    border-radius: 5px;
    box-shadow: 0px 30px 40px -20px var(--grayishBlue);
    padding: 30px;
    margin: 20px;  
    text-align: center;
}

.second-paragraph {
    margin: 100px;
    text-align: center;
}

.ag-format-container {
    width: 1142px;
    margin: 0 auto;
  }
  .logo {
  align-items: center;
}
  .ag-maecenas_box {
    padding: 70px 0;
    background-color: #FFF;
  
    position: relative;
  }
  .ag-maecenas_item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    padding: 0 0 120px;
  }
  .ag-maecenas_descr {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 60%;
    -moz-box-flex: 1;
    -ms-flex: 1 1 60%;
    flex: 1 1 60%;
    padding: 0 40px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .ag-maecenas_title-item {
    padding: 0 0 15px;
    text-align: center;
    font-weight: bold;
    font-size: 25px;
    color: var(--cyan);
  }
  .ag-maecenas_tagline-item {
    padding: 0 0 15px;
    text-align: center;
    font-size: 20px;
    color: var(--darkGray);
  }
  .ag-requirement_item {
    padding: 10px 10px 10px 20px;
  
    position: relative;
  }
  .ag-maecenas_img-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 40%;
    -moz-box-flex: 1;
    -ms-flex: 1 1 40%;
    flex: 1 1 40%;
    height: 300px;
    padding: 0 15px;
    text-align: center;
  }
  .ag-maecenas_item:nth-child(odd) {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: initial;
  }
  .maecenas-block {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    background-color: #FFF;
    width: 1142px;
    margin: 0 auto;
    margin-top: 20px;
  }
  
  .requirement_list {
    line-height: 2.5; 
    width: 50%;
  }
  
  .maecenas_img-box {
    width: 50%;
    float: left;
    margin: 20px;
    margin-right: auto;
  }
  .third-paragraph {
    font-style: oblique;
    text-align: center;
  }
  .container-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 600px;
    } 
  .container-hero .hero { 
    display: grid;
    grid-template-columns: 4fr 1fr 4fr; 
    grid-template-rows: 1fr 6fr 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    }

    
.middle-container {
  display: flex;
  justify-content: center;
}
    
.white-container {
  width: 100%;
  background-color: white;
  padding: 40px;
}

.flex {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes de largeur égale */
  grid-column-gap: 20px;
  align-items: center;
}

.img-box img {
  width: 100%;
} 

.text-area {
  padding: 40px;
}

.text-area-list {
  padding: 20px;
}

.text-area-list li {
  padding: 10px;
}
    
    /* LEFT PART */
  .left { 
    grid-area: 1 / 1 / 3 / 3;
    border: 5px solid #23a1d1;
    padding: 30px;
    background-color: #FFFFFF;
    position: relative;
    }
    .left h1{
    text-transform: uppercase;
    font-size: clamp(20px, 5vw ,40px);
    font-weight: 700;
    white-space: nowrap;
    }
    .left h1 span{
    color: #23a1d1;
    }
    .left p{
    margin-top: 25px;
    margin-bottom: 50px;
    font-size: 16px;
    }
    .left a{
    padding: 10px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #23a1d1;
    color: #000;
    font-weight: 700;
    }
    .left a:hover{
    color: #FFFFFF;
    background-color: #0eadf1;
    }
    
    
    /* RIGHT PART */
    .right { 
    grid-area: 2 / 2 / 4 / 4;
    border: 5px solid #23a1d1;
    z-index: -1;
    position: relative;
    }
    
    .right img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    }
    
    /* LEFT AND RIGHT BANDS */
    .left::before,
    .right::before{
    content: '';
    position: absolute;
    top: 50%;
    height: 50%;
    width: 4vw;
    background: #23a1d1;
    }
    .left::before{
    left: 0;
    transform: translateY(-50%) translateX(-100%);
    }
    .right::before{
    right: 0;
    transform: translateY(-50%) translateX(100%); 
    }

    .row1-container {
      display: flex;
      justify-content: space-between;
    } 


    
  @media screen and (max-width: 450px){

    body {
      overflow-x: auto;
  }
    
    header .hero { 
      grid-template-rows: 6fr 1fr 6fr;
    }
    .left{
      grid-area: 1 / 1 / 3 / 4;
    }
    .right{
      grid-area: 2 / 1 / 4 / 4
    }
    .ag-maecenas_title {
        font-size: 40px;
      }
    .box {
        height: 200px;
    }

    .right, .left::before {
      visibility: hidden;
    }

    }
  
  @media screen and (max-width: 979px) {

    body {
      width: 100%;
    }

    .ag-maecenas_descr {
      padding: 0;
    }

    .ag-maecenas_title-item, .ag-maecenas_tagline-item {
      margin: 20px;
    }

    .row1-container {
      display: block;
    }

    .box {
        text-align: center;
        height: 180px;
    }
    .ag-format-container {
        width: 750px;
      }
    .maecenas-block {
      width: 750px; 
    }

    .flex {
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
    }

    .second {
      margin: 20px;
    }

        
    .second img {
      width: 100%;
    }

    .img-box img {
      width: 100%;
    }

    span {
      text-wrap: pretty;
    }

    .justify-text {
      text-align: justify;
      padding: 10px;
    }

    h3 {
      margin-bottom: 20px;
      margin-top: 0;
    }

    .second-paragraph {
      margin: 100px 20px;
    }

    .text-area {
      padding: 0;
    }

  }
  
  @media only screen and (max-width: 767px) {
    .maecenas-block {
        flex-direction: column;
      }

      .secondary-title {
        display: block;
        margin: 0px;
      }

      .second {
        text-align: center;
      }
    
      .requirement_list {
        margin-right: 0;
        margin-bottom: 10px; 
      }
    .ag-format-container {
      width: 96%;
    }
  
    .ag-maecenas_item {
      -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
    }
    .ag-maecenas_item:nth-child(odd) {
      -webkit-box-orient: horizontal;
      -webkit-box-direction: normal;
      -webkit-flex-direction: row;
      -moz-box-orient: horizontal;
      -moz-box-direction: normal;
      -ms-flex-direction: row;
      flex-direction: row;
    }
    .ag-maecenas_descr {
      -webkit-box-flex: 0;
      -webkit-flex: 0 0 100%;
      -moz-box-flex: 0;
      -ms-flex: 0 0 100%;
      flex: 0 0 100%;
      -webkit-box-ordinal-group: 3;
      -moz-box-ordinal-group: 3;
      -ms-flex-order: 2;
      order: 2;
    }

    
    .ag-maecenas_item {
      flex-wrap: wrap;
    }

    .ag-maecenas_img-box {
      -webkit-flex: 0 0 100%;
      -ms-flex: 0 0 100%;
      flex: 0 0 100%;
      -webkit-box-flex: 0;
      -moz-box-flex: 0;
      -webkit-box-ordinal-group: 2;
      -moz-box-ordinal-group: 2;
      -ms-flex-order: 1;
      order: 1;
  
      height: 200px;
      width: 100%;
      min-width: 150px;
      padding: 0;
    }
  }
  
  @media only screen and (max-width: 639px) {
    .ag-maecenas_title {
        font-size: 60px;
      }

      h2 {
        text-align: center;
      }
  }


@media (min-width: 950px) {
    .row1-container {
        display: flex;
    } 
    .box:hover {
      transform: translateY(-4px) scale(1.005) translateZ(0);
      box-shadow: 0 24px 36px rgba(0,0,0,0.11),
        0 24px 46px rgba(86, 218, 230, 0.11);
    }

    .box {
        width: 20%;
     
    }
    .header p {
        width: auto;
    }   

}
