:root {
    /* Official colors - style guide */
    --afp-blue: #325aff;
    --afp-black: #000;
    --afp-white: #fff;
    
    /* sub main colors */
    --afp-pink: #FF6E6E;
    --afp-yellow: #FFD223;
    --afp-orange: #FFA050;
    --afp-turquoise: #7DFAAF;
    --afp-purple: #CD73FA;
    --afp-light-blue: #87EBFA;
    --afp-darker-white: #F5F5F7;
    
    /* secondary colors */
    --afp-secondary-grey-100: #9B9187;
    --afp-secondary-grey-80: #AFA79F;
    --afp-secondary-grey-60: #C3BDB7;
    --afp-secondary-grey-40: #D7D3CF;
    --afp-secondary-grey-20: #EBE9E7;
    --afp-secondary-grey-10: #F5F4F3;
    
    
    /* Additional colors - custom */
    --afp-light-green: #7DFAAF;
    --afp-darker-green: #65ce8f;
    --afp-lighter-blue: #E8F8EB;
    --afp-bg-green: #EAF6F4;
    --afp-bg-blue: #ECF6FA;
    --afp-darker-orange: #e06f12;
    --afp-blue-darker: #2544bf;
    --extremely-light-gray: rgba(0, 0, 0, 0.1);
}
    
/* BASE CSS */
html {
font-family: 'Source Sans Pro', Arial, sans-serif;
}
/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
html, body {
    height: 100%;
}
body {
-webkit-font-smoothing: antialiased;
/* background: linear-gradient(180deg, var(--afp-bg-green) 0%, var(--afp-white) 100%) no-repeat; */
}
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
input, button, textarea, select {
font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
a {
color: inherit;
text-decoration: none;
}
#main-container {
margin: auto;
width: 100%;
background: linear-gradient(180deg, var(--afp-bg-green) 0%, var(--afp-white) 17%) no-repeat;
}
/* Landing-container */
#landing-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 2em;
}
@media screen and (max-width: 992px) {
    #landing-container {
        display: block;
    }
}
.landing-text {
    margin-bottom: 2em;
}
.landing-title {
    font-size: 4rem;
    font-weight: 800;
    width: fit-content;
    width: -moz-fit-content;
}
.landing-title{
    white-space: nowrap;
    overflow: hidden; 
    /* border-right: solid 3px var(--afp-black); */
    animation: animated-text 2s steps(25,end) 1 normal both,
             animated-cursor 600ms steps(25,end) infinite;
}
@media screen and (max-width: 624px) {
    .landing-title {
        font-size: 3rem;
    }
}
@media screen and (max-width: 562px) {
    .landing-title {
        font-size: 2rem;
    }
}
@media screen and (max-width: 399px) {
    .landing-title {
        font-size: 1.5rem;
    }
    #landing-container {
        padding: 2em 1em;
    }
}
/* text animation */
@keyframes animated-text{
    from{width: 0;}
    to{width: 100%;}
  }
  
  /* cursor animations */
  /* @keyframes animated-cursor{
    from{border-right-color: var(--afp-black);}
    to{border-right-color: transparent;}
  } */
.landing-content {
    font-size: 1.5em;
    margin-bottom: 3rem;
}
.countdown {
    font-size: 3rem;
    font-weight: 800;
}
.countdown-bloc {
    margin-bottom: 3rem;
}
.button-general {
    background-color: var(--afp-black);
    width: fit-content;
    width: -moz-fit-content;
    padding: 1rem 2rem;
    color: var(--afp-white);
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
}
.frame-area {
    min-height: 470px;
    border-radius: 20px;
    box-shadow: 7px 9px 19px var(--afp-secondary-grey-100);
}
@media screen and (min-width:1400px) {
    .frame-area {
        min-width: 430px;
        min-height: 750px;
    }
    .landing-illustration {
        width: 49%;
    }
}
@media screen and (max-width:992px) {
   .landing-illustration {
    width: fit-content;
    width: -moz-fit-content;
    margin: auto;
    } 
}
/* landing container animation */
.countdown::after {
    content: counter(count);
    animation: counter 2s linear forwards;
    -webkit-animation: counter 1s 2500ms linear forwards;
    counter-reset: none;
}
/* For safari */
@media not all and (min-resolution:.001dpcm)
{ @supports (-webkit-appearance:none) {
 
        .countdown::after {
            content: "50";
            animation: none;
        }
}}
    
@keyframes counter {
    0% {
        counter-increment: count 2;
    }
    10% {
        counter-increment: count 4;
    }
    20% {
        counter-increment: count 6;
    }
    30% {
        counter-increment: count 8;
    }
    40% {
        counter-increment: count 10;
    }
    50% {
        counter-increment: count 12;
    }
    60% {
        counter-increment: count 14;
    }
    70% {
        counter-increment: count 20;
    }
    80% {
        counter-increment: count 35;
    }
    90% {
        counter-increment: count 42;
    }
    100% {
        counter-increment: count 50;
    }
}
/* Section 1 */
#section-1 {
    background-color: var(--afp-bg-green);
    width: 90%;
    margin: auto;
    padding: 2em;
    border-radius: 15px;
    margin-bottom: 2em;
}
.big-text {
    font-size: 4rem;
    font-weight: 800;
}
@media screen and (min-width: 1200px) {
    .big-text {
        font-size: 5rem;
        text-transform: uppercase;
    }
}
@media screen and (max-width: 576px) {
    .big-text {
        font-size: 2rem;
    }
}
.blue-text {
    color: var(--afp-blue);
}
.big-text .blue-text{
    
    color: #0000;
    background: 
      linear-gradient(90deg,#fff 50%,var(--afp-blue) 0) calc(100% - var(--_p,0%))/200% 100%,
      linear-gradient(var(--afp-blue) 0 0) 0% 100%/var(--_p,0%) 100% no-repeat;
    -webkit-background-clip: text,padding-box;
            background-clip: text,padding-box;
    transition: 0.5s;
  }
  .big-text:hover .blue-text {
    --_p: 100%;
  }
  /* Because mozilla is annoying */
  @-moz-document url-prefix() {
    .big-text .blue-text{
        background: 
          linear-gradient(90deg,var(--afp-blue) 50%,var(--afp-blue) 0) calc(100% - var(--_p,0%))/200% 100%,
          linear-gradient(var(--afp-blue) 0 0) 0% 100%/var(--_p,0%) 100% no-repeat;
        -webkit-background-clip: text,padding-box;
                background-clip: text,padding-box;
        transition: 0.5s;
      }
    .big-text:hover .blue-text {
        --_p: 100%;
        color: var(--afp-white);
      }
  }
/* section 2 */
#section-2 {
    width: 90%;
    margin: auto;
    padding: 2em;
}
.section2-bloc {
    display: flex;
    justify-content: space-between;
    gap: 3em;
}
.section2-text {
    font-size: 2em;
    margin: 3em 0;
    width: 80%;
}
.bold {
    font-weight: bold;
    background:
    linear-gradient(-45deg, var(--afp-pink)   40%, #fff 0 60%, var(--afp-pink)  0) right/300% 100% no-repeat,
    linear-gradient(-45deg, #0000 40%, var(--afp-pink)  0 60%, #0000 0) right/300% 100% no-repeat;
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
}
@-moz-document url-prefix() {
    .bold {
        background:
        linear-gradient(-45deg, var(--afp-pink)   40%, var(--afp-pink) 0 60%, var(--afp-pink)  0) right/300% 100% no-repeat,
        linear-gradient(-45deg, #0000 40%, var(--afp-pink)  0 60%, #0000 0) right/300% 100% no-repeat;
      -webkit-background-clip: text, padding-box;
      background-clip: text, padding-box;
    }
}
.section2-bloc:hover .bold {  
    background-position: left;
    transition: 0.8s
}
.bloc-iphone2 {
    display: flex;
    flex-direction: column;
}
.iphone-frame {
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
}
.iphone {
    position: relative;
    /* z-index: 1; */
}
.stories-phone {
    position: absolute;
    width: 90%;
    border-radius: 20px 20px 25px 25px;
    height: 94%;
    left: 14px;
    top: 17px;
    box-shadow: 1px -9px black;
}
.wallpaper {
    position: absolute;
    top: 30px;
}
@media screen and (min-width: 500px) {
    .stories-phone {
        width: 90%;
        height: 94%;
        left: 19px;
        border-radius: 20px 20px 35px 35px;
        top: 27px;
        box-shadow: -1px -14px black;
    }
} 
@media screen and (max-width: 992px) {
    .section2-bloc {
        display: block;
    }
    #section-2 .button-general {
        margin: auto;
    }
    .order2 {
        order: 2;
    }
    .iphone-frame {
        width: fit-content;
        width: -moz-fit-content;
        margin: auto;
    }
    .section2-text {
        text-align: center;
        width: 100%;
    }
}
/* Section 3 */
#section-3 {
    background-color: #F5F4F3;
    /* min-height: 924px; */
}
.section3-container {
    width: 90%;
    margin: auto;
    padding: 2em;
}
.pink {
    color: var(--afp-pink);
}
.h2-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
}
.photo-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.iphone-b3 {
    position: relative;
}
@media screen and (max-width: 1900px) {
    .iphone-b3 {
        width: 20%;
    } 
}
#wallpaper-b3 {
    position: absolute;
    top: 11px;
    width: 90%;
    height: 95% !important;
    border-radius: 38px;
    left: 8px;
}
#iphone-frameb3 {
    position: relative;
    z-index: 1;
}
#img1, #img2, #img3, #img4 {
    max-width: 18%;
    max-height: 550px;
}
@media screen and (max-width: 992px) {
    #img1, #img2, #img3, #img4 {
        max-width: 100%;
    }
    #img1, #img2, #img3, #img4, .iphone-b3 {
        width: auto; 
    }
}
/* Section-4 */
#section-4 {
    width: 90%;
    margin: auto;
    padding: 2em;
}
.h3-title {
    font-size: 3rem;
    font-weight: 800;
}
.section4-content {
    display: flex;
    flex-direction: row;
    margin-top: 2em;
    gap: 2em;
}
.blue-bloc {
    background-color: var(--afp-bg-blue);
    padding: 2em 3em;
    border-radius: 15px;
}
.green-bloc {
    background-color: var(--afp-bg-green);
    padding: 2em 3em;
    border-radius: 15px;
}
.blue-bloc:hover, .green-bloc:hover {
    -webkit-animation: hvr-pulse 1s 1 linear forwards;
    animation: hvr-pulse 400ms 1 linear forwards;
}
@-webkit-keyframes hvr-pulse {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
      }
    to {
      -webkit-transform: scale(1.05);
      transform: scale(1.05);
    }
  }
  @keyframes hvr-pulse {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
      }
    to {
      -webkit-transform: scale(1.05);
      transform: scale(1.05);
    }
  }
.fs-2em {
    font-size: 2.5em;
    margin: 2em 0;
    font-weight: bold;
}
.text-greenbloc {
    font-size: 1.1em;
    font-weight: bold;
    margin: 2em auto;
}
@media screen and (max-width: 992px) {
    .section4-content {
        flex-direction: column;
    }
    .blue-bloc, .green-bloc {
        padding: 2em;
    }
}
@media screen and (max-width: 576px) {
    .h3-title, .fs-2em{
        font-size: 2rem;
    }
}
/* Drupal adaptation */
.node-type-afp-produit .panel-pane.pane-entity-view.pane-node .line.mb1.bgblue.line.relative.mb2.pt1.pb2.pa0m, .info_social.mb2, #breadcrumb.line.hidem {
    display: none;
}
#main-container .img_margin {
    margin: 0px !important;
}

.page-node-type-afp-produit h2, .page-node-type-afp-produit h3.afp0623-swapcard__title {
  color: black ;
}

.page-node-type-afp-produit .h2-b3 {
  color: white ;
}

body {
overflow-x: initial;
}

#img3 {
 max-height: 336px !important;
}