/* cmsms stylesheet: Tirbisch modified: vendredi 25 septembre 2026 10:36:38 */
* { 
  margin:0; 
  padding: 0;
  box-sizing: border-box;
}

.honeypot {
    position: absolute;
    /* left: -10000px;
    top: -10000px; */
    height: 0;
    overflow: hidden;
}

@font-face {
  font-family: "Nunito";
  src: url('../../fonts/nunito/NunitoSans.woff2') format('woff2'),
       url('../../fonts/nunito/NunitoSans.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto";
  src: url("../../fonts/noto/NotoSerif.woff2") format("woff2"),
       url('../../fonts/noto/NotoSerif.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

/*** Preload ***/
/* Applique une transition sur les fonds */
.bg-preload {
  opacity: 0;
  transition: opacity 2s ease;
}

.bg-preload.loaded {
  opacity: 1;
}




/*** Couleurs etc. ***/
:root {
  --orange: #e8530e;
  --blanc: #ffffff;
  --noir: #000000;
  --rouge: #762d2a;
  --gris: #8f8581;
  --gris-clair: #e6d8d5;

  --gras: 500;
  --demigras: 400;
  --light: 300;

  --maxLarg: 60dvw;

  --HeroTxtAngle: -30deg;       /* Angle initial */
  --HeroTxtLH: 26px;  /* Hauteur du texte */

}


.blanc { color:var(--blanc) }
.noir { color:var(--noir) }
.orange { color: var(--orange) }
.rouge { color: var(--rouge) }
.gris { color: var(--gris) }

.fd-orange { background-color: var(--orange) }
.fd-rouge { background-color: var(--rouge) }
.fd-gris { background-color: var(--gris) }
.fd-gris-clair { background-color: var(--gris-clair) }


/*** Typos ***/
h1 { font-weight: 200; font-size: clamp(2rem, 2.5dvw, 4rem); line-height: 1; padding: 0 0 1rem 0 }
.txtSeul h1 { font-size: clamp(2rem, 2.5dvw, 3rem); padding:0 }
h2 { font-weight:300; font-size: clamp(1.6rem, 1.5dvw, 2.5rem); padding: 0 0 1.2rem 0; line-height: 1.2; color:var(--orange) }
#content h2 { font-family: "Noto"; } 
h3 { font-weight:300; font-size: clamp(1.3rem, 2dvw, 2rem); padding: 0 0 1rem 0 }
.detail h3 { font-weight:normal; font-size: clamp(1.3rem, 1dvw, 2rem); padding:0 0 1rem 0 }
p { font-size:1.2rem; line-height: 1.5; font-weight: var(--light); padding: 0 0 0.7rem 0; }
#content li { font-size:1.2rem; line-height: 1.5; font-weight: var(--light); padding: 0 0 0.4rem 0.1rem; margin-left:1.2rem; list-style-type: square;}
#content li::marker { color: var(--bleu) }
a { color: var(--orange); text-decoration:none }
a.category-name { color:#000 }
a.category-name.active { color:var(--orange) }
a.category-name:hover { color:var(--rouge) }
.chiave, .robotoS {
   font-family: "Noto", sans-serif;
   font-weight: 400;
   font-style: normal;
}
.gras, strong { font-weight: var(--gras) }
.demigras { font-weight: var(--demigras) } 

.petit { font-size:0.7rem }


html {
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-color: var(--orange) var(--gris-clair);
  scrollbar-width: thin;
  font-family: "Nunito", sans-serif;
}

#header {
  position:fixed;
  z-index:5;
  padding: 2rem;
  display: flex;
  width:100dvw;
  align-items: center;
  justify-content: space-between;
  top:0;
}

#logo {
  width: 100%;
  max-width: 12rem;
  min-width: 200px;
}

img { 
   display:block;
}

figure {
  width: 100%;
  height: 100%;
}

.visu figure { height:auto }


figcaption { margin: 0.5rem 0; font-size: 0.9rem; color: var(--rouge) }

/**** Hero ****/

#hero img {
   object-fit: cover;
   width:100%;
   height:100%
}

#hero::after {
  background: transparent url(../../uploads/images/tirb-design/toit-bordure.svg) bottom center no-repeat;
  content: '';
  width: 100%;
  height: 100dvh;
  position: absolute;
  top: 38%;
}

.hero {
  position:relative;
  display: grid;
  z-index:1;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  /* align-items: center; 
  justify-content: center; */
}

.frise {
   width:100dvw;
   /* background: var(--gris-clair) url(../../uploads/images/design/trame-blanc.svg) top center repeat-x; */
   background-attachment:fixed;
   height:30dvh;
   position:absolute;
}


.hero-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100dvh;
   background-color:var(--rouge);
   background-size: cover;
   background-position: center;
   background-blend-mode: multiply;
   background-repeat: no-repeat;
   /* will-change: transform; */
   z-index: -1;
   /* clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 49%, 0% 100%); */
}

.hero-bg::after {
  content: "";
  background: transparent url(../../uploads/images/tirb-design/triangle.svg) bottom center no-repeat;
  position: absolute;
  z-index: 50;
  top: 30%;
  left: 0;
  width: 100%;
  height: 100%;
}


.hero-content {
   /* padding:3rem */
}

.hero-content p {
   font-size:10rem;
   line-height:1.2
}

.video-background {
  position: absolute;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
}


/*** Hero Text ***/
.text-container {
   width: 100%;
   height: 100%;
   display: grid;
   align-content: center;
   justify-items: center;
   position: relative;
   color:#fff
}

.animated-text {
   margin: 0;
   transition: transform 0.1s ease-out;
   white-space: nowrap;
}

.text-container div { 
   font-size:10dvw; 
   width: 100%; 
   text-align: center; 
   display: block;
   overflow: visible;
   /* ESPACEMENT CALCULÉ AUTOMATIQUEMENT EN FONCTION DE L'ANGLE */
    margin-bottom: calc(var(--HeroTxtLH) * (cos(var(--HeroTxtAngle)) + sin(var(--HeroTxtAngle))));
}

.text-container div { 
   margin-top: -5dvw;
}
.text-container div:first-child { 
   margin-top: 0;
}



.text-container div span {
    display: inline-block;
    line-height: var(--HeroTxtLH);
    transform: rotate(var(--HeroTxtAngle));
    transform-origin: left center;
}


.line1 {
   font-weight:600;
   opacity: 0.5;
}

.line2 { opacity: 0.7 }

.line3 {
   font-weight:200;
   opacity: 0.4;
}

.line4 {
   opacity: 0.3;
}

.line5 {
   font-weight:200;
   opacity: 0.5;
}

.fade-in {
   opacity: 1 !important;
   transition: opacity 0.6s ease-in-out, transform 0.1s ease-out;
}


#content {
   position: relative;
   display:grid;
   padding:3rem;
   width:100%;
   max-width:var(--maxLarg);
   margin:0 auto;
   z-index: 2;
}

.home #content { padding-top:3rem }

.detail img { width:100%; height:100%; object-fit:cover } 


#services {
   position: relative;
   display:grid;
   padding:0 3rem 3rem 3rem;
   width:100%;
   max-width:var(--maxLarg);
   margin:0 auto;
   z-index: 2;
   text-align:center
}

#catThumbs {
   display:grid;
   grid-template-columns: repeat(4,1fr);
   grid-gap:2rem
}

#catThumbs li {
  width: 100%;
  height: 100%;
  padding: 1rem;
  aspect-ratio: 1/1;
  display: grid;
  justify-content: center;
  align-content: center;
  list-style-type:none;
  background-size:cover;
  clip-path: polygon(0% 20%, 50% 0%, 100% 20%, 100% 100%, 0% 100%);
  transition: all 0.5s ease-in;
}

#catThumbs li:hover {
  background-blend-mode: multiply;
}
#catThumbs li:hover a { transform: translateY(-10px) }

#catThumbs li::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#catThumbs li:hover::before {
  opacity: 1;
}

#catThumbs li:first-child {
   background-image: url(../../uploads/images/tirb-design/charpente-vignette.webp);
}
#catThumbs li:first-child::before { background-color:var(--orange); }

#catThumbs li:nth-child(2) {
   background-image: url(../../uploads/images/tirb-design/couverture-vignette.webp);
}
#catThumbs li:nth-child(2)::before { background-color:var(--gris); }

#catThumbs li:nth-child(3) {
   background-image: url(../../uploads/images/tirb-design/abri-jardin-vignette.webp);
}
#catThumbs li:nth-child(3)::before { background-color:var(--rouge); }

#catThumbs li:nth-child(4) {
   background-image: url(../../uploads/images/tirb-design/terrasse-vignette.webp);
}
#catThumbs li:nth-child(4)::before { background-color:var(--gris); }

#catThumbs li:nth-child(5) {
   background-image: url(../../uploads/images/tirb-design/deco-vignette.webp);
   background-color:var(--orange);
}

#catThumbs li a {
  padding:1rem;
  background-color:var(--orange);
  color:#fff;
  z-index: 10;
  transition: all 0.8s ease-in-out;
}


/*** Actus Home ***/
#actualités { text-align: center; color:var(--orange) }
#actualités > p { font-size: clamp(2rem,2dvw,3rem); line-height: 1.1; margin-top:2rem; padding:0 }

#actus {
   position: relative;
   display:grid;
   grid-template-columns: repeat(4,1fr);
   grid-gap: 1rem;
   padding:1rem 0;
   width:100%;
   max-width: var(--maxLarg);
   margin:0 auto;
   z-index: 2;
}

#actus article {
   display:grid;
   grid-template-columns: 1fr 1fr;
   grid-column: span 2;
   position:relative;
   min-height: 35dvh;
   /* will-change: clip-path; */
   transform: translateZ(0); /* Force GPU compositing */
   backface-visibility: hidden; /* Évite les scintillements */
   clip-path: polygon(0% 20%, 50% 0%, 100% 20%, 100% 100%, 0% 100%);
   transition: clip-path 1s;
}

#actus figure a::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  background-color:var(--orange);
  opacity: 0;
  transition: opacity 0.8s ease;
}

#actus figure a:hover::before {
  opacity: 1;
}

#actus figure a { z-index:10 }

#actus div {
   width:100%;
   height:100%;
   transition: all 0.6s ease-in-out;
}

#content #actus {
  max-width: 100%;
  width: 100%;
  grid-template-columns: repeat(4,1fr);
  padding:6rem 0
}

.couv, .video, .visu img {
   object-fit: cover;
   width:100%;
   height:100%
}

.visu p { padding-top:1rem }

.descriptif {
   display:grid;
   padding: 5rem 3rem 3rem 3rem;
   align-content: end;
   text-align: left;
   z-index: 10;
}

.descriptif a { color: var(--noir); transition: all 0.8s ease; }
.descriptif a:hover { transform: translate(-10px) }
.descriptif.fd-gris a, .descriptif.fd-rouge a, .descriptif.fd-orange a { color: var(--blanc) }
.descriptif.fd-orange *,  .descriptif.fd-gris * { color: var(--blanc) }
.descriptif h3 { padding:0 }
.descriptif h2 { font-size: clamp(1rem, 1.2dvw, 1.6rem); padding-bottom: 0.1rem }
.descriptif p { font-size: clamp(1rem, 1dvw, 1.5rem) }


.descriptif p { 
   font-family: "Noto", serif; 
   line-height:1.4;
   font-weight: 200;
   padding:0
}

.txtSeul {
  min-height: 20dvh;
  display: grid;
  justify-content: center;
  align-content: center;
  padding: 3rem clamp(3rem, 2dvw, 15rem);
}

.txtSeul:nth-child(2) {
  padding: 3rem clamp(3rem, 2dvw, 10rem);
}


.situation img { width:100%; height:100%; object-fit:cover } 

@keyframes animMenu { 
   0% { clip-path: polygon(0% 0%, 50% 0%, 100% 0%, 100% 100%, 0% 100%); }
   100% { clip-path: polygon(0% 20%, 50% 0%, 100% 20%, 100% 100%, 0% 100%); }
}

@keyframes animActu1 { 
   0% { clip-path: polygon(0% 0%, 50% 0%, 100% 0%, 100% 100%, 0% 100%); }
   100% { clip-path: polygon(0% 20%, 50% 0%, 100% 20%, 100% 100%, 0% 100%); }
}

@keyframes animActu2 { /* anim coins arrondis */
   0% { clip-path: inset(0 0 round 0); }
   50% { clip-path: inset(0 0 round 0.5rem); }
   100% { clip-path: inset(0 0 round 1rem); }
}

@keyframes animActu3 {
   0% { clip-path: inset(0% 0% 0%); }
   50% { clip-path: inset(0.5rem 0.5rem 0.5rem); }
   100% { clip-path: inset(1rem 1rem 1rem); }
}

@keyframes animActu4 {
   0% { clip-path: inset(0% 0% round 0 0 0 0); }
   50% { clip-path: inset(0 0 round 7rem 0 0 7rem); }
   100% { clip-path: inset(0 0 round 15rem 0 0 15rem); }
}



.animArticle1.animate {
   animation: animActu1 1s ease-out
}

.animArticle2.animate {
   /* animation: animActu2 1s ease-out */
}

.animArticle4.animate {
   /* animation: animActu4 1s ease-out */
}

.animate-on-scroll {

   transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {

}

.slide-up {
   transform: translateY(150px);
   }

.slide-up.animate {
   transform: translateY(0);
}

.slide-right {
   transform: translateX(150px);
   }


#categories ul { margin:0; padding:0 }
#categories li { display:inline-block; list-style-type:none; margin:0; padding:0 2rem 0 0 }

/*** Grilles ***/

.grille { display:grid; margin-top: 2rem }

.goutt1 { grid-gap: 1rem }
.goutt2 { grid-gap: 2rem }
.goutt4 { grid-gap: 4rem }

.cols-2 {
   grid-template-columns: 1fr 1fr
}

.cols-2-1t2t {
   grid-template-columns: 1fr 2fr
}

.cols-2-2t1t {
   grid-template-columns: 2fr 1fr
}

.cols-3 {
   grid-template-columns: repeat(3,1fr)
}

.cols-4 {
   grid-template-columns: repeat(4,1fr)
}

.retour { 
   display:inline-block;
   padding:3rem 0 
}

/*** Tpls détail réali ***/

.gabarit1 {
   display: grid; 
   grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
   grid-auto-rows:auto;
   grid-template-areas: 
    "Texte1 Texte1 Image1 Image1"
    "Texte2 Texte2 Image2 Image2"
    "Texte2 Texte2 Image3 Image3"
    "Image4 Image4 Image5 Image5"
    "Image6 Image6 Image6 Image6"
    "Image7 Image7 Image8 Image8";
}

.gabarit1 div:first-child { grid-area: Texte1; align-content: end; }
.gabarit1 div:nth-child(3) { grid-area: Image1; }
.gabarit1 div:nth-child(2) { grid-area: Texte2; }
.gabarit1 div:nth-child(4) { grid-area: Image2; }
.gabarit1 div:nth-child(5) { grid-area: Image3; align-self: end; }
.gabarit1 div:nth-child(6) { grid-area: Image4; }
.gabarit1 div:nth-child(7) { grid-area: Image5; }
.gabarit1 div:nth-child(8) { grid-area: Image6; }
.gabarit1 div:nth-child(9) { grid-area: Image7; }
.gabarit1 div:nth-child(10) { grid-area: Image8; }

.gabarit1 div:nth-child(6) div,
.gabarit1 div:nth-child(7) div,
.gabarit1 div:nth-child(8) div,
.gabarit1 div:nth-child(9) div,
.gabarit1 div:nth-child(10) div { height:100% }



.gabarit2 {
   display: grid; 
   grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
   grid-auto-rows:auto;
   grid-template-areas: 
    "Texte1 Texte1 Image1 Image1"
    "Image2 Image2 Image3 Image3"
    "Texte2 Texte2 Texte2 Texte2"
    "Image4 Image4 Image5 Image5"
    "Image6 Image6 Image6 Image6"
    "Image7 Image7 Image8 Image8";
}

.gabarit2 div:first-child { grid-area: Texte1; align-content: end; }
.gabarit2 div:nth-child(3) { grid-area: Image1; }
.gabarit2 div:nth-child(2) { grid-area: Texte2; column-count:2; column-gap: 4rem; }
.gabarit2 div:nth-child(4) { grid-area: Image2; }
.gabarit2 div:nth-child(5) { grid-area: Image3; }
.gabarit2 div:nth-child(6) { grid-area: Image4; }
.gabarit2 div:nth-child(7) { grid-area: Image5; }
.gabarit2 div:nth-child(8) { grid-area: Image6; }
.gabarit2 div:nth-child(9) { grid-area: Image7; }
.gabarit2 div:nth-child(10) { grid-area: Image8; }

.gabarit2 div:nth-child(4) div,
.gabarit2 div:nth-child(5) div,
.gabarit2 div:nth-child(6) div,
.gabarit2 div:nth-child(7) div,
.gabarit2 div:nth-child(8) div { height:100% }

.gabarit3 {
   display: grid; 
   grid-template-columns: 1fr 1fr 1fr 1fr;
   grid-auto-rows:auto;
   grid-template-areas: 
    "Texte1 Texte1 Image1 Image1"
    "Image2 Image2 Image3 Image3"
    "Texte2 Texte2 Texte2 Texte2"
    "Image4 Image4 Image4 Image4"
    "Image5 Image5 Image6 Image6"
    "Image7 Image7 Image8 Image8";
}

.gabarit3 div:first-child { grid-area: Texte1; align-content: end; }
.gabarit3 div:nth-child(3) { grid-area: Image1; }
.gabarit3 div:nth-child(2) { grid-area: Texte2; column-count:2; column-gap: 4rem; }
.gabarit3 div:nth-child(4) { grid-area: Image2; }
.gabarit3 div:nth-child(5) { grid-area: Image3; }
.gabarit3 div:nth-child(6) { grid-area: Image4; }
.gabarit3 div:nth-child(7) { grid-area: Image5; }
.gabarit3 div:nth-child(8) { grid-area: Image6; }
.gabarit3 div:nth-child(9) { grid-area: Image7; }
.gabarit3 div:nth-child(10) { grid-area: Image8; }

.gabarit3 div:nth-child(3) div,
.gabarit3 div:nth-child(4) div,
.gabarit3 div:nth-child(5) div { height:100% }


/**** Menu ****/
/* Bouton hamburger */
.hamburger {
   display: flex;
   flex-direction: column;
   cursor: pointer;
   padding: 10px;
   z-index: 1002;
   position: relative;
}

.hamburger span {
   width: 30px;
   height: 3px;
   background-color: var(--orange);
   margin: 3px 0;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   border-radius: 2px;
   transform-origin: center;
}

        /* Animation du bouton hamburger */
        .menu-toggle:checked + .hamburger span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .menu-toggle:checked + .hamburger span:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }

        .menu-toggle:checked + .hamburger span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Cache l'input checkbox */
        .menu-toggle {
            display: none;
        }

.accueil .menu-toggle:checked + .hamburger span { background-color: #fff }
.menu-toggle:checked + .hamburger span { background-color: var(--orange) }

.accueil h1 {
  padding: 3rem 2rem 0 2rem;
  width: 100%;
  max-width: var(--maxLarg);
  margin: 0 auto;
} 

/* Menu overlay plein écran */
.menu-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   display: flex;
   padding:4rem;
   align-items: center;
   justify-content: center;
   z-index: 1000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   background-color: var(--orange);
   clip-path: polygon(0% 20%, 50% 0%, 100% 20%, 100% 100%, 0% 100%);
   /* transition: clip-path 1s; */
}

.menu-toggle:checked ~ .menu-overlay {
   opacity: 1;
   visibility: visible;
   animation: animMenu 1s ease-out;
}

/* Navigation du menu */
.menu-nav {
   text-align: left;
   /*transform: translateY(50px);*/
   transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.menu-toggle:checked ~ .menu-overlay .menu-nav {
   /*transform: translateY(0);*/
}
.menu-nav ul {
   list-style: none;
}

.menu-nav li {
   margin: 0;
   opacity: 0;
   transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-nav li:nth-child(odd) {
   transform: translateX(-100px);
}
.menu-nav li:nth-child(even) {
   transform: translateX(100px);
}




        /* Animation en cascade des éléments du menu */
        .menu-toggle:checked ~ .menu-overlay .menu-nav li:nth-child(1) {
            transform: translateX(0);
            opacity: 1;
            transition-delay: 0.3s;
        }

        .menu-toggle:checked ~ .menu-overlay .menu-nav li:nth-child(2) {
            transform: translateX(0);
            opacity: 1;
            transition-delay: 0.4s;
        }

        .menu-toggle:checked ~ .menu-overlay .menu-nav li:nth-child(3) {
            transform: translateX(0);
            opacity: 1;
            transition-delay: 0.5s;
        }

        .menu-toggle:checked ~ .menu-overlay .menu-nav li:nth-child(4) {
            transform: translateX(0);
            opacity: 1;
            transition-delay: 0.6s;
        }

        .menu-toggle:checked ~ .menu-overlay .menu-nav li:nth-child(5) {
            transform: translateX(0);
            opacity: 1;
            transition-delay: 0.7s;
        }

        .menu-toggle:checked ~ .menu-overlay .menu-nav li:nth-child(6) {
            transform: translateX(0);
            opacity: 1;
            transition-delay: 0.8s;
        }

.menu-nav a {
   color: #fff;
   text-decoration: none;
   text-transform:uppercase;
   font-size: clamp(3rem,10dvw,7rem);
   font-weight: 200;
   position: relative;
   transition: all 0.3s ease-out;
   display: inline-block;
}


  /* Effet Hover */
.menu-nav a {
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.menu-nav a::before,
.menu-nav a::after {
 content: '';
  position: absolute;
  width: 100%;
  left: 0;
}
.menu-nav a::before {
  /* background-color: var(--gris);
  height: 2px;
  bottom: 0;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1); */
}
.menu-nav a::after {
  content: attr(data-replace);
  height: 100%;
  top: 0;
  transform-origin: 100% 50%;
  transform: translate3d(200%, 0, 0);
  transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
  color: var(--rouge);
}

.menu-nav a:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}
.menu-nav a:hover::after {
  transform: translate3d(0, 0, 0);
}

.menu-nav a span {
  display: inline-block;
  transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
}

.menu-nav a:hover span {
  transform: translate3d(-200%, 0, 0);
}


footer { 
   background-color: var(--gris);
   color:#fff;
   display: grid;
   padding: 2rem;
   min-height: 19dvh;
   width:100%;
   align-items: center;
 }


footer > div {
   display:grid;
   grid-template-columns: 1fr 1fr;
   width:100%;
   max-width: var(--maxLarg);
   justify-self: center;
}


footer div div { display:grid; align-content: baseline; }

footer img { justify-content:end }

footer p {
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  color:#fff;
}

footer a { color:#fff }
footer a:hover { color: var(--gris-clair) }


/*** Contact ***/

#formMessage { 
  text-align: center;
  padding: 2rem;
  font-size: 1.5rem;
  color: var(--bleu); 
}

.field-error { color: var(--gris-clair) }

fieldset { border: 0}
legend { display: none }


#contact {
   width:100%;
   padding: 6rem 2rem 2rem 2rem;
   color:#fff;
   background-color: var(--gris);
   clip-path: polygon(0% 20%, 50% 0%, 50% 0%, 100% 20%, 100% 100%, 0% 100%);
   text-align:center;
}

#contact form {
   width:100%;
   max-width:60dvw;
   margin:0 auto
}

.cms_form .contactform fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-gap: 3rem;
}

#contact form .row, .cms_form .contactform fieldset {
  display: grid;
  align-content: start;
  grid-gap: 2rem;
}

#contact form .row.flex { display:flex }

.cms_form .contactform fieldset div:nth-child(5) {
  grid-row: 1 / span 3;
  grid-column: 2/2;
}

label, input, textarea { font-size:1.2rem; font-weight: 200 }
input, textarea {
  font-family: "Inter", sans-serif;
  /* border: 1px solid var(--gris); */
  padding: 0.5rem;
  border:0;
  border-style: none none solid;
  outline: 0;
}
textarea { height: 100%; }

.input-container {
    width: 100%;
    position: relative;
}

.input-container input,
.input-container textarea {
    width: 100%;
    padding: 1rem;
    outline: none;
    background-color: #fff;
    transition: 0.3s ease;
    caret-color: var(--orange); 
}

.input-container label {
    display:none;
}

.input-container .input-bg {
    position: absolute;
    inset: -2px;
    z-index: -1;
    transform: scaleX(0);
    transition: 0.3s ease;
}

.input-container input:focus ~ .input-bg,
.input-container textarea:focus ~ .input-bg {
    background: var(--gris);
    transform: scaleX(1);
}

input:user-invalid {
  background-color: #ffe5e5;
}

input[type="checkbox"] { width: 1.2rem; height: 1.2rem }

#contact form .row.rgpd, .rgpd input, .rgpd p  { display:flex }

.rgpd {
  flex-wrap: wrap;
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.rgpd p { width:90%; text-align: left; }
.rgpd .field-error { flex-basis: 100%; }


#demande { grid-column: 1 / span 2 }


#envoyer, .retour, .cms_submit {
  font-size:1.2rem;
  background-color: var(--orange);
  color: var(--blanc);
  padding:1rem;
  margin-top: 2rem;
  transition:0.5s;
  cursor:pointer;
  text-align:left;
  border: 0;
} 

#envoyer:hover, .retour:hover, .cms_submit:hover {
  background-color: var(--rouge);
  color: var(--blanc)
}

.envoi { text-align:center }


.retour { font-size: 1rem }


/**** Mobiles ****/
@media only screen and (min-width:1001px) and (max-width: 1600px) {
  #actus article { grid-template-columns: 1fr; grid-template-rows: auto }
}

@media only screen and (max-width: 1000px) {
  #header { background-color: var(--gris-clair); height: 15dvh; }
  .menu-overlay { background-position: 50% 125%; background-size: 65% }
  #logo { max-width: 130px }
  #actualités {
     position: relative;
  }
  #actus { width: 100%; max-width: 100%; grid-template-columns: 1fr; padding: 1rem }
  #actus article { height:auto; width:100%; grid-template-columns: 1fr; grid-template-rows: 2fr 1fr; max-height: 45dvh; }
  /* #actus article figure, #actus article picture { max-height: 260px; } */
  #actus article div { height:auto }
  #actus article div:first-child { height:35dvh }
  .grille .visu { order:2 }
  .cols-2 { grid-template-columns: 1fr }
  #content #actus { grid-template-columns: 1fr; padding:0 }
  #content { max-width:100%; padding: 20dvh 1rem 1rem 1rem }
  .accueil #content { padding: 2rem 1rem 1rem 1rem }
  .accueil h1 { max-width:100% }


#hero::after {
  height: 40dvh;
  top: 25%;
}
  .hero { height: 40dvh; margin-top: 15dvh; }
  .hero-bg { height: 85dvh }
  .hero-bg::after { height: 40dvh; top:10% }
  .hero-content {  }
  .hero-content p { font-size: 1.2rem }
  label, input, textarea { font-size:1rem }
  .txtSeul { padding: 3rem clamp(1rem, 8dvw, 3rem) }
  footer img { max-width: 35dvw }
  #services { padding:1rem; max-width:none }
  #catThumbs { grid-template-columns: repeat(2,1fr) }

  #contact { max-width:100%; padding: 10rem 0 0 0; clip-path: polygon(0% 10%, 50% 0%, 50% 0%, 100% 10%, 100% 100%, 0% 100%); }
  #contact h3 { padding: 0 5rem }
  #contact form {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem; 
    grid-gap: 1rem;
    max-width:100%
  }
  .cms_form .contactform fieldset div:nth-child(5) {
    grid-row: unset;
    grid-column: unset;
  }
  #envoyer { font-size:1.2rem }
  .cols-2-1t2t, .cols-2-2t1t, .cms_form .contactform fieldset {
    grid-template-columns: 1fr;
  }

  .gabarit1, .gabarit2, .gabarit3 {
   grid-template-columns: minmax(0, 1fr);
   grid-template-areas: 
    "Texte1" 
    "Image1"
    "Texte2"
    "Image2"
    "Image3"
    "Image4"
    "Image5"
    "Image6"
    "Image7"
    "Image8";
  }

  .gabarit2 div:nth-child(2), .gabarit3 div:nth-child(2) { column-count: auto }

  .goutt4 { grid-gap: 2rem }

  .descriptif { padding:1rem }
  .descriptif h2 { font-size: clamp(1.4rem, 1.2dvw, 1.6rem) }

   footer > div { grid-template-columns: 1fr; justify-self: start; max-width:100% }
   footer p { font-size:0.8rem }

}

@media (orientation: portrait) {
  .hero-bg { background-size: cover }
}

.mce-container-body iframe { min-height: 40vh; }
.mce-content-body { width:100%; height:auto; min-height:40vh }
.mce-content-body img { width:100%; height:100%; object-fit:cover }
.mce-content-body strong { font-weight:600 }
