html{
    scroll-behavior: smooth;
}
* { box-sizing: border-box;
    overflow-x: clip;
}
body { 
    padding:0;
    margin: 0;
    background-color: white;
    font-size:22px;
    font-weight: 300;
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",sans-serif ;
    letter-spacing: 0.5px ;
}
/*titres*/
h1{ font-family: "Montserrat Alternates", serif;
    font-weight:400;
    font-size:40px;
    font-optical-sizing: auto;
}

/* anim h1*/

.animation {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.7s ease-out;
    transition-delay: 0.4s;
}
.animation h1 span {
    display: inline-block;
    position :relative;
    overflow: hidden;
}
.scroll-animation {
    opacity: 1;
    transform: translateX(0);
}
.scroll-animation h1 span::after {
    content:url(/images/rouleau.png);
    display : block;
    position: absolute;
    width: 100%;
    height: 100%;
    top :0;
    left:0;
    background-color:black;
}
.scroll-animation h1 { animation: txt-appearance 1s 2s forwards;}
.scroll-animation span::after { animation: slide-in 10s 10s ease-out forwards,   /*temps déroulage*/
                                           slide-out 2.5s 0.7s ease-out forwards; /* temps trait reste en couleur*/}    

@keyframes slide-in      { 100%{ transform :translateX(0%) }}
@keyframes slide-out     { 100%{ transform :translateX(150%) }}
@keyframes txt-appearance{ 100%{ color:black; }} 

h2{ font-family: "Montserrat Alternates", serif;
    font-size: 26px;
    font-weight: 400 ; 
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}
h3{ font-family: "Montserrat Alternates", serif;
    font-size:20px;
    font-weight: 400;
}

h4{ font-family: "Montserrat Alternates", serif;
    font-weight: 300;
}

a { color: #1a1a1a;
    text-decoration: none;}

a:hover { color: #cd0808;
          text-decoration: none;}
         
p { font-size: 18px;}

.boutonensavoirplus{
    background-color:#a09e9e;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin-top: 3%;
  }
.boutonensavoirplus:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
  }
  
  .reveal-on-scroll{
    scale: .6; opacity: 0;
    animation-duration: 10ms;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range-start: 10%;
    animation-range-end: 25%;
  }
  
  @keyframes fade-in {to {scale: 1; opacity: 1}}

/* mise en page*/
.c_1, .b_1{color:#f1f1f1;}
.c_2, .b_2{color:#e4dede}
.c_3, .b_3{color:#a09e9e;}
.c_4, .b_4{color:#3c3b3b;}
.c_5, .b_5{color:black}
.c_6, .b_6{color:white}

.bg_1{ background-color: #f1f1f1;}
.bg_2{ background-color: #e4dede}
.bg_3{ background-color: #a09e9e;}
.bg_4{ background-color: #3c3b3b;}
.bg_5{ background-color: black}
.bg_6{ background-color: white}

.tr {text-align: right; }
.tl {text-align: left;}
.tc {text-align: center;}

.pd {  padding: 3%;
       box-sizing: border-box;}
.pd_l{ padding-left: 3%;
       box-sizing: border-box;}
.pd_r{ padding-right: 3%;
       box-sizing: border-box;}
.pd_b{ padding-bottom: 3%;
       box-sizing: border-box;}
.pd_t{ padding-top: 3%;
       box-sizing: border-box;}

.row::after {
    content: "";
    clear: both;
    display: table;
}
	
[class*="col-"] {
    float:left;
    width: 100%;
}
  
  @media only screen and (min-width: 600px) {
    /* For tablets: */
    .col-s-1 {width: 8.33%;}
    .col-s-2 {width: 16.66%;}
    .col-s-3 {width: 25%;}
    .col-s-4 {width: 33.33%;}
    .col-s-5 {width: 41.66%;}
    .col-s-6 {width: 50%;}
    .col-s-7 {width: 58.33%;}
    .col-s-8 {width: 66.66%;}
    .col-s-9 {width: 75%;}
    .col-s-10 {width: 83.33%;}
    .col-s-11 {width: 91.66%;}
    .col-s-12 {width: 100%;}
  }
  @media only screen and (min-width: 968px) {
    /* For desktop: */
    .col-1 {width: 8.33%;}
    .col-2 {width: 16.66%;}
    .col-3 {width: 25%;}
    .col-4 {width: 33.33%;}
    .col-5 {width: 41.66%;}
    .col-6 {width: 50%;}
    .col-7 {width: 58.33%;}
    .col-8 {width: 66.66%;}
    .col-9 {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}
  }

  @media only screen and  (min-width: 601px) and (max-width: 968px) {
    .carre_services{
        width:50%;
    }
}
@media only screen and (min-width: 969px) and (max-width: 1150px) {
    .carre_services{
        width:33%;
    }
}

 /*pour limiter et centrer certains contenus qui s'étirent en responsive*/

@media only screen and  (max-width: 600px){
    .contenu3{
        max-width: 350px;
        margin: 0 auto;
        float: none;
    }
    .img_services{
        max-height: 200px;
    }
}
@media only screen and  (max-width: 968px) {
  .contenu {
    max-width: 480px;
    margin: 0 auto;
  }

  .contenu2{
    max-width: 320px;
  }
  .fiche:nth-child(2),.fiche:nth-child(3){
    border-left: 1px solid grey;
  }
}
